Skip to content

Windows Local Model Slow GPU Not Used

oldcai edited this page Oct 16, 2026 · 1 revision

Windows: local models are slow / the dedicated GPU is not used

中文

Symptoms

  • A local speech model (FireRedASR2-AED, R2T2, Qwen3-ASR, Whisper, …) or a local polishing model is very slow. For example, the 6.78-second built-in sample in Speed test takes tens of seconds or even over 100 seconds.
  • Task Manager shows the dedicated GPU almost idle, or shows the work on the integrated GPU.
  • NVIDIA App → Graphics → Program settings shows lazytyper-*-worker.exe as "This program does not support optimization".

Two things that are not the cause

  • "Does not support optimization" can be ignored. NVIDIA App's one-click optimization only covers games in its database. LazyTyper's workers are not games, so they always show this message. It says nothing about whether the GPU can be used.
  • You do not need to install Vulkan. NVIDIA, AMD and Intel GPU drivers already ship the Vulkan runtime (vulkan-1.dll). An installed GPU driver is all you need; LazyTyper does not need the Vulkan SDK.

1. Run the test twice and plug in

  • After LazyTyper restarts, the first transcription is much slower, so judge by the second run. Measured on one RTX 4060 Laptop: R2T2 took 63 s on the first run and 1.1 s on the second; FireRedASR2-AED took 89 s, then 12 s. The exact cause of the slow first run is still being investigated.
  • On a laptop, plug in the charger and turn off battery-saver modes.
  • Close other programs that use a lot of VRAM (ComfyUI, games). Otherwise the model may not fit in the dedicated GPU's memory.

2. Check Vulkan environment variables (the most common cause)

Guides for other AI tools (llama.cpp, LM Studio, Ollama, ComfyUI, …), or an AI assistant that helped you troubleshoot, may have set these variables. They override LazyTyper's own GPU selection:

Variable What it does What goes wrong
GGML_VK_VISIBLE_DEVICES Keeps only the Vulkan devices with the listed index numbers The index order depends on which drivers are installed. If the index points to a device that does not exist, no GPU is left and every model falls back to the CPU, 10–50× slower. If the index happens to point to the integrated GPU, the model runs there.
VK_DRIVER_FILES / VK_ICD_FILENAMES Loads only the listed GPU driver manifests The path contains a random folder name (for example nvqusi.inf_amd64_390bf72f…). A GPU driver update makes the path invalid, and then no GPU is found at all.

To check: open Command Prompt (cmd) and run:

set GGML
set VK_

If it prints "Environment variable GGML not defined" or "Environment variable VK_ not defined", none of these variables is set and you can skip this step.

To remove them:

  1. Open Settings → System → About → Advanced system settings → Environment Variables.
  2. Delete GGML_VK_VISIBLE_DEVICES, VK_DRIVER_FILES and VK_ICD_FILENAMES from both the User variables (top) and the System variables (bottom). Editing system variables needs administrator rights.
  3. Click OK to save.
  4. Quit LazyTyper completely from the tray icon, then start it again. It reads environment variables only at startup.

LazyTyper picks the dedicated GPU automatically. You do not need any of these variables for normal use.

If you really need LazyTyper to use one specific GPU (for example, with two dedicated GPUs), set LAZYTYPER_GGML_VK_VISIBLE_DEVICES instead. It applies to LazyTyper only and needs a release published after 2026-10-16. Do not set the global GGML_VK_VISIBLE_DEVICES.

In releases published after 2026-10-16, LazyTyper ignores GGML_VK_VISIBLE_DEVICES when it starts a local model. It also ignores VK_DRIVER_FILES / VK_ICD_FILENAMES when none of the files they list still exists. Each ignored variable leaves one Withholding a Vulkan environment variable from local-model workers line in the log. Removing the variables is still recommended, because they affect other software too.

3. Confirm which GPU the model actually uses

With Task Manager: keep it open while a transcription runs.

  • On the Processes tab, right-click the column header and enable GPU engine. Check which GPU lazytyper-*-worker.exe shows. On a hybrid laptop, GPU 0 is usually the integrated GPU and GPU 1 the dedicated one.
  • On the Performance tab, select the dedicated GPU. Check whether 3D / Compute usage rises, and whether Shared GPU memory grows a lot. A big rise in shared memory usually means the dedicated GPU ran out of VRAM.

In the log (FireRedASR2-AED): search the log for preflight_:

Log content Meaning
preflight_backend=vulkan, preflight_device= followed by your dedicated GPU, preflight_fallback_reason=none Normal: the encoder runs on the dedicated GPU
gpu_devices_total=0, vulkan_runtime_available=false, preflight_fallback_reason=compiled_gpu_device_unavailable The worker process found no Vulkan device and fell back to the CPU. Check the variables in step 2 first, then update the GPU driver. This does not mean you need to "install Vulkan".
preflight_device= followed by an Intel / AMD integrated GPU The model ran on the integrated GPU. Check the variables in step 2.

4. The dedicated GPU is in use, but it is still not fast enough

  • FireRedASR2-AED runs its decoder on the CPU by design (preflight_decoder_residency=cpu_by_firered_design in the log); the GPU only speeds up the encoder. Even with the dedicated GPU working, expect roughly real-time speed: the observed warm RTF (transcription time ÷ audio length) is 0.8–2. See the GPU limits on the FireRedASR2-AED page.
  • For more speed, switch in Local models to SenseVoice or Paraformer Chinese. These models do not generate text one token at a time, so they are usually far faster than real time even on the CPU. R2T2 and Whisper Turbo are also options: they run entirely on the dedicated GPU. Compare them with Speed test after switching.

When reporting

  • GPU and CPU model, GPU driver version, LazyTyper version;
  • both Speed test timings;
  • the output of set GGML and set VK_;
  • logs: export the full log bundle in settings, or tick Attach recent logs when sending feedback from the app.

For more detailed worker logs, add a user variable as in step 2: LAZYTYPER_AED_WORKER_LOG=1 (FireRedASR2-AED) or LAZYTYPER_QWEN3ASR_WORKER_LOG=1 (R2T2 / Qwen3-ASR / FunASR / local polishing). Then fully quit and restart LazyTyper and run the speed test twice. The logs are written to the matching subfolder (aed, qwen3asr, …) of %APPDATA%\com.lazytyper.desktop\logs\. Remember to remove these variables when you are done.

Sources

  • A Windows troubleshooting case (RTX 4060 Laptop + Intel Iris Xe, NVIDIA driver 616.92): GGML_VK_VISIBLE_DEVICES=1 pointed to a device that did not exist, so every model fell back to the CPU (RTF 11–22). After the fix, the encoder ran on the 4060 again.
  • Fix: LazyTyper releases published after 2026-10-16 ignore these variables automatically (see step 2).

Clone this wiki locally