-
Notifications
You must be signed in to change notification settings - Fork 449
Make the cell based train group the only trainer implementation #2154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| from miles.dashboard.args import add_dashboard_arguments, validate_dashboard_args | ||
| from miles.rollout.checkpoint_eval import is_checkpoint_eval_fn | ||
| from miles.utils.chat_template_utils.tito_tokenizer import TITOTokenizerType | ||
| from miles.utils.environ import enable_experimental_ft_trainer, use_legacy_rollout_v1 | ||
| from miles.utils.environ import use_legacy_rollout_v1 | ||
| from miles.utils.eval_config import EvalDatasetConfig, build_eval_dataset_configs, ensure_dataset_list | ||
| from miles.utils.file_arg_utils import resolve_file_arg | ||
| from miles.utils.ft_utils.health_checker import SimpleHealthCheckerConfig | ||
|
|
@@ -3279,11 +3279,6 @@ def miles_validate_args(args): | |
| ) | ||
| if args.train_backend != "megatron": | ||
| raise ValueError("Shared Actor/Critic PPO requires the Megatron backend") | ||
| assert not enable_experimental_ft_trainer(), ( | ||
| "Shared Actor/Critic PPO is not supported with MILES_EXPERIMENTAL_FT_TRAINER=1: the v2 " | ||
| "fault-tolerant train group cannot route critic values or lifecycle options yet. " | ||
| "Unset MILES_EXPERIMENTAL_FT_TRAINER or use a non-PPO advantage estimator." | ||
| ) | ||
| assert args.kl_coef == 0, ( | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [P1] Reject multi-cell shared PPO during validation With |
||
| "Shared Actor/Critic PPO does not support reward-level KL (--kl-coef): the critic " | ||
| "trains before the actor and never sees ref log probs, so its value targets would " | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[P1] Do not kill trainer cells on optional export failures
At a nonfinal staged snapshot eval, a converter or I/O error—or FSDP's unsupported
export_hf—runs throughRayTrainCell.executewithkill_on_failure=True, stopping the trainer beforeEvalDispatchercatches the error and skips the eval. The next training step then has no live cell; use non-destructive dispatch for this optional export. This remains in deliver-1 and deliver-2.