Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

exclude default from model.delete_adapter

Roland Tannousb5c8136957f1
diff --git a/studio/backend/core/inference/inference.py b/studio/backend/core/inference/inference.py
index a4ab80ffe20..ed7c786913c 100644
--- a/studio/backend/core/inference/inference.py
+++ b/studio/backend/core/inference/inference.py
@@ -193,6 +193,8 @@ class InferenceBackend:
logger.info("Found lingering adapter configurations. Deleting them now...")
# Create a static list of keys before iterating and deleting
for name in list(model.peft_config.keys()):
+ if name == "default":
+ continue
logger.info(f"Deleting adapter config: '{name}'")
model.delete_adapter(name)