vllm - 💡(How to fix) Fix [Bug]: R1 NVFP4 flash_infer_one_sided on prefill causes accuracy degradation during P/D

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Your current environment

The deployment config can be found in PD.

With the change of a2a backend to

--all2all-backend "flash_infer_one_sided" \

in prefill.yaml here.

With deepep_high_throughput, the accuracy is stable at around 96.3%.

🐛 Describe the bug

<img width="1440" height="526" alt="Image" src="https://github.com/user-attachments/assets/f4fd9f8e-2588-4594-a12e-138e699f2bac" />

The accuracy goes down to about 92.9% from the usual 96.3%.

Important: flash_infer_one_sided does not cause an accuracy drop when used for decode.

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

TL;DR

The accuracy drop from 96.3% to 92.9% may be related to the change in the all2all-backend to flash_infer_one_sided in the prefill.yaml configuration.

Guidance

  • Review the flash_infer_one_sided configuration and its impact on the model's accuracy, especially when used for inference.
  • Compare the performance of flash_infer_one_sided with other backend options to determine if the issue is specific to this configuration.
  • Investigate if there are any known limitations or trade-offs with using flash_infer_one_sided that could be contributing to the accuracy drop.
  • Consider testing the model with the original backend configuration to isolate the cause of the accuracy drop.

Notes

The issue seems to be specific to the flash_infer_one_sided backend and does not occur when used for decoding, suggesting that the problem may be related to the inference process.

Recommendation

Apply a workaround by testing alternative backend configurations to find one that maintains the desired accuracy level, as the current configuration change seems to be the likely cause of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING