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.

fix: store embedding_learning_rate on self in UnslothTrainingArguments (#4531)

金黄色葡萄球君君2b330e2f24ec
diff --git a/unsloth/trainer.py b/unsloth/trainer.py
index 65abe6801fc..8bb4440021f 100644
--- a/unsloth/trainer.py
+++ b/unsloth/trainer.py
@@ -132,8 +132,8 @@ except:
class UnslothTrainingArguments(TrainingArguments):
def __init__(self, embedding_learning_rate: float = None, *args, **kwargs):
- embedding_learning_rate = embedding_learning_rate
super().__init__(*args, **kwargs)
+ self.embedding_learning_rate = embedding_learning_rate
def _create_unsloth_optimizer(