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
Update vision.py
Daniel Han52c6458fddc7
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 38606c4ff97..5524d8f16d3 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -428,7 +428,13 @@ class FastBaseModel:bnb_config.get_loading_attributes = lambda *args, **kwargs: {}# Cannot be None, since HF now checks for the config- if load_in_4bit: kwargs["quantization_config"] = bnb_config+ if load_in_4bit:+ # Ignore load_in_4bit / load_in_8bit for MXFP4 - best to get config file+ if "gpt-oss" in model_name.lower():+ pass+ else:+ kwargs["quantization_config"] = bnb_config+ pass# Check if using forced float32 - we load it in bfloat16, then cast to float16!torch_dtype = dtype