gate: production's KV cache back to f16 — it had drifted to q8_0 since 2026-08-08 - #386
Merged
Merged
Conversation
…e 2026-08-08 ADR 0005 moved production to an f16 KV cache on 2026-08-03, by hand. The deployment's compose file still said q8_0, so the 2026-08-08 cutover through compose put production back on q8_0. Later promotions copied the running container's arguments, and q8_0 held until the v0.34.4 fold's think-on protocol found it: a qwen3.6 case that never finished at 131072, which is ADR 0005's signature. Production was recreated with f16 at 07:23 on 2026-09-26, on the same image with every other argument unchanged. A load logs --cache-type-k f16 --cache-type-v f16. The compose file is fixed in ollama-deployments (31923a9). - amd-upgrade-gate.md: a KV cache row in the status table, and the 2026-09-26 decision with the history, the rollback, and the warning that the 0.34.2 rollback container still says q8_0. - ADR 0005: an addendum saying the fix did not hold, and why. - rocm-gate/gatelib.py: PROD_ENV says f16, so the next gate run reproduces production. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 25, 2026
glennneuber
added a commit
that referenced
this pull request
Sep 26, 2026
…plicitly The image rebuilt with 908 (90bb7ffc0be6): three of 2,697 payload files differ from the tested candidate (bin/ollama, the two libggml-cuda.so), and its sm_120a PTX equals the device-half library every measurement used, all 6,240 kernels with the CUB/Thrust ABI tags normalised. Preflight and GGUF think-off on it are queued, then the drafting probe, #387's KV x flash-attention loop test and the fixed-history MLX variant. The maintainer's decision on #386/#387: the v0.34.4 deploy sets OLLAMA_KV_CACHE_TYPE=f16 explicitly. Production runs the f16 default today (12 of 12 KV allocations in its log), so it is not recreated for this alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR records a production fix on the gfx1151 host (
amd-server): its KV cache is f16 again. It changes docs and the ROCm gate tooling'sprodenvironment only, and no code. The CUDA and Metal hosts are not measured here. Their agents may want to check what their ownOLLAMA_KV_CACHE_TYPEis.What happened
ADR 0005 traced qwen3.6's think-mode runaway on grounding prompts to a
q8_0KV cache, and production was recreated with f16 by hand on 2026-08-03. That did not hold:MaxusAI/ollama-deployments,docker/ollama-rocm/docker-compose.yml) had saidq8_0since its first commit.q8_0. The 2026-08-13 and 2026-08-17 deploys used compose too.q8_0with them.The v0.34.4 fold's think-on protocol (#375) found it. qwen3.6
bbox_contract_real_1imgdid not finish at the ladder's top (131072): its thinking repeated 35 distinct lines through the second half. The llama-server command line had--cache-type-k q8_0 --cache-type-v q8_0.What changed
ollama-rocmwas recreated withOLLAMA_KV_CACHE_TYPE=f16, on the same image with every other argument unchanged. It was down for about one second. Theq8_0container is kept asollama-rocm-0.34.3-q8kv.MaxusAI/ollama-deployments31923a9. The compose file says f16, with the reason in a comment.amd-upgrade-gate.mdgets a KV cache row in the status table, and the 2026-09-26 decision with the history and the rollback;tasks/rocm-gate/gatelib.pysetsPROD_ENVto f16, so the next gate run reproduces production.Open
q8_0. Starting it, as the 2026-09-25 rollback does, would bringq8_0back. The doc says to roll back to 0.34.2 with a new container and f16 until it is recreated. Recreating it waits on the maintainer's word.q8_0pair finishes today. An f16 pair is queued after it, and its results go to fold: upstream v0.34.4 — llama.cpp b11081, MLX 59d600b5, XGrammar 0.2.7 #375.Verification
docker inspect ollama-rocmshowsOLLAMA_KV_CACHE_TYPE=f16.--cache-type-k f16 --cache-type-v f16 --flash-attn on, and the model unloaded straight away.check_source_paths.py --changed-since origin/mainis clean.amd-server/rocm-gfx1151🤖 Generated with Claude Code