Skip to content

[Testing] Fix test_sharded_state_loader - #51736

Merged
zou3519 merged 1 commit into
vllm-project:mainfrom
zou3519:rel
Aug 11, 2026
Merged

zou3519 merged 1 commit into
vllm-project:mainfrom
zou3519:rel

Conversation

@zou3519

@zou3519 zou3519 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Purpose

This test compares the following:

  1. load checkpoint -> generate outputs from prompts
  2. load checkpoint -> reshard checkpoint -> reload checkpoint -> generate output from prompts

Generating the output from prompts assumes batch invariance; if the vLLM scheduler schedules a different amount of batches across 1 and 2 then we can get different results.

This PR forces the generation to do one sequence at a time to fix the batch size. This is what the rocm path did as well.

Test Plan

Run test with PyTorch 2.14, where the divergence showed up

Test Result

Test passed

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@zou3519 zou3519 added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 10, 2026
@zou3519
zou3519 enabled auto-merge (squash) August 10, 2026 22:32
@zou3519

zou3519 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #83236 for commit b8079ca26bbf.

This test compares the following:
1. load checkpoint -> generate outputs from prompts
2. load checkpoint -> reshard checkpoint -> reload checkpoint ->
   generate output from prompts

Generating the output from prompts assumes batch invariance; if the vLLM
scheduler schedules a different amount of batches across 1 and 2 then
we can get different results.

This PR forces the generation to do one sequence at a time to fix the
batch size. This is what the rocm path did as well.

Signed-off-by: Richard Zou <zou3519@gmail.com>
@zou3519

zou3519 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator Author

/ci run

@github-actions

Copy link
Copy Markdown

✅ Triggered Buildkite CI #83409 for commit aa17a9d287aa.

@zou3519
zou3519 merged commit cb30f6f into vllm-project:main Aug 11, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants