Skip to content

Local speech model takes ~120 s to load on NVIDIA Vulkan with Resizable BAR, so live transcription times out #33837

Open

Description

@taham8875

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:59 fails the stream after 120 s without a server response. The server sends ready only after startStream has 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.ts kills the worker ("Speech process stopped."). An explicitly chosen GPU is never retried on CPU. With auto the GPU load eventually succeeds, so auto never 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

  1. Linux, NVIDIA laptop GPU with Resizable BAR enabled (here an RTX 3060 Laptop GPU, driver 595.99.02).
  2. Settings > Voice: download Cohere Transcribe Arabic, then set Hardware to the NVIDIA GPU (or Auto).
  3. Run the model test.
  4. After ~120 s the UI shows "Transcription failed". The trace shows SpeechService.startStream failing after ~120,140 ms with "Speech process stopped."
  5. Quit, relaunch with GGML_VK_DISABLE_HOST_VISIBLE_VIDMEM=1 in 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 8x

Related 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

  1. added
    via-triage
    on Nov 10, 2026
  2. taham8875 commented on Nov 10, 2026

    @taham8875
    Author

    Screenshots of the failure in Settings > Voice, ~120 s after starting the model test.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions