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
LoRA 16bit fix
Daniel Han268930e2cd9f
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex e3fab290a0f..262d403b3a6 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -479,11 +479,6 @@ class FastModel(FastBaseModel):"Also, we by default set `load_in_4bit = True`.\n"\"If you want 8bit finetuning, set both `load_in_4bit = False` and `load_in_8bit = True`")- if load_in_4bit: pass- elif load_in_8bit: pass- elif not load_in_4bit and not load_in_8bit and not full_finetuning:- print("Unsloth: LoRA, QLoRA and full finetuning all not selected. Switching to QLoRA.")- load_in_4bit = Truepassold_model_name = model_namediff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 8799e01522c..bf11bc6c1eb 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -263,15 +263,7 @@ class FastBaseModel:llm_int8_skip_modules = SKIP_QUANTIZATION_MODULES.copy(),)elif not load_in_4bit and not load_in_8bit and not full_finetuning:- print("Unsloth: LoRA, QLoRA and full finetuning all not selected. Switching to QLoRA.")- load_in_4bit = True- bnb_config = BitsAndBytesConfig(- load_in_4bit = True,- bnb_4bit_use_double_quant = True,- bnb_4bit_quant_type = "nf4",- bnb_4bit_compute_dtype = bnb_compute_dtype,- llm_int8_skip_modules = SKIP_QUANTIZATION_MODULES.copy(),- )+ print("Unsloth: LoRA, QLoRA and full finetuning all not selected. Switching to 16bit LoRA.")passif full_finetuning: