
Cost per Successful Agent Task with Qwen4-35B-A3B: Testing Quantization and CPU Offload Limits on 8GB GPUs
On this page
Introduction: An 8GB Deployment Is Useful Only If It Finishes the Task
The position: cost per verified successful task, not parameter count
This post is a reproducible protocol for measuring cost per successful agent task with Qwen4-35B-A3B on an 8GB GPU — how quantization format, CPU offload level, and context tier move memory, latency, throughput, and task reliability, and how to compute the one number that decides whether the deployment is viable at all.
An 8GB GPU cannot hold a 35B-parameter model. It can run an agent loop that keeps re-reading those weights from host memory, and the number that decides whether that is viable is what you pay, in money and wall clock, per task that finishes correctly. Parameter count, advertised context capacity, and decode tokens per second are intermediate variables. None of them tells you whether the thing is deployable.
My position: evaluate local agent deployments by cost per verified successful task, and treat zero-success configurations as unbounded cost, not as cheap. Quantization choice, CPU offload level, context tier — those are knobs you turn inside that measurement. They are not a substitute for it.
That is also why I am not publishing a table of Qwen4-35B-A3B numbers. At the time of writing I could not verify a model card, a weight revision, a license, an architecture configuration, or a runtime that executes the architecture. Inventing plausible measurements for a model I have not run would be the exact failure this post argues against. What follows is the protocol, the arithmetic, and the harness — everything that does not require weights in hand — plus an unfilled results schema the artifacts can be dropped into.
Scope of the walkthrough
One documented 8GB GPU system, text-only agent tasks, quantized inference with MoE expert offload to CPU, and context tiers that grow while the task stays fixed. Multimodal inputs are out of scope. The coverage describes the model as multimodal, but image prefill memory and vision-tower residency are separate budgets. Mixing them into a text-agent cost model produces a number that describes neither.
What the Qwen4-35B-A3B Reports Establish—and What Still Needs Verification
The reported timeline and claims
The supplied coverage is dated December 4–5, 2026. SSBCrack published on 2026-12-04 at 08:07 UTC, describing an open-weight multimodal model with a million-token context window. tokenpost published on 2026-12-04 at 18:43 UTC, reporting the model ranks 11th among open agent models. Superpower Daily published on 2026-12-04 at 19:59 UTC, emphasising local builds. App Developer Magazine published on 2026-12-05 at 02:31 UTC with a general release announcement. The seed material also summarises separate reports of a nine-task comparison against MiniCPM5 on an 8GB GPU laptop.
That is what the coverage says. It is secondary reporting, and it is the whole of the evidence available here.
What the reported agent ranking does not tell you
A rank of 11th among open agent models is a position in someone's evaluation. As published in the coverage, it is not reproducible: the prompts are not in the reporting, the scoring rules are not in the reporting, the hardware is not in the reporting, and the runtime configuration — quantization format, offload level, sampler settings, context limit — is not in the reporting.
Those omissions matter. For a 35B MoE on an 8GB card, the offload configuration alone can plausibly move task success more than a rank position does. A ranking produced with weights resident on an 80GB accelerator does not describe the 8GB laptop case. And the nine-task MiniCPM5 comparison in the seed is far too small to separate two models: with nine binary outcomes, a 2-task difference is well inside sampling noise.
I am not saying the reported results are wrong. I am saying they are unverifiable from the coverage, which is a weaker claim.
The artifacts that must exist before any release detail counts as confirmed
Before any of this becomes a deployment fact, these have to be checkable:
- an official model card naming the base architecture, layer count, attention scheme, expert count and routing, and context training regime
- a weight revision identifier, so "Qwen4-35B-A3B" refers to one immutable artifact rather than a moving name
- a license that permits your use
- the architecture configuration file (
config.jsonor equivalent), because the KV/state memory budget is uncomputable without it - a runtime release whose support matrix lists this architecture, and whose tokenizer and chat template match the model card
- a documented tool-call format, because an agent harness that guesses the format measures its own parser, not the model
If any of those are missing, the release details stay "reported" and no evaluation number can be attributed to the named model.
The evidence boundary for this post
The boundary is simple and applies to every section below: arithmetic and harness code are shown and reproducible; measurements are not shown because they were not taken. Where a table would normally hold measured values, it holds an empty schema with column meanings defined, so a reader with the artifacts and the hardware can fill it in and compare against their own numbers.
Copying a launch command from a release write-up and assuming it selected the quantization and offload level you intended is the most common way to produce a meaningless benchmark. Record the resolved command line and the artifact hash, not the command you think you ran.
Define Task Success and Cost Per Success Before Choosing a Quantization
What counts as a successful agent task
A task succeeds only when all four conditions hold:
- The final artifact is correct according to an executable validator, not a model judge.
- Every tool call executed via the allowlisted executor with schema-valid arguments.
- No prohibited action occurred — no network egress, no write outside the declared writable paths, no read of a path outside the sandbox.
- The run terminated inside the declared wall-clock and token budgets.
Condition 4 is part of success, not a separate metric. A configuration that produces the right answer after the deadline has failed, because the deadline is a property of the deployment you are evaluating.
The cost-per-successful-task formula
The formula has to include every attempt, including failures:
C_success = (Σ energy_cost_i + Σ hardware_time_cost_i + Σ attributable_operator_cost_i) / N_success
summed over all attempts i, not just the successful ones. Bounded retries count as separate attempts with their own cost. If N_success = 0, the denominator is zero and the value is undefined — represent it as infinity, never as "cheap because nothing ran".
The metrics that must accompany the money number
A cost-per-success figure alone is uninterpretable. Report all of:
- success rate and first-attempt success rate (they diverge sharply in agent loops, because retries mask planner failures)
- completion latency, at least median and p95
- successful tasks per hour, the throughput number that actually constrains a pipeline
- the denominator, i.e. how many attempts and how many distinct tasks
Zero-success configurations are unbounded, not free
This is the most common accounting error in local-inference write-ups. A configuration that loads successfully, generates fluent text, and completes zero of thirty tasks has a cost per successful task of infinity. It is not the cheapest option; it is not an option. Put it in the results table with the value ∞ and, next to it, the failure class that killed it.
Build the Memory Budget Before Loading the Model
Total parameters versus active parameters
"35B-A3B" means roughly 35 billion total parameters with roughly 3 billion active per token. The active figure describes compute and read traffic per token. It says nothing about residency. Every expert weight still has to be stored, discoverable, and readable when routing selects it. The residency budget is set by the 35B number; the per-token bandwidth budget is set by the 3B number. Confusing the two produces a plan that assumes an 8GB card can hold a model it cannot.
Weight payload from quantization format
Approximate bits per weight, including per-block scales and rounding to the nearest typical block format:
const bpw = { Q8_0: 8.5, Q6_K: 6.56, Q5_K_M: 5.69, Q4_K_M: 4.85, Q4_0: 4.5, Q3_K_M: 3.91, Q2_K: 2.63 };
const totalParams = 35e9;
for (const [name, bits] of Object.entries(bpw)) {
const gb = (totalParams * bits) / 8 / 1e9;
console.log(
name.padEnd(7),
gb.toFixed(2).padStart(6),
"GB weights",
gb < 8 ? "fits 8GB" : "exceeds 8GB VRAM"
);
}Computed output (arithmetic, not measurement):
Q8_0 37.19 GB weights exceeds 8GB VRAM
Q6_K 28.70 GB weights exceeds 8GB VRAM
Q5_K_M 24.89 GB weights exceeds 8GB VRAM
Q4_K_M 21.22 GB weights exceeds 8GB VRAM
Q4_0 19.69 GB weights exceeds 8GB VRAM
Q3_K_M 17.11 GB weights exceeds 8GB VRAM
Q2_K 11.51 GB weights exceeds 8GB VRAM
Every format there exceeds 8GB, including ones most people would not ship. The conclusion is not "use Q2". It is that on an 8GB card this model is a host-resident model with a GPU assist, and the design question is which layers earn their place in VRAM.
Two corrections apply on top of the table: the real bits-per-weight is whatever your quantizer reports for your artifact (mixed formats like Q4_K_M use different schemes per tensor), and non-quantized tensors — norms, biases, embeddings in some configurations, the output head — add payload the average does not capture. Read the quantizer's size report and the resulting file size; do not trust the average.
Context-state memory is not the KV cache until you check the architecture
If the architecture is standard grouped-query attention, per-token state is:
bytes_per_token = 2 (K and V) × n_layers × n_kv_heads × head_dim × bytes_per_element
With a hypothetical configuration of 48 layers, 8 KV heads, head_dim 128, and fp16 state, that is 2 × 48 × 8 × 128 × 2 = 196,608 bytes per token. Scaled to the context tiers:
| Context tier | State memory at 192 KiB/token |
|---|---|
| 2,048 tokens | 384 MiB |
| 8,192 tokens | 1.5 GiB |
| 32,768 tokens | 6.0 GiB |
| 65,536 tokens | 12.0 GiB |
Substitute the real values from the verified configuration file; the numbers above are a worked formula, not a claim about this model. The point stands regardless of exact shape: at 64K context the state alone exceeds the card, on top of 17–21 GB of weights. And if the architecture uses sliding-window attention or a recurrent/hybrid state instead of a full KV cache, this formula is wrong and must be replaced with the actual state shape — another reason the configuration file is a hard prerequisite.
Add workspaces and batch-dependent allocations on top. Runtime workspace is not small, and it scales with the maximum batch you allow, not your average batch.
Host-resident weights, mmap, and page cache are three different things
- Host-resident means the process reads weight pages from RAM on demand. It costs DRAM bandwidth per token.
- Memory-mapped means the OS loads pages from disk into page cache lazily. It reduces startup time but does nothing for steady-state bandwidth — the bytes still come from DRAM.
- Page cache only helps until the working set exceeds available RAM, at which point the kernel evicts and you take major page faults on expert reads. That failure is dramatic and easy to misdiagnose as "the model is slow".
The bandwidth ceiling follows directly. Dual-channel DDR5-5600 is 5600 MT/s × 8 B × 2 = 89.6 GB/s theoretical. Reading ~3B active parameters at 4.85 bits per weight is 3e9 × 4.85 / 8 = 1.82 GB per token. That puts an ideal ceiling near 49 tok/s, and a realistic 50–60% efficiency near 25–30 tok/s, before attention and KV traffic. This is an upper bound from stated assumptions, not a measurement of any specific runtime.
Resource stop conditions
Define these before the first run so the matrix can eliminate configurations mechanically rather than by argument:
- GPU allocation failure, or free VRAM below a fixed headroom (1 GiB is a reasonable default)
- host RSS approaching total RAM minus a reserve for the OS and page cache
- any sustained swap-in activity, or a major page fault rate above a declared threshold
- p95 task latency above the task contract, regardless of correctness
Freeze the Hardware, Model Artifacts, and Inference Stack Before Any Run
Record the machine
Every number below is meaningless if the machine drifts. Capture it to a file that ships with the results.
mkdir -p evidence
{
date -u +%FT%TZ
uname -a
nvidia-smi --query-gpu=name,memory.total,memory.used,driver_version,temperature.gpu,power.draw \
--format=csv,noheader
lscpu | grep -E 'Model name|^CPU\(s\)|Thread|Core|MHz'
free -b
cat /sys/class/power_supply/*/power_now 2>/dev/null
node --version
} | tee evidence/env.txtAdd the memory generation and channel count from the platform's own tooling (dmidecode -t memory on Linux), storage model, power profile, and ambient temperature. Thermal state matters more than people expect on a laptop: a configuration that passes on a cold machine and throttles at minute forty has a different cost per success than the cold run suggests.
Note that marketed VRAM is not usable VRAM. The display and driver reserve some, and the number you can actually allocate is lower and measurable. Measure it; do not assume it.
Pin the model artifacts and the runtime commit
find artifacts/qwen4-a3b -type f -print0 | sort -z | xargs -0 sha256sum | tee evidence/weights.sha256
git -C vendor/llama.cpp rev-parse HEAD | tee -a evidence/env.txt
Record the tokenizer files, the chat template, and the tool-call format the runtime expects. A chat template mismatch manifests as tool calls that parse on one configuration and fail on another, which then gets misreported as a quantization regression.
Fix the sampling and loop settings
Temperature, top-p, seed, max generated tokens, concurrency (1 for this walkthrough), prompt caching, speculative decoding, and any reasoning-mode toggle must be identical across cells. Change any of them between quantization cells and you are measuring the sampler.
Capture what actually ran
Do not present illustrative output as an observation. Capture the resolved command line and the runtime's startup log, which is where offload counts and backend selection appear. If a flag you intended to set was silently ignored by the pinned commit, the startup log is the only place that shows it.
Design a Staged Quantization and CPU-Offload Matrix for an 8GB GPU
Only add quantization formats the runtime supports
Quantization format support is a property of the runtime build, not the model. Check the binary you pinned before adding a cell. Record the quantizer provenance — which tool, which version, which source weights hash — because a "Q4_K_M" produced by two different tool versions is two different artifacts.
Keep cache precision independent of weight precision. Quantized KV cache changes the memory budget and can change output; if you enable it, it is a separate cell, not a detail.
Compare residency levels, and record bytes
Three levels are enough to characterise the shape:
| Level | Description | What you expect |
|---|---|---|
| CPU-only | all layers on CPU | slowest decode, lowest VRAM, no offload transfer cost |
| Intermediate | attention/shared layers on GPU, experts on CPU | best memory/latency trade on small cards |
| Maximum stable | as many layers on GPU as fits with headroom | fastest if it fits, OOM if it does not |
Record actual resident bytes per level, not just layer counts. The mapping from "n layers on GPU" to bytes is not linear when expert tensors are handled differently from attention tensors, and it changes between runtime versions.
MoE offload flags have been renamed and re-scoped across runtime releases. Verify against your pinned binary rather than a tutorial: llama-server --help | grep -iE 'moe|cpu|n-gpu-layers|override-tensor'. A flag name that does nothing is worse than no flag, because it silently produces a cell identical to another cell.
Smoke test first, eliminate early
Before any task runs: load the model, generate 64 tokens, and record load time, peak VRAM, host RSS, and major faults. Configurations that exceed a stop condition are eliminated here, at a cost of seconds instead of hours. This step alone usually removes half the matrix.
A higher-fidelity reference where possible
If you can access a larger machine, run one cell unquantized or at 8-bit on that hardware as a quality reference. Label it clearly as a different machine, and do not attribute cross-machine differences to quantization — differences in batch behaviour, memory bandwidth, and attention kernels are usually larger than the quantization delta you were trying to isolate.
Separate tuning from evaluation
Use 5 of the 30 tasks to choose the configuration, and hold out 25 for the reported result. Selecting the winning quantization and offload level on the same 30 tasks you report inflates the result by exactly the amount you were trying to measure.
Construct an Agent Benchmark with Deterministic Scoring
Thirty sandboxed tasks in three families
- 10 structured extraction tasks — parse a local document into a fixed schema, exact-match validated per field.
- 10 repository-editing tasks — apply a change to a small local repo, validated by running its test suite.
- 10 multi-step tool workflows — sequence of 3–6 allowlisted tool calls, validated by inspecting the resulting filesystem state and the tool-call log.
Every task must have an executable validator. If the validator is "ask a model whether it looks right", the harness measures rater noise.
A machine-readable manifest
{
"suite": "[email protected]",
"taskId": "t-repo-01",
"kind": "repo-edit",
"sandbox": "sandboxes/t-repo-01",
"prompt": "prompts/t-repo-01.md",
"allowedTools": ["read_file", "write_file", "run_tests"],
"toolPolicy": {
"network": false,
"writablePaths": ["src/"],
"maxToolCalls": 24
},
"expected": { "command": "npm test --silent", "exitCode": 0 },
"budgets": { "wallMs": 180000, "generatedTokens": 4096 },
"reset": { "from": "fixtures/t-repo-01.tar", "sha256": "PENDING" }
}The manifest is the contract. Anything not in it — extra tools, unwritable paths, a second validator — is a change to the benchmark and requires a version bump.
Sandbox rules
Tools stay local and least-privileged. Network access off at the process level, not by prompt instruction. No secrets in the sandbox, no credentials in environment variables the agent can read. The filesystem is reset from the fixture tarball before every attempt, verified by hash, because a warm sandbox silently converts a 30-task suite into a 30-task suite with shared state.
Hold the agent loop constant
Tool schemas, parser behaviour, tool-output truncation limits, retry logic, and error message formats must be identical across every cell. Truncate tool results at 2,000 characters in one cell and 8,000 in another and you have changed task difficulty, not the model.
Failure taxonomy
Scoring has to distinguish these, because the mitigations are different:
| Class | Symptom | Surfaced by | Likely cause |
|---|---|---|---|
answer_error | valid run, wrong artifact | validator | model or quantization quality |
invalid_tool_args | call rejected on schema | tool executor | template or parser mismatch |
sequencing_failure | valid calls, wrong order | validator + call log | planning |
budget_exhausted | deadline hit mid-run | runner | latency, or a loop |
runtime_crash | process exit, no artifact | supervisor | OOM, offload bug |
scorer_failure | validator itself threw | validator | harness bug |
scorer_failure must never be counted as a model failure. Every harness bug that lands in the model column quietly corrupts the result.
Increase Context Length Without Quietly Changing the Task
Context tiers to attempt
Plan 2K, 8K, 32K, and 64K, subject to verified model support and the resource stop conditions from the memory section. Given the arithmetic above, 32K and 64K are expected to be infeasible at full GPU residency on 8GB; still worth attempting, because whether they fail at admission or fail at completion is information.
Count the whole serialized input with the pinned tokenizer
Count the exact serialized prompt after chat-template application, including tool schemas, few-shot examples, and prior tool messages. Tokenizer drift between artifacts will shift your 8K tier by hundreds of tokens. Reserve room for generated tokens and for tool results that arrive during the run, which can be substantial and are the usual cause of context overrun mid-task.
Vary distractors, not evidence
Keep the required evidence constant in content and size. Vary distractor volume and the position of the evidence (start, middle, end). If the evidence gets truncated, the task changed and the result must be discarded, not reported as a context-length effect.
Three different things called "context"
- Configured capacity — the number passed to the runtime.
- Successful admission — prompts the runtime actually accepted without truncation.
- Reliable completion — tasks that finished correctly at that length.
Only the third is a deployment property. A 2,000-token measurement on a laptop says nothing about a reported million-token capability; extrapolating across four orders of magnitude of context is not an inference, it is a wish.
Implement the JavaScript Harness That Records Every Agent Attempt
Cell configuration
suite: [email protected]
cell:
id: q4km-offload-max-ctx8k
quantization: Q4_K_M
artifact_sha256: "PENDING"
runtime_commit: "PENDING"
offload_profile: intermediate
sampling:
temperature: 0
top_p: 1.0
seed: 1234
max_tokens: 1024
budgets:
wall_ms: 180000
generated_tokens: 4096
context_tier: 8192
Launch through a wrapper script that resolves the flags, prints the resolved command, and writes it into the evidence directory. Never launch the runtime by hand for a recorded run.
The attempt runner
const now = () => performance.now();
export async function runAttempt({ task, config, client, meter, jsonlPath }) {
const rec = {
schema: "hackyjs.agent-attempt/1",
cellId: config.cell.id,
taskId: task.id,
attempt: task.attempt,
seed: config.sampling.seed,
contextTier: config.context_tier,
artifactSha256: config.cell.artifact_sha256,
runtimeCommit: config.cell.runtime_commit,
outcome: "scorer_failure",
failureReason: null,
timings: {},
usage: {},
energyKwh: null,
};
await resetSandbox(task);
const t0 = now();
rec.timings.requestStartMs = Date.now();
try {
const gen = await client.stream(task, config, (evt) => {
if (evt.type === "first_token" && rec.timings.firstTokenMs == null) {
rec.timings.firstTokenMs = now() - t0;
}
});
rec.timings.generationEndMs = now() - t0;
rec.usage.promptTokens = gen.usage.prompt_tokens;
rec.usage.generatedTokens = gen.usage.completion_tokens;
const toolRun = await executeAllowlisted(gen.toolCalls, task, config.budgets);
rec.usage.toolCalls = toolRun.count;
rec.timings.lastToolEndMs = now() - t0;
const verdict = await task.validate(); // executable, not a model judge
rec.outcome = verdict.ok ? "success" : "answer_error";
rec.failureReason = verdict.ok ? null : verdict.reason;
} catch (err) {
if (err.name === "DeadlineExceeded") rec.outcome = "budget_exhausted";
else if (err.name === "InvalidToolArgs") rec.outcome = "invalid_tool_args";
else rec.outcome = "runtime_crash";
rec.failureReason = String(err.message).slice(0, 200);
} finally {
rec.timings.taskEndMs = now() - t0;
rec.energyKwh = await meter.readDeltaKwh();
await appendJsonl(jsonlPath, rec);
}
return rec;
}Timestamps that answer different questions
Keep request start, first generated token, generation end, each tool execution end, and task termination as distinct fields. Collapsing them destroys the ability to answer the two questions people actually have: how long until the model starts working, and how long until the workflow produces something usable. With reasoning-mode output enabled, those two diverge by an order of magnitude.
One JSONL record per attempt
{"schema":"hackyjs.agent-attempt/1","cellId":"q4km-offload-max-ctx8k","taskId":"t-extract-01","attempt":1,"seed":1234,"contextTier":8192,"artifactSha256":"PENDING","runtimeCommit":"PENDING","outcome":"success","failureReason":null,"timings":{"firstTokenMs":2480,"generationEndMs":31400,"lastToolEndMs":33900,"taskEndMs":41200},"usage":{"promptTokens":3210,"generatedTokens":612,"toolCalls":2},"energyKwh":0.00070}
Unit-test the accounting with fixtures before touching the model
This step catches the expensive mistakes. Run the aggregator against hand-written fixture records, verify the arithmetic, and keep fixture output in a separate directory from model output so the two can never be confused.
Fixture: four tasks, two repetitions each, eight attempts.
| Task | Rep | Outcome | Wall (ms) | Energy (kWh) |
|---|---|---|---|---|
| t-extract-01 | 1 | success | 41,200 | 0.00070 |
| t-extract-01 | 2 | success | 39,800 | 0.00068 |
| t-extract-02 | 1 | invalid_tool_args | 12,400 | 0.00021 |
| t-extract-02 | 2 | success | 44,100 | 0.00075 |
| t-repo-01 | 1 | budget_exhausted | 180,000 | 0.00307 |
| t-repo-01 | 2 | runtime_crash | 8,300 | 0.00014 |
| t-tools-01 | 1 | success | 62,500 | 0.00107 |
| t-tools-01 | 2 | success | 58,900 | 0.00100 |
Aggregator output on the fixture (fixture data, not model measurements):
attempts: 8 distinct tasks: 4 successes: 5
total wall: 447.2 s (0.1242 h)
total energy: 0.00762 kWh
energy cost @ €0.30/kWh: €0.0023
hardware @ €0.233/h: €0.0289
cost per success: €0.0062
successful tasks/hour: 40.3
wilson 95% (attempt-level, n=8): [0.306, 0.863]
task-level success rates: 1.00, 0.50, 0.00, 1.00
The fixture does two jobs. It proves the accounting code runs and the division is right, and it demonstrates the two claims this post makes about costs: electricity is a rounding error against hardware time on local hardware, and an attempt-level confidence interval on eight runs is far too narrow because the eight attempts are really four clusters.
Measure Memory, Latency, Throughput, and Energy Without Mixing Them
Sampling and its blind spots
Sample GPU memory, process RSS, system memory, swap, and temperature on a fixed interval. One second is adequate for task-level work and inadequate for peak detection. A 250 ms spike during prefill can be missed entirely, so either sample faster during the first ten seconds of a request or report the sampled maximum with the interval stated. Never present a sampled peak as the true peak without naming the interval.
On Linux, per-process RSS and major faults are one read away:
grep -E 'VmRSS|VmSwap' /proc/$PID/status
awk '{print "majflt:", $12}' /proc/$PID/stat
Rising major faults during generation is the signature of a working set that no longer fits in page cache, and it looks like a model slowdown until you check.
Separate the phases
Cold start, warmed request, prefill, and decode have different bottlenecks and must not be averaged into one number. Report model load time separately — on a host-resident configuration it can dominate the first task and is a real deployment cost if your service restarts.
Time to first token is not time to first useful action
For an agent, the operationally meaningful latency is time until the first tool call executes with valid arguments. A configuration with fast decode and a chat template that emits malformed tool calls has excellent time-to-first-token and terrible time-to-first-useful-action. Report both.
Energy boundaries
Measure whole-system draw at the wall if you can, using the meter's own stated resolution and sampling interval. A GPU power counter is not laptop energy consumption — it excludes CPU, DRAM, storage, display, and power-supply conversion loss. If you can only measure GPU power, say so and label the number as a lower bound on system energy.
Attribute offload bottlenecks cautiously
Not every slowdown in an offloaded configuration is a PCIe transfer problem. Check, in this order: actual resident bytes per level, host memory pressure and major faults, prefill versus decode split, and only then whether transfer volume explains the gap. In MoE offload, the dominant cost is usually host DRAM reads for expert weights during decode, not transfers across the bus — and the two look identical if you only measure tokens per second.
Execute Repeated Trials and Calculate Cost Per Successful Task
Trial plan
Three repetitions of each of the 30 held-out tasks per surviving configuration and context tier: 90 planned attempts per evaluation cell. Four context tiers and three offload levels is 1,080 attempts — plan the time budget before starting, because a failed cell consumes its full quota.
Order, reset, and policy
Randomise or block execution order so thermal drift and background updates do not correlate with configuration. Reset task state between attempts. Document the warm-up policy, the cooling policy (does the machine get to idle between blocks?), the interruption policy, and the rerun policy. A rerun is a new attempt with its own cost, and if you delete the failed one you have changed the metric.
Uncertainty, honestly
Attempt-level Wilson intervals treat repeated runs as independent. They are not: three attempts at the same task share the task's difficulty. Either aggregate to task level and bootstrap over tasks, or use a cluster-robust method. With 30 tasks, the interval will be wide, and that is the correct answer rather than a flaw in the method.
export function wilson(k, n, z = 1.96) {
if (n === 0) return [NaN, NaN];
const p = k / n;
const denom = 1 + (z * z) / n;
const center = (p + (z * z) / (2 * n)) / denom;
const half = (z * Math.sqrt((p * (1 - p)) / n + (z * z) / (4 * n * n))) / denom;
return [center - half, center + half];
}
export function clusterBootstrap(taskOutcomes, iters = 10000) {
const means = [];
for (let i = 0; i < iters; i++) {
let sum = 0;
for (let j = 0; j < taskOutcomes.length; j++) {
sum += taskOutcomes[Math.floor(Math.random() * taskOutcomes.length)];
}
means.push(sum / taskOutcomes.length);
}
means.sort((a, b) => a - b);
return [means[Math.floor(iters * 0.025)], means[Math.floor(iters * 0.975)]];
}Deployment economics: electricity, hardware time, and operator time
Electricity: measured kWh × tariff, stated explicitly. Hardware: wall hours × amortised hourly cost, where the amortised rate is purchase price divided by expected service hours — declare the assumption, because it moves the answer more than the quantization choice does. Operator time, if the deployment is human-supervised, must be a separate scenario, not folded into the same number: it usually dominates both.
Using the fixture above, energy contributed €0.0023 against €0.0289 of hardware time — a factor of twelve, before counting a single minute of human attention. On this hardware class, the cost conversation is a latency and success-rate conversation, not an electricity conversation.
First-attempt versus bounded-retry economics
Publish both. A configuration with 60% first-attempt success and 90% success within two attempts has different economics from one with 90% first-attempt success, even at the same final rate, because retries carry latency and their own cost. Show the count and elapsed time of every failed attempt.
Present Results That Explain the Trade-Offs
The table schema
Unfilled, because the artifacts were not verified and no runs were executed. Columns are defined so a reader with the hardware can fill it and be comparable.
| Quant | Residency | Context | Peak VRAM | Peak host RSS | TTFT (ms) | Decode (tok/s) | Task p95 (s) | Success (n/90) | Cost/success |
|---|---|---|---|---|---|---|---|---|---|
| Q4_K_M | CPU-only | 2K | — | — | — | — | — | — | — |
| Q4_K_M | intermediate | 2K | — | — | — | — | — | — | — |
| Q4_K_M | max stable | 2K | — | — | — | — | — | — | — |
| Q4_K_M | max stable | 8K | — | — | — | — | — | — | — |
| ... | ... | 32K / 64K | — | — | — | — | — | — | — |
Publishing a filled version of this table with estimates rather than measurements is the failure this whole post is written against.
Traces next to failures
For each representative failure, publish the attempt record and the relevant tool-call sequence. The reader needs to distinguish a quantization-quality failure (valid calls, wrong output) from a parser failure (invalid arguments, output otherwise sensible) from resource exhaustion (no output, process exit). Those three produce identical success counts and completely different fixes.
Do not drop the empty cells
Unsupported, untested, out-of-memory, timed out, and zero-success cells all stay in the table with their status. A matrix that silently omits the cell where the model failed to load is a matrix that overstates the hardware.
The frontier
The useful output of this work is a frontier: configurations meeting a success-rate floor, ordered by cost per success, with latency-budget winners marked separately. Cost and latency winners are frequently different cells, and the deployment decision is which constraint binds.
Apply Mitigations at the Layer That Actually Failed
Memory failures
Change residency, context limit, or model — one variable at a time, as separate cells. Dropping to a smaller verified model is a legitimate mitigation and often the correct one; "smaller model" is not a defeat, it is a different cost-per-success point on the frontier.
Offload latency
If repeated prefill dominates, prompt caching is the obvious lever — but validate it as its own cell. Caching can change output when the cached prefix interacts with the template, and it adds state to a system you were trying to keep simple. Accept it only if it moves cost per success, not just tokens per second.
Agent failures
Schema validation on tool arguments before execution, bounded tool execution with hard timeouts, explicit stop rules, and narrowly scoped retries. Retries must be logged as attempts. A retry policy that hides failures converts a 55% success rate into a reported 90% and destroys the cost calculation.
The deployment gate
Decide before looking at results:
- minimum success rate, with the lower confidence bound stated as the binding number
- maximum p95 task latency
- minimum memory headroom
- fallback behaviour — degrade to a smaller model, queue and retry, or return a structured failure
Choosing the configuration with the fastest decode does not satisfy any of these gates.
Conclusion: Choose the Cheapest Configuration That Meets the Task Contract
What was actually established
Arithmetic: at any shipped quantization format, a 35B-parameter weight payload exceeds 8GB of VRAM, so on this hardware class the model is host-resident and per-token cost is set by DRAM bandwidth, not by the GPU. Context state adds gigabytes at tiers well below the advertised context window, and the exact figure requires an architecture configuration that was not available.
Not established: no Qwen4-35B-A3B artifact was hashed, no runtime was verified to support the architecture, and no task was executed. Every number in the results schema is therefore absent by design. The release claims — open weights, multimodality, million-token context, local builds, 11th among open agent models, a nine-task MiniCPM5 comparison — remain attributed to the December 4–5, 2026 coverage and to nothing else.
Limits on generalisation: even with the artifacts in hand, results from one 8GB system, one runtime commit, and 30 tasks would describe that cell. The transferable output is the protocol and the harness, not the winning configuration.
Reproducibility bundle
Ship the suite manifest, the cell configuration files, artifact and fixture hashes, the runner, the validators, raw JSONL traces, telemetry samples, and the analysis scripts. A reader should be able to take your bundle, substitute their hardware, and get a comparable frontier.
Further Reading and Evidence
Primary sources to verify first
- Qwen organisation on GitHub — official repositories; the model card, configuration, and license should be confirmed here before any release detail is treated as settled.
- Qwen models on Hugging Face — weight revisions and license terms as published by the maintainers.
- llama.cpp — quantization formats, backend support, and MoE offload flags; check the docs and
--helpat the exact commit you pin, since flag names have changed between releases.
Secondary reporting used in this post
The release coverage cited here — App Developer Magazine (2026-12-05), SSBCrack (2026-12-04), Superpower Daily (2026-12-04), and tokenpost (2026-12-04) — arrived as aggregator items and is treated as secondary reporting throughout. The canonical article URLs were not resolvable at the time of writing, so they are named by publisher and date rather than linked. Claims sourced from that coverage remain unverified against primary artifacts, and the nine-task comparison and the agent-model ranking in particular should be re-read against the original methodology before being used to choose a deployment.
More posts

Model Size Is Not Agent Viability: Benchmarking PrismML's 5.9GB 27B-Class Artifact
PrismML's 5.9GB 27B-class artifact is a striking compression claim, but a reproducible benchmark spanning peak runtime memory, usable context, tool-call accuracy, latency, and cost per completed agent task shows why file size alone cannot establish local agent viability.

Amazon Ergo on Four B200s? Verify the GPU Math Before Pricing a Self-Hosted Coding Agent
A deployment-math walkthrough for Amazon Ergo on four B200s, checking conflicting 1.1T versus 11T parameter reports, precision, context length, concurrency, and quality retention before pricing self-hosted coding-agent inference.

Why Declarative Web Push Still Needs a Non-Declarative Fallback in Firefox 162
Firefox 162's declarative Web Push support may simplify notifications, but developers still need a non-declarative fallback for service-worker control, feature detection, and cross-browser delivery.
Loading comments…