Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/v1/distributed/test_eagle_dp.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ async def test_run_eagle_dp(monkeypatch: pytest.MonkeyPatch):
)

prompt = "This is a test of data parallel with eagle"
num_expected_tokens = 100
# This test might be flaky, see
# https://github.com/vllm-project/vllm/issues/31913
num_expected_tokens = 20
Comment on lines +50 to +52
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.

high

While reducing num_expected_tokens from 100 to 20 might fix the test flakiness, it also reduces the test's coverage. A bug in the data parallel logic for Eagle that only manifests with longer sequences (more than 20 tokens) might now be missed. This could be problematic for ensuring correctness.

Consider investigating the root cause of the flakiness. If it's a timeout issue (see line 75), increasing the timeout might be a better solution. If it's a deeper race condition or non-determinism, that should be addressed directly. Reducing the test's scope should be a last resort. Reverting this change is suggested if a better fix can be found.

Suggested change
# This test might be flaky, see
# https://github.com/vllm-project/vllm/issues/31913
num_expected_tokens = 20
num_expected_tokens = 100

sampling_params = SamplingParams(
min_tokens=num_expected_tokens,
max_tokens=num_expected_tokens,
Expand Down