You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local model lane: free GPU model for checkable backlog jobs #1062
area:machinesFleet, placement, capacity, host tools, updates, kits on machinessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Goal: keep the backlogs moving when Claude usage runs out, using a free local model on a machine's own GPU, for jobs a machine can check.
Plan
One machine with a GPU serves an open coding model through an OpenAI-compatible local server. T3's existing OpenCode provider points at it, so delegate_task can pick it like any other model. No new mechanism; facts (host, port, model name) go in the machine file.
Measure first: tokens/s, and quality on 10 real sample tasks per job type below, each against the answer an Opus run gave.
Only job types that pass go into the model policy as a "local" tier.
Good fits (a script or CI checks every result)
Issue triage: add missing labels, find likely duplicates, flag stale issues with evidence. The result is a proposal file; a script applies only allowed label changes.
Lint, format, type and knip fixes; CI decides.
Plain-English and wording passes on docs; the doc checks decide.
First-draft unit tests for pure functions, kept only if they pass and catch a mutation.
Log and CI-failure summaries: read-only, can't break anything.
Not for it: data-loss, deploy, security or merge-path code; reviews and lenses; design. These stay on Opus.
Safety: a local-model PR still needs green CI. It merges only in the job types above, and only through the normal queue. The local tier never approves its own work.
Target card (owner, 2026-11-23): the PC is offline a lot, so the local model's real home is the home server. It has an 8 GB Turing card (RTX 2080 Super), 31 GB of host RAM shared with containerised game servers, and runs plain Ubuntu after the reinstall. The PC trial picks the best config that fits 8 GB, for example a MoE with experts offloaded to the CPU, or a dense 7-14B coder at Q4. The PC card stays an extra when it is on.
After the reinstall, the model server runs as a container on that card. It shares the card with a translation service, so it loads and unloads on demand. The general gardener's judgment step (#1064) and the backlog jobs use it.
Server: llama.cpp llama-server b11429, OpenAI-compatible, loopback only, plain GGUF quants, q8_0 KV cache, flash attention, --ctx-checkpoints 32. Measured on a 16 GB RTX 5070 Ti. For the 8 GB target card (RTX 2080 Super, Turing), llama.cpp's own VRAM use (model + context + compute) was capped at 7.5 GB or less. Turing has about half the memory bandwidth, and CPU-side MoE experts depend on the host's RAM speed, so treat these speeds as an upper bound and re-measure on the server.
Config
VRAM
Host RAM
Context
Prompt tok/s
Gen tok/s
Triage score
Qwen3.6-35B-A3B UD-IQ3_XXS, --n-cpu-moe 24
6.6 GB (32k) / 7.0 GB (64k)
~7.2 GB
64k
~1,000-1,060
57-64
10/10
same, --n-cpu-moe 27
7.05 GB
~7.6 GB
128k (largest tried)
~1,000
54-59
same weights
Qwen3.5-9B Q4_K_M, all on GPU
6.6 GB
1.5 GB
64k
4,800-5,500
100-115
4.5/10
Qwen2.5-Coder-7B-Instruct Q4_K_M, all on GPU
5.3 GB
0.8 GB
32k
5,200-6,500
96-130
0.5/10
16 GB only: Qwen3.6-35B-A3B UD-IQ3_XXS, all on GPU
13.2 GB
0.5 GB
64k
~3,500
131-151
9/10
Research expected ~146 tok/s for the 16 GB setup; the measured 131-151 tok/s matches. Multi-turn prompt reuse works on the hybrid model with --ctx-checkpoints 32: turn 2 re-processed only 20 of 9.2k tokens, and no "forcing full prompt re-processing" appeared.
Triage trial: 10 open status:needs-labels issues; nothing applied, nothing commented. The model got the label list (with descriptions) and all open titles, and proposed labels plus a likely duplicate. Each proposal was scored against an Opus reference answer:
Right = exactly one type:*, one prio:*, at least one scope label, only existing labels, no status:* removed, no false duplicate, and type, prio and scope all acceptable.
Partly = one miss.
Qwen3.6-35B-A3B scored 9 and 10 of 10 over two runs: no invented labels, no false duplicates, and its one miss was a scope (area:tooling where plugin:minestom-server was right). The dense 7-9B models invented labels (area:ops, scope:...), removed status:* labels, or ran out of tokens while thinking.
Code jobs (Qwen3.6-35B-A3B through the Pi harness, scratch clone, no push):
First-draft unit tests for a pure JS reporter: 13-15 tests, all passing. The test-list entry was right, and 5 of 7 mutants were caught. One test name was wrong. 32 s on 16 GB, 469 s at the 8 GB cap (a longer agent path).
Plain-English pass on a fork-ci README: the doc check passed every time, but there were meaning shifts each run. One 8 GB run hit the 16k output cap and wrote nothing. The retry misspelled an action name and broke a list. Fail: the doc check can't catch meaning changes.
T3 wiring:
T3's Pi provider lists the local model (OpenAI-compatible provider in Pi's models.json), and Pi tool calls work.
On this build, the probe ran pi from PATH and ignored the instance's binary path setting.
Port 4190 is on fetch's blocked-ports list, so Pi refuses it. Use another port.
delegate_task to the local model is refused by the model policy until a "local" row exists (step 3, by design).
The OpenCode comparison was skipped, per the research.
Recommendation for the 8 GB server: Qwen3.6-35B-A3B UD-IQ3_XXS, --n-cpu-moe 24, 64k context, q8_0 KV (~7.0 GB VRAM, ~7 GB host RAM), driven by Pi.
Pass: issue-triage label proposals, applied only by a script that enforces the allowed label list.
Conditional: first-draft unit tests, kept only if they pass and catch a mutation, with review of the test names and assertions.
Not yet: doc wording passes.
Dense 7-9B models: fail.
Sharing the GPU: the server's GPU will be shared with a translation service, so the model server must load and unload on demand (llama-server router mode with one model loaded, or idle unload behind a GPU lock), not stay resident.
area:machinesFleet, placement, capacity, host tools, updates, kits on machinessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability
Activity
scuttletoby commentedon Nov 23, 2026
Target card (owner, 2026-11-23): the PC is offline a lot, so the local model's real home is the home server. It has an 8 GB Turing card (RTX 2080 Super), 31 GB of host RAM shared with containerised game servers, and runs plain Ubuntu after the reinstall. The PC trial picks the best config that fits 8 GB, for example a MoE with experts offloaded to the CPU, or a dense 7-14B coder at Q4. The PC card stays an extra when it is on.
After the reinstall, the model server runs as a container on that card. It shares the card with a translation service, so it loads and unloads on demand. The general gardener's judgment step (#1064) and the backlog jobs use it.
🤖 Generated with Claude Code
scuttletoby commentedon Nov 23, 2026
Step 1 measurements (setup + trial, read-only)
Server: llama.cpp
llama-serverb11429, OpenAI-compatible, loopback only, plain GGUF quants, q8_0 KV cache, flash attention,--ctx-checkpoints 32. Measured on a 16 GB RTX 5070 Ti. For the 8 GB target card (RTX 2080 Super, Turing), llama.cpp's own VRAM use (model + context + compute) was capped at 7.5 GB or less. Turing has about half the memory bandwidth, and CPU-side MoE experts depend on the host's RAM speed, so treat these speeds as an upper bound and re-measure on the server.--n-cpu-moe 24--n-cpu-moe 27Research expected ~146 tok/s for the 16 GB setup; the measured 131-151 tok/s matches. Multi-turn prompt reuse works on the hybrid model with
--ctx-checkpoints 32: turn 2 re-processed only 20 of 9.2k tokens, and no "forcing full prompt re-processing" appeared.Triage trial: 10 open
status:needs-labelsissues; nothing applied, nothing commented. The model got the label list (with descriptions) and all open titles, and proposed labels plus a likely duplicate. Each proposal was scored against an Opus reference answer:type:*, oneprio:*, at least one scope label, only existing labels, nostatus:*removed, no false duplicate, and type, prio and scope all acceptable.Qwen3.6-35B-A3B scored 9 and 10 of 10 over two runs: no invented labels, no false duplicates, and its one miss was a scope (
area:toolingwhereplugin:minestom-serverwas right). The dense 7-9B models invented labels (area:ops,scope:...), removedstatus:*labels, or ran out of tokens while thinking.Code jobs (Qwen3.6-35B-A3B through the Pi harness, scratch clone, no push):
T3 wiring:
models.json), and Pi tool calls work.pifrom PATH and ignored the instance's binary path setting.delegate_taskto the local model is refused by the model policy until a "local" row exists (step 3, by design).Recommendation for the 8 GB server: Qwen3.6-35B-A3B UD-IQ3_XXS,
--n-cpu-moe 24, 64k context, q8_0 KV (~7.0 GB VRAM, ~7 GB host RAM), driven by Pi.Sharing the GPU: the server's GPU will be shared with a translation service, so the model server must load and unload on demand (llama-server router mode with one model loaded, or idle unload behind a GPU lock), not stay resident.
🤖 Generated with Claude Code