ray bugfix

This commit is contained in:
Dan Saunders
2025-03-31 18:35:41 +00:00
parent 32ce167404
commit 70b466aa67

View File

@@ -509,6 +509,7 @@ def train(
# Save the trained model and cleanup
save_trained_model(cfg, trainer, model, safe_serialization)
create_model_card(cfg, trainer)
cleanup_distributed()
if not cfg.use_ray:
cleanup_distributed()
return model, tokenizer, trainer