Skip to content

[Bug]: Speech transcription silently runs on CPU in WSL2 with an NVIDIA GPU (Vulkan-only GPU discovery) #38297

Open

Description

@brasillero

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Run the T3 Code server inside WSL2 on a Windows machine with an NVIDIA GPU. The NVIDIA driver is installed on Windows as usual for WSL, and nvidia-smi works inside WSL.
  2. Open Settings → Voice and select a local model (here whisper-large-v3-turbo, Q8_0). Leave Hardware on Auto.
  3. Open the Hardware dropdown, then dictate something.

Expected behavior

Either the NVIDIA GPU appears under Hardware and Auto uses it, or T3 shows that no GPU was found, so the user knows transcription is running on the CPU and why.

Actual behavior

Hardware only offers Auto and CPU. Auto quietly runs on the CPU, and the row still says "Auto uses the environment's GPU when it has one." Dictation is much slower than it should be, and nothing in the UI explains why.

Cause, as far as I can tell: the server ships only @transcribe-cpp/linux-x64-cpu-vulkan, so on Linux GPU discovery relies on Vulkan. Under WSL2, the NVIDIA GPU is exposed through /dev/dxg and /usr/lib/wsl/lib for CUDA (and D3D12) only. NVIDIA ships no Vulkan driver for WSL, and Ubuntu's Mesa does not include the D3D12-based Vulkan driver (dozen). Discovery therefore finds only the CPU. Native Linux with the NVIDIA driver, or native Windows, should not hit this, because both have a Vulkan driver.

Measured outside T3, calling transcribe-cpp 0.4.1 directly the same way the server loads it: whisper-large-v3-turbo Q8_0, 33 s of English audio, warm run, identical output:

Backend Time
CPU (bundled linux-x64-cpu-vulkan, Ryzen 9 5900X, 8 vCPUs in WSL) 15.52 s
CUDA0 (RTX 3060, transcribe.cpp's own linux-x86_64-cuda 0.4.1 build) 0.83 s

Related, but not the same problem:

A possible small direction, for maintainers to decide: when GPU discovery finds no GPU, say so in the Hardware row (for example "Auto: CPU, no GPU found"). When the server runs in WSL, which T3 already detects elsewhere, point out that the GPU is reachable there only through CUDA. I'm not asking for CUDA support itself. I'm mentioning it in case it's something you want.

Impact

Major degradation or frequent failure

Version or commit

0.1.10-nightly.20261116.4787. Checked main @ 6ab633f on 2026-11-17: still only the cpu-vulkan package, and no CUDA or WSL handling for speech.

Environment

Windows host, WSL2 Ubuntu 24.04.5 (kernel 6.18 microsoft-standard-WSL2), NVIDIA GeForce RTX 3060 12 GB, Windows NVIDIA driver 621.01, AMD Ryzen 9 5900X. T3 Code server runs in WSL as a systemd user service.

Logs or stack traces

# Devices transcribe-cpp 0.4.1 reports with the bundled linux-x64-cpu-vulkan library (inside WSL2):
[{ "name": "CPU", "description": "AMD Ryzen 9 5900X 12-Core Processor", "deviceType": "cpu" }]

# Same call with TRANSCRIBE_LIBRARY pointing at transcribe.cpp's linux-x86_64-cuda 0.4.1 build:
[{ "name": "CUDA0", "description": "NVIDIA GeForce RTX 3060", "deviceType": "gpu" },
 { "name": "CPU",   "description": "AMD Ryzen 9 5900X 12-Core Processor", "deviceType": "cpu" }]

# The Vulkan ICDs present in WSL are Mesa's (llvmpipe, radeon, intel, nouveau, ...); there is no NVIDIA or dozen ICD.

Workaround

Point the server at transcribe.cpp's CUDA build with TRANSCRIBE_LIBRARY:

  1. Download transcribe-native-0.4.1-linux-x86_64-cuda.tar.gz from the transcribe.cpp v0.4.1 release. Its version must match the transcribe-cpp version T3 pins; otherwise the binding throws VersionMismatch.
  2. It needs libcudart.so.12, libcublas.so.12 and libcublasLt.so.12, which are not in the tarball. I took them from NVIDIA's nvidia-cuda-runtime-cu12 and nvidia-cublas-cu12 wheels and symlinked them next to libggml-cuda.so, whose RUNPATH is $ORIGIN. TRANSCRIBE_CUDA_RUNTIME_DIR is not applied when TRANSCRIBE_LIBRARY is set. libcuda.so.1 comes from /usr/lib/wsl/lib.
  3. Set TRANSCRIBE_LIBRARY=<dir>/libtranscribe.so in the environment of the T3 server process (here a systemd drop-in), then restart it. Speech workers inherit the variable. Hardware then lists the RTX 3060, and Auto uses it.

This adds about 1.1 GB on disk and has to be re-synced whenever T3 bumps transcribe-cpp, so it is only a workaround.


Investigated and written with Claude Opus 5.5 (Claude Code, running inside T3 Code); reviewed with GPT-6.1 Sol (Codex).

Activity

  1. brasillero commented on Nov 17, 2026

    @brasillero
    Author

    A small extra, separate from the missing GPU support itself: it would help to show what Auto resolved to in the Hardware selector, such as Auto (CPU) or Auto (GPU).

    The speech status the UI receives already includes this (benchmarkTier), so no new server data would be needed, and I would have noticed the CPU fallback right away.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions