Skip to content
Merged
Show file tree
Hide file tree
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: 1 addition & 3 deletions tests/v1/distributed/test_eagle_dp.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ async def test_run_eagle_dp(monkeypatch: pytest.MonkeyPatch, attn_backend: str):
)

prompt = "This is a test of data parallel with eagle"
# 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(
max_tokens=num_expected_tokens,
ignore_eos=True,
Expand Down
7 changes: 5 additions & 2 deletions vllm/v1/attention/backends/flash_attn.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,11 @@ def build(
slot_mapping = common_attn_metadata.slot_mapping
causal = common_attn_metadata.causal

# the overhead of the aot schedule is not worth it for spec-decode
aot_schedule = self.aot_schedule and not fast_build
# Disable AOT schedule for spec-decode proposer (not worth the overhead)
# and for batch invariance (schedule varies with max_seqlen_q/k).
aot_schedule = (
self.aot_schedule and not fast_build and not envs.VLLM_BATCH_INVARIANT
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: this is a lambda

)

if self.aot_sliding_window is None:
self.aot_sliding_window = (-1, -1)
Expand Down
Loading