Explain the cuBLAS compute type failure and offer the fix - #13903
Merged
Conversation
Faster-Whisper-XXL dies inside encode() with "RuntimeError: cuBLAS failed with status CUBLAS_STATUS_NOT_SUPPORTED" on some GPU/driver combinations. The run produces no segments at all, so Subtitle Edit fell through to "load result from STDOUT", found nothing, and closed with an empty subtitle and no explanation. Detect the error in the engine output like the existing CUDA out-of-memory probe, and report it with the workaround that fixes it - forcing "--compute_type float16" - offering to add the parameter right away for the faster-whisper based engines that accept it. Fixes #13902 Co-Authored-By: Claude Opus 5 <[email protected]>
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.
Fixes #13902
The problem
On some GPU/driver combinations Purfview's Faster-Whisper-XXL dies inside
encode():The run produces no segments at all. Subtitle Edit had no probe for that line, so it fell through to "Loading result from STDOUT", found nothing, and closed with an empty subtitle and no explanation — the reporter had figured out on their own that adding
--compute_type float16fixes it, and had been typing it in by hand.The change
OutputHandlernow flagsCUBLAS_STATUS_NOT_SUPPORTEDthe same way it already flags the CUDA out-of-memory line, and the completion handler reports it instead of silently producing nothing.Since the cure is always the same, the message offers to apply it rather than only naming it: on Yes it appends
--compute_type float16to the parameters box and saves, so the next run works and the setting sticks.Three shapes of message, so the advice is never wrong:
--compute_typeset → Yes/No offer to add--compute_type float16--compute_typealready present → suggest another value (float16,int8,float32)--compute_typesuggestion (it would just become "unrecognized argument"); suggests another model/engine or CPUSupportsComputeTypeParametergates the offer to Purfview XXL, CTranslate2, and WhisperX — the faster-whisper/CTranslate2 based engines, which are also the only ones that can raise this error.Testing
dotnet build src/ui/UI.csproj— clean, 0 warnings. The failure needs the reporter's specific GPU to reproduce, so the detection path itself is not exercised here; it is a plain string probe next to the existingCUDA failed with error out of memoryone.🤖 Generated with Claude Code