We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f0a1c1 commit b554cf7Copy full SHA for b554cf7
1 file changed
squeez/training/train.py
@@ -120,7 +120,7 @@ def train(args: argparse.Namespace):
120
"gradient_accumulation_steps": grad_accum,
121
"learning_rate": lr,
122
"num_train_epochs": epochs,
123
- "warmup_ratio": config.get("warmup_ratio", 0.05),
+ "warmup_steps": config.get("warmup_steps", 10),
124
"weight_decay": config.get("weight_decay", 0.01),
125
"max_length": max_length,
126
"logging_steps": config.get("logging_steps", 25),
@@ -131,6 +131,7 @@ def train(args: argparse.Namespace):
131
"report_to": "none",
132
"seed": 42,
133
"dataset_num_proc": 1,
134
+ "eos_token": "<|im_end|>",
135
}
136
if eval_dataset:
137
sft_config_kwargs["eval_strategy"] = "steps"
0 commit comments