Add callbacks to Trainer
Browse files
src/axolotl/utils/trainer.py
CHANGED
@@ -204,6 +204,7 @@ def setup_trainer(cfg, train_dataset, eval_dataset, model, tokenizer):
|
|
204 |
return_tensors="pt",
|
205 |
**data_collator_kwargs,
|
206 |
),
|
|
|
207 |
**trainer_kwargs,
|
208 |
)
|
209 |
|
|
|
204 |
return_tensors="pt",
|
205 |
**data_collator_kwargs,
|
206 |
),
|
207 |
+
callbacks=callbacks,
|
208 |
**trainer_kwargs,
|
209 |
)
|
210 |
|