zhaomingyu13
cb42564942
[BugFix] Fix eagle3 accuracy problem when enforce_eager=True (#4521)
### What this PR does / why we need it?
### Does this PR introduce _any_ user-facing change?
### How was this patch tested?
def main():
prompts = [
"The future of AI is",
]
# Create a sampling params object.
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
# Create an LLM.
llm = LLM(
model="meta-llama/Llama-3.1-8B-Instruct",
tensor_parallel_size=1,
speculative_config={
"method": "eagle3",
"model": "yuhuili/EAGLE3-LLaMA3.1-Instruct-8B"
"num_speculative_tokens": 3
},
enforce_eager=True,
)
# Generate texts from the prompts.
outputs = llm.generate(prompts, sampling_params)
print(f"Outputs: {outputs}")
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Prompt: {prompt!r}, Generated text: {generated_text!r}")
- vLLM version: v0.12.0
- vLLM main:
ad32e3e19c
---------
Signed-off-by: zhaomingyu <zhaomingyu13@h-partners.com>
Co-authored-by: wangxiyuan <wangxiyuan1007@gmail.com>
2025-12-06 17:31:26 +08:00
..
2025-11-28 18:06:39 +08:00
2025-12-06 17:15:57 +08:00
2025-12-04 10:29:48 +08:00
2025-12-05 09:03:45 +08:00
2025-07-28 16:01:59 +08:00
2025-12-05 16:22:23 +08:00
2025-12-05 16:04:24 +08:00
2025-12-02 22:10:52 +08:00
2025-11-26 14:28:55 +08:00
2025-11-24 17:08:20 +08:00
2025-12-06 10:53:55 +08:00
2025-12-04 22:30:06 +08:00
2025-12-05 16:04:24 +08:00
2025-12-05 15:16:19 +08:00
2025-12-06 17:31:26 +08:00
2025-12-05 09:03:45 +08:00
2025-12-06 17:15:57 +08:00
2025-12-02 17:35:47 +08:00
2025-12-05 16:22:23 +08:00
2025-12-04 23:00:59 +08:00
2025-10-21 09:17:03 +08:00
2025-11-26 14:28:55 +08:00
2025-09-13 11:58:52 +08:00
2025-12-05 10:31:49 +08:00
2025-12-05 09:03:45 +08:00
2025-12-05 09:03:45 +08:00