Ray train bugfix (#2458)

* fix nccl pg destroy warning

* update

* ray bugfix
This commit is contained in:
Dan Saunders
2025-03-31 15:17:43 -04:00
committed by GitHub
parent ef6eb77cc8
commit b35992262e

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