Skip to content

fix(recipes): disable vLLM async scheduling for GLM-5.1 - #4354

Merged
yuki-97 merged 1 commit into
NVIDIA-NeMo:r0.8.0from
sharonyu-115:fix/glm51-disable-vllm-async-scheduling
Oct 2, 2026
Merged

yuki-97 merged 1 commit into
NVIDIA-NeMo:r0.8.0from
sharonyu-115:fix/glm51-disable-vllm-async-scheduling

Conversation

@sharonyu-115

@sharonyu-115 sharonyu-115 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do ?

This is to address v0.8.0 release test failure: RL-1291
Disable vLLM asynchronous scheduling in the GLM-5.1 64-node GRPO recipe to avoid a generation hang with TP=32, EP=128 (vLLM DP=4). The default Ray V2 executor remains enabled.

With vLLM 0.26 and above, the async-enabled test stalled before completing its first training step and eventually timed out in Gloo DP synchronization (execute_dummy_batch -> _dummy_run -> coordinate_batch_across_dp). The shared model runner can skip DP collective participation on a zero-token scheduled step. Disabling async scheduling avoids the reproduced failure without patching vLLM.

Issues

Related upstream defect: vllm-project/vllm#43547

Proposed upstream fix: vllm-project/vllm#44601

This is a recipe workaround; it does not repair the underlying vLLM collective-participation bug.

Usage

Run the existing tests/test_suites/llm/grpo-glm5.1-64n8g-megatron.sh test. The recipe now sets policy.generation.vllm_kwargs.async_scheduling: false; no executor environment override is needed.

Before your PR is "Ready for review"

  • Followed the contributor guidelines; commit includes DCO sign-off.
  • Existing functional test covers the configuration change; no new unit test needed.
  • Recipe inheritance/value validation, config_cli.py minimize-check for this recipe, and git diff --check passed.
  • Full 20-step training test and both native metric checks passed. The general unit-test suite was not run locally for this YAML-only change.
  • Added a recipe comment explaining the workaround and linking the upstream issue.

Additional Information

Validation used the September 26 nightly image (vLLM 0.26.0) and NeMo-RL snapshot 4aaa48fabd178a4bf481e52c49e9125995e0f2a8 on 64 nodes / 512 H100 GPUs. All comparisons below used the original vLLM code, without the local empty-step fix.

Job Executor Async scheduling Result
19496857 Legacy Ray Disabled 20/20 steps; native checks passed
19500601 Default Ray V2 Enabled Gloo timeout; 0 completed steps
19511299 Default Ray V2 Disabled 20/20 steps; native checks passed

For job 19511299, mean train/gen_kl_error = 0.00292111603776 (< 0.01), and max train/reward = 0.875 (> 0.1). The successful run applied the equivalent CLI override ++policy.generation.vllm_kwargs.async_scheduling=false; the recipe now makes that setting explicit.

This branch is based on upstream main 44903f51bee0aa5733e958eafd2a0c7cfe69384a. The target recipe was unchanged between the tested snapshot and this base before applying the setting. Full training validation was on the pinned snapshot, rather than a new full run of current main.

Disabling async scheduling may reduce overlap between scheduling and GPU execution. No throughput improvement is claimed.

@sharonyu-115 sharonyu-115 added the CI:L1 Run doctests, unit tests, and functional tests label Sep 29, 2026
@sharonyu-115

Copy link
Copy Markdown
Contributor Author

/ok to test a08d53b

@copy-pr-bot

copy-pr-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@sharonyu-115 sharonyu-115 added CI:L0 Run doctests and unit tests and removed CI:L1 Run doctests, unit tests, and functional tests labels Sep 30, 2026
@sharonyu-115

Copy link
Copy Markdown
Contributor Author

/ok to test 0bc49d9

@sharonyu-115

Copy link
Copy Markdown
Contributor Author

/ok to test e7df86c

@sharonyu-115

Copy link
Copy Markdown
Contributor Author

Hi @terrykong, could you help review this PR when you get a chance? Thanks!

@yuki-97 yuki-97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @sharonyu-115 , thanks for the fix! could you help to check whether the fix still works based on r0.8.0 branch (vLLM 0.29.0)?
FYI we have similar fail tests number for vLLM 0.26.0 and 0.29.0, so we decided to release with vLLM 0.29.0, so that people only need to focus on fixing on vLLM 0.29 instead of need to fix both.

@sharonyu-115

Copy link
Copy Markdown
Contributor Author

hi @sharonyu-115 , thanks for the fix! could you help to check whether the fix still works based on r0.8.0 branch (vLLM 0.29.0)? FYI we have similar fail tests number for vLLM 0.26.0 and 0.29.0, so we decided to release with vLLM 0.29.0, so that people only need to focus on fixing on vLLM 0.29 instead of need to fix both.

Hi @yuki-97 Thanks for the review and the information. I've verified on r0.8.0 at 59ff35ae with vLLM 0.29.0 and PyTorch 2.13.0+cu130, using cached regression image rl.70818629.sqsh. With async_scheduling: false, the GLM-5.1 test completed 20/20 steps on 64 nodes / 512 H100 GPUs in 2h 38m 35s (job 19614788, exit 0:0). The default Ray V2 executor remained enabled, with no local vLLM patch.

Both native checks passed:

  • Mean generation KL error: 0.002892 (< 0.01)
  • Maximum training reward: 0.875 (> 0.1)

No generation hang or collective timeout occurred. This confirms the proposed recipe setting works on r0.8.0 with vLLM 0.29.0.

Log of the run /lustre/fs1/portfolios/coreai/projects/coreai_dlalgo_nemorl/users/shuangy/validation/glm-r080-vllm029-20261001/run/19614788-logs/ray-driver.log

@sharonyu-115
sharonyu-115 changed the base branch from main to r0.8.0 October 2, 2026 07:34
GLM-5.1 generation with TP=32 and EP=128 hangs in DP synchronization
when vLLM 0.26 RayExecutorV2 uses asynchronous scheduling. Zero-token
steps can skip the worker collective while another engine runs a
dummy forward.

Set async_scheduling=false in this recipe while retaining the default
Ray V2 executor. Document the workaround and upstream tracking issue.

Validated the equivalent CLI override with the unchanged 20-step
nightly test on 64 nodes / 512 H100 GPUs, without a local vLLM patch
(job 19511299). Both native metric checks passed. The async-enabled
control timed out before completing step 1 (job 19500601).

Signed-off-by: Shuang Yu <[email protected]>
@sharonyu-115
sharonyu-115 force-pushed the fix/glm51-disable-vllm-async-scheduling branch from 3ec8759 to f39fad6 Compare October 2, 2026 07:41
@sharonyu-115 sharonyu-115 added the cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main label Oct 2, 2026
@sharonyu-115

Copy link
Copy Markdown
Contributor Author

/ok to test f39fad6

@sharonyu-115

sharonyu-115 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Hi @yuki-97 I've updated this PR to based on the r0.8.0 branch with the cherry-pick-to-main label.

@yuki-97 yuki-97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good! thanks @sharonyu-115

@yuki-97
yuki-97 enabled auto-merge (squash) October 2, 2026 07:47
@yuki-97
yuki-97 merged commit d3c239f into NVIDIA-NeMo:r0.8.0 Oct 2, 2026
124 of 126 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main CI:L0 Run doctests and unit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants