Skip to content

docs(openspec): fix plan #2396 q8_0 memory fit check - #3044

Merged
dan-petty merged 3 commits into
mainfrom
docs/2396-fix-plan
Nov 1, 2026
Merged

dan-petty merged 3 commits into
mainfrom
docs/2396-fix-plan

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This pull request corrects the plan for #2396 (the q4_0 KV cache type of the Ollama 16 GiB tier). The evaluation of the staged plan (pull request #2988) found defects. This change fixes the plan in place. It changes no code and no test.

The corrected plan:

  • Checks the premise against main. The manifest sets q4_0 on this tier and q8_0 on the other eight tiers.
  • Checks that q8_0 fits gpt-oss:20b at the 131072 context. The bound is for the chat model alone: 13660 MiB peak plus up to 1536 MiB, which is 15196 MiB of 16303 MiB.
  • Notes that the embedder is not counted. Ollama unloads the idle model when both do not fit.
  • Uses a command check in place of a new test.

Plans #2396

The plan did not check that a q8_0 KV cache fits gpt-oss:20b on the 16 GiB tier. It named a test file that does not exist, and it left out criterion 3 of the issue. The corrected plan adds the memory check, a command in place of a test, an acceptance map and a spec delta that reads true for all nine tiers.
@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Changes to the plan:

  • The proposal checks that q8_0 fits gpt-oss:20b on the 16 GiB tier (new Feasibility check).
  • The tasks use a command check in place of a new test.
  • The memory bound now covers the chat model alone: 13660 + up to 1536 = 15196 MiB of 16303 MiB. The embedder is not counted, and Ollama unloads the idle model when both do not fit. The old 15421 MiB figure is removed from proposal.md and design.md.

Evaluation findings:

  • Confirmed: the plan did not check that q8_0 fits; the plan named a new test where a command check is enough.
  • Confirmed (minor): the 15421 MiB worst case assumed the embedder was resident in the peak. Nothing shows that. Fixed.
  • The premise holds: line 126 of ollama-profiles.yaml sets q4_0, and the other eight tiers set q8_0. No newer change did or removed this.

Verification:

  • openspec validate --strict: valid.
  • uv run devops openspec check: passed.
  • tests/invariants/test_change_folders.py: 16 passed.
  • Existing manifest tests: 129 passed on the base.
  • Memory margin is an estimate. The pod was not reachable (502 on kubectl exec), so a person must confirm with ollama ps after the rollout.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 13:13
@dan-petty
dan-petty merged commit f09eda6 into main Nov 1, 2026
19 checks passed
@dan-petty
dan-petty deleted the docs/2396-fix-plan branch November 1, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant