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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
fix: normalize target_modules [all-linear] list to string for Unsloth/PEFT compatibility
Roland Tannous0d8b67b706aa
diff --git a/studio/backend/core/training/trainer.py b/studio/backend/core/training/trainer.pyindex a3abd4bd17c..72eadd53e7c 100644--- a/studio/backend/core/training/trainer.py+++ b/studio/backend/core/training/trainer.py@@ -254,6 +254,12 @@ class UnslothTrainer:print(f"Configuring LoRA adapters (r={lora_r}, alpha={lora_alpha})...\n")print(f"Gradient checkpointing: {use_gradient_checkpointing} (type: {type(use_gradient_checkpointing).__name__})\n")+ # Normalize ["all-linear"] (list from frontend/YAML) → "all-linear" (string)+ # Unsloth/PEFT expect the string form for this shorthand+ if target_modules == ["all-linear"]:+ target_modules = "all-linear"+ print(f" Normalized target_modules from list to string: '{target_modules}'")+# Branch based on vision vs textif self.is_vlm:# Vision model LoRA