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
GPT-OSS support (#3099)
DoubleMathew9eab2cbc45ea
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.pyindex a5b7d181649..023234413a7 100644--- a/unsloth/models/loader.py+++ b/unsloth/models/loader.py@@ -589,6 +589,9 @@ class FastModel(FastBaseModel):"float16;torch.float32;torch.float16;"\"if name.endswith(('q_proj', 'k_proj', 'v_proj', 'o_proj', 'gate_proj', 'up_proj', 'down_proj', 'head')): module.to(torch.float16);"os.environ["TRITON_F32_DEFAULT"] = "ieee"+ elif "gpt-oss" in lowered_model_name:+ os.environ["UNSLOTH_MODEL_NAME"] = "gpt_oss"+ os.environ["UNSLOTH_DISABLE_STATIC_GENERATION"] = "1"else:for check_model_name in DISABLE_COMPILE_MODEL_NAMES:if check_model_name in lowered_model_name:diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 246e5d5671b..ab95231507d 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -626,6 +626,7 @@ class FastBaseModel:r = r,lora_alpha = lora_alpha,target_modules = target_modules,+ target_parameters = kwargs.get("target_parameters", None),lora_dropout = lora_dropout,bias = bias,task_type = task_type,