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.

Initialize parent class in UnslothTrainingArguments constructor

Erland3667a306bfbdca6
diff --git a/unsloth/trainer.py b/unsloth/trainer.py
index 3231353296c..6a42fe4a2fb 100644
--- a/unsloth/trainer.py
+++ b/unsloth/trainer.py
@@ -69,10 +69,8 @@ pass
class UnslothTrainingArguments(TrainingArguments):
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."}
- )
+ embedding_learning_rate = embedding_learning_rate
+ super().__init__(*args, **kwargs)
pass