Files
FunASR/tests
Leoy d5ea9eb6f9 fix(glm_asr): warn when vLLM dtype=fp16 (degraded output) (#2993)
The GLM-ASR vLLM engine accepts dtype='fp16' but, like Fun-ASR-Nano, fp16
can produce degraded or garbage transcription due to numerical overflow in
the audio embedding path. Fun-ASR-Nano already warns about this; GLM-ASR did
not, so users hitting it got silently poor output with no hint to switch to
bf16/fp32.

Add a small dependency-free helper that emits a one-time warning when fp16 is
requested (the value is still honoured for GPUs that only support fp16), wire
it into GLMASRVLLMEngine.__init__, and cover it with unit tests that run
without a GPU or vLLM.
2026-06-20 22:40:03 +08:00
..
2024-04-24 16:03:38 +08:00
2024-04-24 16:03:38 +08:00