@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 513f074766
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 15, 13:30 UTC

[CI/test] Fix Eagle Correctness Test (#17209)

Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>

Woosuk Kwon committed Apr 25, 2025 at 23:40 UTC 513f0747669a130d11ced3921ad80aa5cae72846
2 files changed +5 -4
tests/v1/e2e/test_spec_decode.py
+2 -2
@@ -148,7 +148,7 @@ def test_eagle_correctness(
148 print(f"ref_output: {ref_output.outputs[0].text}")
149 print(f"spec_output: {spec_output.outputs[0].text}")
150
151 - # Heuristic: expect at least 70% of the prompts to match exactly
151 + # Heuristic: expect at least 66% of the prompts to match exactly
152 # Upon failure, inspect the outputs to check for inaccuracy.
153 - assert matches > int(0.7 * len(ref_outputs))
153 + assert matches > int(0.66 * len(ref_outputs))
154 del spec_llm
vllm/config.py
+3 -2
@@ -2220,9 +2220,10 @@ class SpeculativeConfig:
2220 excluding anything before input ids/embeddings and after
2221 the final hidden states.
2222 """
2223 - # no factors to consider.
2224 - # spec decode does not use `torch.compile` yet.
2223 factors: list[Any] = []
2224 + # Eagle3 affects the computation graph because it returns intermediate
2225 + # hidden states in addition to the final hidden state.
2226 + factors.append(self.method == "eagle3")
2227 hash_str = hashlib.md5(str(factors).encode(),
2228 usedforsecurity=False).hexdigest()
2229 return hash_str