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
Clarify NotImplementedError for fast_inference with full_finetuning (#3768)
Fizza Mukhtarf57cd25d46ef
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex b78b190bcb5..e1cf8f6f82d 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -718,9 +718,13 @@ class FastBaseModel:if full_finetuning:max_lora_rank = max(get_lora_supported_ranks())raise NotImplementedError(- f"Unsloth: `fast_inference = True` does not yet support `full_finetuning = True`.\n"- f"Use LoRA rank `r = {max_lora_rank}` as the closest replacement for full finetuning with Unsloth for RL."+ "Unsloth: `fast_inference=True` cannot be used together with `full_finetuning=True`.\n"+ "Reason: fast_inference is optimized for inference-only workflows and "+ "does not currently support full fine-tuning.\n"+ "Workaround: disable fast_inference, or use parameter-efficient fine-tuning "+ f"(e.g. LoRA with rank r={max_lora_rank}).")+model_config.model_name = model_nameif fast_inference: