-
Notifications
You must be signed in to change notification settings - Fork 420
Move fully-async rollout from examples into miles/rollout #1716
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
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -61,7 +61,7 @@ def execute(args: ScriptArgs): | |||||||||||||||||||||||
| ) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| rollout_args = ( | ||||||||||||||||||||||||
| "--rollout-function-path fully_async_rollout.generate_rollout_fully_async " | ||||||||||||||||||||||||
| "--rollout-function-path miles.rollout.fully_async_rollout.generate_rollout_fully_async " | ||||||||||||||||||||||||
| f"--prompt-data {args.data_dir}/dapo-math-17k/dapo-math-17k.jsonl " | ||||||||||||||||||||||||
| "--input-key prompt " | ||||||||||||||||||||||||
| "--label-key label " | ||||||||||||||||||||||||
|
|
@@ -150,9 +150,6 @@ def execute(args: ScriptArgs): | |||||||||||||||||||||||
| f"{args.extra_args} " | ||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| import os | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| fully_async_dir = os.path.join(os.path.dirname(os.path.abspath(__file__))) | ||||||||||||||||||||||||
| U.execute_train( | ||||||||||||||||||||||||
| train_args=train_args, | ||||||||||||||||||||||||
| num_gpus_per_node=args.num_gpus_per_node, | ||||||||||||||||||||||||
|
|
@@ -161,7 +158,7 @@ def execute(args: ScriptArgs): | |||||||||||||||||||||||
| megatron_path=args.megatron_path, | ||||||||||||||||||||||||
| extra_env_vars={ | ||||||||||||||||||||||||
| "FLASHINFER_DISABLE_VERSION_CHECK": "1", | ||||||||||||||||||||||||
| "PYTHONPATH": f"{args.megatron_path}:{fully_async_dir}", | ||||||||||||||||||||||||
| "PYTHONPATH": args.megatron_path, | ||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||
|
Comment on lines
159
to
163
Contributor
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. Omitting the repository root (
Suggested change
|
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
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.
I suggest we directly add a args
--fully-asyncto make sure all user know there is a fully async example.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.
Also we need to add a fully async CI on dapo math, will submit a PR later.