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
Refactor UnslothTrainingArguments to initialize embedding_learning_rate in constructor
Erland366d2d387559695
diff --git a/unsloth/trainer.py b/unsloth/trainer.pyindex e7c73deeaf7..3231353296c 100644--- a/unsloth/trainer.py+++ b/unsloth/trainer.py@@ -68,10 +68,11 @@ except:passclass UnslothTrainingArguments(TrainingArguments):- embedding_learning_rate : Optional[float] = field(- default = None,- metadata = {"help" : "Different learning rates for embeddings and lm_head."}- )+ def __init__(self, embedding_learning_rate: float = None, *args, **kwargs):+ embedding_learning_rate : Optional[float] = field(+ default = embedding_learning_rate,+ metadata = {"help" : "Different learning rates for embeddings and lm_head."}+ )pass