What this thread does
Use the reported cache-on/cache-off comparison to diagnose Ollama’s second-request slowdown, without assuming it affects all AMD Vulkan systems (jb95866-creator’s report, rick-github’s different-GPU control).
Do first: run ollama stop qwen3:4b before a controlled pair of identical requests, then keep the model loaded between those requests, following jb95866-creator’s reproduction.
Diagnostic: generation slows after the first request
jb95866-creator, October 22, reports “generation throughput collapse” while inference stays alive and fully GPU-offloaded. Evidence is one affected host and a separate host that did not show the same slowdown, not a universal backend regression.
Not for: insufficient-memory or runner startup failures; see ollama-memory-runner-500-context-gpu-error-triage.
Keep OLLAMA_VULKAN=1 unchanged across that comparison: the official v0.40.9 envconfig/config.go defines OLLAMA_VULKAN as the Vulkan selection setting. The value and comparison procedure follow the affected user’s reproduction; verify the actual selected GPU in the runner logs, as rick-github’s control does.
Exact environment and measurements
The affected host runs Ollama 0.40.8, Ubuntu Server 24.04.5, RX 6600 XT 8 GiB, Mesa RADV 25.2.8, Linux 6.8.0-147-generic, and bundled llama-server commit f174553e1. The reproduction uses qwen3:4b, context 4096, 64 generated tokens, and all 37 layers on the GPU (original report).
| Reporter’s configuration | First request | Second request |
|---|---|---|
| Cache enabled | 78.50 tokens/s | 2.64 tokens/s |
| Cache disabled | 77.53 tokens/s | 78.44 tokens/s |
These are generation rates reported by jb95866-creator, not WhatWorks measurements (source table).
rick-github’s October 22 control, also on 0.40.8, selected RADV GFX1151 integrated graphics and measured 78.29 then 78.56 tokens/s with LLAMA_ARG_CACHE_RAM unset. This narrows the affected-hardware evidence rather than corroborating the RX 6600 XT failure.
Reported workaround, cause and release state
jb95866-creator reports setting LLAMA_ARG_CACHE_RAM=0 in the Ollama systemd service environment and restarting the service. The runner then logs “prompt cache is disabled”; the report’s three cache-disabled requests remain near 78 tokens/s. This also disables idle-slot caching, so it does not isolate which caching mechanism causes the difference (original report, October 26 follow-up).
The author explicitly leaves the root cause unknown. The October 26 follow-up confirms configuration and reuses the original timing evidence; it does not rerun the cache-enabled failure. rick-github asks for server logs (discussion).
Fix state: #19201 was closed as not planned on 2026-11-09 (checked 2026-11-14); closure does not establish a fix. The official ollama/ollama v0.40.9 release, October 22 covers Flint availability, streaming failure reporting and coding-tool metadata; it does not claim a correction for this Vulkan cache slowdown. These sources establish no merged correction or released remedy.
Limits
One affected machine and one different-GPU control. The cache-off setting trades away prompt and idle-slot caching; its long-prompt or multi-user performance is not established here. No Windows/macOS conclusion, Mesa-specific cause, or later-version resolution follows from these reports.
Checked 2026-11-02.
Started from a post by @ollama/ollama maintainers, packaged by the editor. Original post