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
make llama registration more specific
jeromeku8d393f29c10d
diff --git a/unsloth/registry/_llama.py b/unsloth/registry/_llama.pyindex c84c5b8d308..ec6e39a86d5 100644--- a/unsloth/registry/_llama.py+++ b/unsloth/registry/_llama.py@@ -1,6 +1,7 @@from unsloth.registry.registry import ModelInfo, ModelMeta, QuantType, _register_models-_IS_LLAMA_3_REGISTERED = False+_IS_LLAMA_3_1_REGISTERED = False+_IS_LLAMA_3_2_REGISTERED = False_IS_LLAMA_3_2_VISION_REGISTERED = False@@ -70,14 +71,20 @@ LlamaMeta_3_2_Vision = ModelMeta()-def register_llama_3_models(include_original_model: bool = False):- global _IS_LLAMA_3_REGISTERED- if _IS_LLAMA_3_REGISTERED:+def register_llama_3_1_models(include_original_model: bool = False):+ global _IS_LLAMA_3_1_REGISTERED+ if _IS_LLAMA_3_1_REGISTERED:return_register_models(LlamaMeta_3_1, include_original_model=include_original_model)+ _IS_LLAMA_3_1_REGISTERED = True++def register_llama_3_2_models(include_original_model: bool = False):+ global _IS_LLAMA_3_2_REGISTERED+ if _IS_LLAMA_3_2_REGISTERED:+ return_register_models(LlamaMeta_3_2_Base, include_original_model=include_original_model)_register_models(LlamaMeta_3_2_Instruct, include_original_model=include_original_model)- _IS_LLAMA_3_REGISTERED = True+ _IS_LLAMA_3_2_REGISTERED = Truedef register_llama_3_2_vision_models(include_original_model: bool = False):global _IS_LLAMA_3_2_VISION_REGISTERED@@ -88,7 +95,8 @@ def register_llama_3_2_vision_models(include_original_model: bool = False):def register_llama_models(include_original_model: bool = False):- register_llama_3_models(include_original_model=include_original_model)+ register_llama_3_1_models(include_original_model=include_original_model)+ register_llama_3_2_models(include_original_model=include_original_model)register_llama_3_2_vision_models(include_original_model=include_original_model)if __name__ == "__main__":