fix(fun-asr-nano): stabilize fp16 vLLM decoding - #3597
Open
LauraGPT wants to merge 1 commit into
Open
Conversation
Signed-off-by: LauraGPT <18321252+LauraGPT@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
float16when users requestdtype="fp16"bfloat16, avoiding the reproducible repetitive/garbage transcript without increasing decoder weight memoryRoot cause and real regression
On an H100 with FunASR 1.4.11, vLLM 0.10.2, and PyTorch 2.8.0+cu128, the public sample consistently returned a long string of
!with both audio and Qwen3 in fp16. Split tests isolated the failure to the Qwen3 decoder: audio fp16 + Qwen3 bf16 returned欢迎您来体验达摩院推出的语音识别模型。, while audio bf16 + Qwen3 fp16 still returned garbage.The exact reported vLLM 0.27.1 / PyTorch 2.13.0 stack requires CUDA 13, while the available H100 host driver supports CUDA 12.8, so that binary could not initialize locally. The fix was therefore validated on the compatible H100 stack above and covered by constructor-level regression tests for both paths.
Verification
python -m py_compilepassed for both implementations and the new testgit diff --checkpassed881c396a2632c0b4336b5041de7197f9526e0951:fp16torch.float16torch.bfloat16欢迎您来体验达摩院推出的语音识别模型。Addresses #3595. Please keep the issue open until the reporter retests the merged/released build.
Signed-off-by: LauraGPT 18321252+LauraGPT@users.noreply.github.com