Skip to content

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.

add trust_remote_code kwarg (#3564)

DoubleMathew01d3794828dd
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index b64e50b5427..137f23919c8 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -640,6 +640,7 @@ class FastBaseModel:
model_name,
token = token,
attn_implementation = "sdpa" if supports_sdpa else "eager",
+ trust_remote_code = trust_remote_code,
)
verify_fp8_support_if_applicable(model_config)