Repository navigation
Description
What happened
Settings > Voice, model Cohere Transcribe Arabic (2.3 GB), Hardware set to the NVIDIA GPU. The model test shows "Transcription failed" about two minutes after starting, every time. Auto resolves to the same GPU and behaves the same. CPU works.
Diagnosis
The model load does not hang. It takes about 120 s, and the client gives up at 120 s.
packages/client-runtime/src/voice-input/stream.ts:59fails the stream after 120 s without a server response. The server sendsreadyonly afterstartStreamhas loaded the model, so a slow load is reported as a generic "Transcription failed".- When the socket closes, the stream aborts and
apps/server/src/speech/native.tskills the worker ("Speech process stopped."). An explicitly chosen GPU is never retried on CPU. Withautothe GPU load eventually succeeds, soautonever falls back either.
Load times, measured outside the app with the bundled @transcribe-cpp/linux-x64-cpu-vulkan 0.4.1, calling TranscribeModel.load on the installed cohere-transcribe-arabic-07-2026-Q8_0.gguf the same way the worker does:
| Acceleration | Load | 3 s transcription |
|---|---|---|
| NVIDIA (Vulkan1) | 120.4 s | 0.3 s |
auto (picks Vulkan1) |
121.0 s | 0.3 s |
NVIDIA + GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM=1 |
1.6 s | 0.1 s |
cpu |
0.7 s | 0.9 s |
The full 2.3 GB shows up in VRAM within ~10 s. For the rest of the load, one core stays at ~100% in __memcpy_avx_unaligned_erms, called from libggml-vulkan.so under transcribe_model_load_file (sampled with gdb). Resizable BAR is on (BAR1 8 GiB), so ggml-vulkan puts the weights in host-visible device-local memory and the CPU copies them in directly. On this machine that copy runs at about 20 MB/s. With GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM=1, ggml-vulkan copies through a staging buffer instead. I did not find out why direct BAR writes are this slow here, so this may be specific to some laptops or drivers.
Steps to reproduce
- Linux, NVIDIA laptop GPU with Resizable BAR enabled (here an RTX 3060 Laptop GPU, driver 595.99.02).
- Settings > Voice: download Cohere Transcribe Arabic, then set Hardware to the NVIDIA GPU (or Auto).
- Run the model test.
- After ~120 s the UI shows "Transcription failed". The trace shows
SpeechService.startStreamfailing after ~120,140 ms with "Speech process stopped." - Quit, relaunch with
GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM=1in the app's environment, and test again. The model is ready in about 2 s and dictation works.
Version
0.1.8 (desktop AppImage, stable, local server)
Environment
Ubuntu 24.04.5, Linux 7.0.0-38, X11, i9-12900H + Iris Xe + RTX 3060 Laptop 6 GB, NVIDIA 595.99.02, Electron 44.10.1
Evidence
# server.trace.ndjson (stack frames trimmed)
SpeechService.selectModel 2026-11-10T10:17:13Z 24 ms Success
SpeechService.startStream 2026-11-10T10:17:15Z 120134 ms Failure
SpeechOperationError: Environment speech streaming transcription failed.
[cause]: Error: Speech process stopped.
SpeechService.startStream 2026-11-10T10:32:41Z 120142 ms Failure (retry, same cause)
# gdb, loading thread, ~45 s into the load
#0 __memcpy_avx_unaligned_erms ()
#1 ?? () libggml-vulkan.so
#2 ?? () libggml-vulkan.so
#3-#5 ?? () libtranscribe.so
#6 transcribe_model_load_file () libtranscribe.so
# nvidia-smi -q
BAR1 Memory Usage: Total 8192 MiB
PCIe Generation: Max 4, Current 2 Link Width: Max 16x, Current 8xRelated issues
#32673 (an explicitly chosen GPU is never retried on CPU) and #32050 (Auto keeps a slower GPU because the load succeeds) touch the same code paths, but neither covers a load that takes as long as the 120 s stream timeout.
Fix applied or workaround
A launcher script that exports GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM=1 before starting the AppImage. The speech worker inherits the server's environment, and in-app updates relaunch with the same environment. With it, the NVIDIA GPU loads the model in ~2 s and dictation works. Setting Hardware to CPU also works.
Filed by
Claude Code (claude-opus-5-5) via t3 triage
Activity
taham8875 commentedon Nov 10, 2026
Screenshots of the failure in Settings > Voice, ~120 s after starting the model test.