SMOKE-8B-v1: Qwen3-8B correctness smoke (preregistered)
Status: PREREGISTERED before any 8B token was produced by this engine (2026-10-11). Lane: sc#384, authorized by Drake (sc#384 comment 6110013055). A smoke test, not a qualification and not a promotion of the 8B to a product model. Qualification of the 8B stays a separate, later decision.
Why this exists
The 8B differs from the qualified 4B in ways the engine had not been shown to handle: a pinned chat template with a thinking switch (now pinned, thinking off, ChatTemplate::ChatMlQwen3NoThink) and an untied output head (tie_word_embeddings=false, separate lm_head.weight; CPU loader path covered by crates/aien-inference-abi/tests/qwen3_untied_head.rs). This smoke shows, once, that the whole path produces the same tokens on the CPU reference and on the GB10.
Fixed inputs
- Model:
~/models/qwen3-8b, Hugging FaceQwen/Qwen3-8Brevision b968826d9c46dd6066d109eabc6255188de91218. Before any run, the script checks sha256 ofconfig.jsonand the five shards against the values recorded inEVAL-qwen3-8b.mdSection 1 (branch d1/qwen3-8b-eval, or main once sc#434 merges): config f7c4eadf..., shards 31d6a825..., 5991236c..., c5185c47..., b5ee7de7..., 20c2d636... A mismatch stops the run. - Conversations (both with system
You are a careful assistant., thinking off). Prompt 1: userReply with the single word OK.(max 16 new tokens). Prompt 2 (added in the same PR, before any GB10 run): userList the months of the year, one per line, nothing else.(max 48 new tokens; chosen so the greedy reply is at least 16 tokens before eos; the first candidate, the days of the week, gave only 13 tokens and was replaced). Prompt 1 renders, byte for byte, to<|im_start|>system\nYou are a careful assistant.<|im_end|>\n<|im_start|>user\nReply with the single word OK.<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\nand prompt 2 to the same layout with its user text (the driver exits with code 4 on any difference). - Decoding: greedy (temperature 0), 16 new tokens at most, stop on the model's stop set (
<|im_end|>among them), one warm-up turn first, as the daemon does. Driver:crates/aien-runtime/examples/qwen3_8b_smoke.rs; runner:scripts/smoke_qwen3_8b.sh.
Steps and verdicts (all decided now)
- Template (already unit-tested, no model needed): the engine's rendering equals the hand oracle, the jinja2 3.1.6 rendering (
render_oracle.json) and the publisher's file byte for byte. Test:tests/qwen3_8b_chat_template.rs. - Untied head, CPU:
tests/qwen3_untied_head.rs(synthetic checkpoint with a row-swappedlm_head.weightagainst the transformers oracle logits of the tiny Qwen3; an untied config withoutlm_head.weightis refused). - CPU leg (
smoke_qwen3_8b.sh cpu):ReferenceCpuBackend, host f32 weights. Itsprompt_idsandoutput_idsare recorded as the golden values inSMOKE-8B-v1.golden.json. The CPU leg is the reference by construction; it is judged only for being well formed (non-empty output, fallback_count 0) and for the reply being sensible text, which is reported, not gated (a 16-token greedy reply of an 8B on one prompt is weak evidence of quality and is not claimed as such). - GB10 leg (
smoke_qwen3_8b.sh gb10): the daemon's GB10 construction (session open, resident bf16 load,OmegaGb10Backend, production-strict build,AIEN_REQUIRE_BLACKWELL=1). PASS if and only if all of:- for BOTH prompts,
prompt_idsequal the goldenprompt_ids; - for BOTH prompts,
output_idsequal the goldenoutput_idstoken for token (parity); fallback_countis 0 (the backend counter covers both prompts of the run; a fallback on either fails the run). Any other outcome is FAIL. A near-tie that flips a token is a FAIL and is reported with the logit margin; no tolerance is raised to accept it. A refusal by name (engine not linked, model refused, resident load or session failure) is a FAIL with the reason, never a silent CPU result.
- for BOTH prompts,
- Recorded, not gated: wall time per leg,
VmHWM, decode ms per token.
What the chip run needs (not run by this lane)
- The machine free: the whole-system runs RUN-7-CPU and RUN-7-GB10 finished,
quietlock checkclear, nowhole_system_e2eprocess (the script checks both). - About 16.4 GB of device-resident weights plus serving buffers on the GB10; the host must not hold a second f32 copy (the resident load avoids it). The 4B needed the same care (omega#327: NV_ERR_NO_MEMORY when MemFree was low).
- The golden file from the CPU leg committed or present at
docs/campaigns/open-model-qwen3/SMOKE-8B-v1.golden.json. - The pinned GPU engine build through
scripts/pins.sh --gpu(done by the script). - Known limit, UNVERIFIED (confidence 60 percent that it works first time): the GB10 mode of the driver mirrors the daemon's construction by reading
crates/aien-cli/src/commands.rs(build_native_daemon_backend) but has only been compiled, not run on the chip. If it fails on setup (for example a serving-buffer reservation the daemon does and the driver does not), the failure is a driver gap, to be fixed and re-run, not a model verdict.
Limits
- Two prompts, at most 48 tokens: parity on these prompts, not correctness in general.
- No Hugging Face reference token ids were produced for the 8B; the golden values come from this engine's CPU leg, whose correctness rests on the 4B/tiny-model oracle tests of the same code. EVAL Section 8 step 3 (a Hugging Face reference run, off-repo) remains open and is a stronger check; UNVERIFIED whether the CPU leg equals it.
Recorded after the CPU leg ran (2026-10-11, the only leg run so far)
CPU leg on ~/models/qwen3-8b (sha256 check passed), ReferenceCpuBackend, fallback_count 0, wall time 203 s for the whole script (load, warm-up, both turns). Prompt 1: 30 prompt tokens, reply OK, output ids [3925], then eos. Prompt 2: 37 prompt tokens, 23 output tokens, reply the twelve month names one per line, then eos. Golden prompt ids, output ids and replies for both: SMOKE-8B-v1.golden.json. Prompt 1 ids are identical to the first recording. This does not change any verdict rule above. The GB10 leg has not been run.
Attempt record
| attempt | started (UTC) | main | outcome |
|---|---|---|---|
| 1 | 2026-10-11T15:20:26Z | 7cfc7a8 | harness defect, no verdict: the gb10 leg ran (sha256 ok, GPU session opened, backend OmegaGb10Backend, both prompts generated, fallback_count 0) but the engine printed one informational line (GPU session: open on attempt 1/3 ...) to stdout ahead of the JSON result, so jq could not parse gb10.json and the script reported gb10 result not well formed. Diagnostic read of the JSON line by the coordinator (OBSERVED, informational, not the verdict): prompt and output ids equal the CPU golden on both prompts. Fix: the script now keeps raw stdout as <leg>.raw and extracts the JSON line into <leg>.json. The verdict comes only from a run under the fixed script. |
| 2 | 2026-10-11T16:01:36Z | c26f4d7 | PASS: gb10 leg under the fixed script; sha256 ok (config + 5 shards), GPU session opened, backend OmegaGb10Backend, prompt 1 output ids [3925] and prompt 2 (23 ids, months) equal the committed CPU golden id for id, fallback_count 0, script exit 0 at 16:02:55Z. Independently re-checked by hashing the output-id arrays of gb10.json against SMOKE-8B-v1.golden.json (equal). Evidence: evidence-smoke-8b/attempt-2/ (gb10.json, gb10.raw, gb10.err, build-gb10.log, pins.txt, SHA256SUMS). |
Verdict
SMOKE-8B-v1 PASS (attempt 2, 2026-10-11T16:02:55Z, main c26f4d7): actual model load, CPU reference output (golden from sc#436), GB10 parity on both prompts, zero fallback. Scope limit unchanged: two prompts, greedy, 16 and 32 new tokens; this is the loader qualification, not the model-quality campaign (v7 stays DRAFT / NOT_RUN until the ALLEN driver and the full dry-run gate are verified).