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 HF tagging in unsloth (#170)

Younes Belkada474fd32f91f7
diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py
index 674a5efa6fe..f11a34a1b1a 100644
--- a/unsloth/models/loader.py
+++ b/unsloth/models/loader.py
@@ -118,6 +118,10 @@ class FastLanguageModel(FastLlamaModel):
*args, **kwargs,
)
+ # in case the model supports tagging, add the unsloth tag.
+ if hasattr(model, "add_model_tags"):
+ model.add_model_tags(["unsloth"])
+
if load_in_4bit:
# Fix up bitsandbytes config
quantization_config = \