In this article I want to follow Qwen4 from a downloaded checkpoint to a piece of SVG that we can actually open. Along the way I want to understand what its recurrent layers remember, how sparse attention chooses where to look, and why a model with billions of parameters can still run into trouble because two functions disagree about the format of one cache.

Our C-Kernel-Engine already had much of the underlying architecture. This bring-up was a useful test of that work: could we import this particular packed release, lower its circuit into C, run it, and follow the first disagreement when the output was wrong? Then we asked the running model to draw parts of the system that was executing it.

Start with the forty layers we actually executed

This is the map I would keep beside the article. The colored strip comes from the retained generated C: sparse QSA appears at zero-based layers 3, 7, 11 and so on through 39. The other 30 layers use DeltaNet. The explanatory panels were written editorially, so the drawing is a source-derived schematic rather than an unedited model answer.

Forty-layer generated schedule: thirty recurrent layers and ten sparse attention layers
Editorial schematic derived from the generated C schedule. Thirty recurrent layers and ten QSA layers; this is the pinned archive, not a schedule inferred from the Qwen4 name.

Below I separate three things: SVG text written directly by the model, diagrams rendered from a model-authored JSON specification, and editorial figures checked against source and logs. The distinction helps me use the illustrations without mistaking a good-looking diagram for a passed numerical test.

First, look at what actually came back

I supplied the facts and asked for a compact four-stage infographic. The runtime returned the XML below, which a browser renders as an image. That makes the result easy to inspect: did it close the SVG, use the requested dimensions, retain the supplied facts and stop on its own?

Original Qwen4-generated four-stage SVG: import, lower, generate and verify
Original, unedited CKE output at an 8,192-token capacity. The “one-hour” wording came from our prompt; it is narrative framing, not a measured elapsed bring-up benchmark. Click the image to inspect it at full size.

The answer contains 1,077 generated tokens and ended at token 248046. It parses at 1200 × 760. The model was given the numbers and stage names; drawing them is not independent verification of those facts. There is also a useful instruction-following wrinkle: the brief asked for a 2,300-character maximum, but the returned SVG is longer. Valid XML and complete instruction adherence are separate checks.

Read the exact compact promptPrompt used for the direct SVG runtext
Return only one raw standalone SVG infographic, 1200x760, with an SVG namespace and closing </svg>. HARD LIMIT: 2300 characters total. Use ONE inherited text font/fill, shared styles on <g>, a dark background and restrained cyan and amber accents. No gradients, icons, comments, fences, scripts, or external links. Use a bold title, four colored numbered bands in a 2x2 grid, at most two short readable lines per board, and a small footer. Favor clarity and compact XML.

Title: Qwen4 in CKE. Subtitle: Anatomy of a one-hour bring-up (approximate).
1 IMPORT: 36 GB Q4_K_M; 882 tensors; packed splits.
2 LOWER: 30 DeltaNet + 10 sparse layers; fix BF16 KV.
3 GENERATE: native C prefill and decode; 8 of 256 experts.
4 VERIFY: Paris and EOS 248046; llama.cpp 2/2 greedy tokens.
Footer: Pinned archive only. Logits not bit-exact; long context and serving were not certified at bring-up.

What is new in Qwen4, and what was already there?

The name covers a family. Here I am discussing the archived 35B-A3B release. The publisher describes Qwen4 as building on Qwen3.8-Flash-Next. That matters when we compare it with “previous Qwen”: Gated DeltaNet and hybrid schedules already existed in earlier branches. This release combines inherited mechanisms with sparse retrieval, richer residual paths and local-pattern memory; we should not count every block as a newly invented Qwen4 operation. The publisher’s overview explains that lineage.

MechanismHow I interpret its roleWhat to compare with earlier designs
Gated DeltaNetUpdate a compact memory matrix as tokens arrive.A recurrent component already used by earlier hybrid Qwen models; it replaces storing every historical key/value in those layers.
Qwen sparse attention (QSA)Choose blocks of history before the expensive attention read.Compared with a full-attention retrieval layer, selection limits which historical rows participate.
Four-stream gated residualLearn how information is read from and written to several residual streams.More flexible than one residual vector updated by x + f(x). This is learned activation routing, not changing weights during inference.
N-gram embeddings / PLERetrieve learned local token-pattern features and inject them at a configured layer.Adds a lookup-based path alongside the sequence mixer and expert networks.
Sparse expertsChoose eight of 256 expert networks and add a gated shared branch.MoE itself predates Qwen4. The exact packing and gating still matter to a runtime.
Training choicesThe associated architecture report studies Muon, stability and training the sparse indexer.The report covers the Flash-Next architecture; its larger-model experiments are not automatically the exact 35B data recipe.

The pinned model card counts 35B main-model parameters with approximately 3B activated, alongside a 20B n-gram component and 2B MTP component. “A3B” therefore cannot be read as “download three billion weights.” Our tested archive is roughly 36 GB. The separate MTP artifact is outside this experiment.

Qwen4 header, forty-layer body and output head
Qwen4 header, forty-layer body and output head. Open a block for equations, shapes and the pinned circuit JSON.

The checkpoint’s hidden width is 2,048 and its vocabulary has 248,320 entries. Ten groups each contain three recurrent layers followed by one sparse-attention layer. Every depth has its own parameters. That is different from the shared-weight loop in our Inkling discussion: the repeated visual pattern here describes a schedule of distinct layers.

The circuit has a header for tokenization, embedding lookup and stream expansion, a body selected by layer kind, and a footer that mixes streams and produces vocabulary logits. The JSON also contains full-attention alternatives used by related configurations. Their presence does not mean this archive executes them. Inspect the actual circuit at the tested revision.

What does a recurrent layer remember?

Suppose a key is a way to address information and a value is what we want to store. In a one-head illustration, the state S is a matrix mapping key features to value features. We first decay the old memory, compare its prediction with the new value, then write a correction:

A one-head Gated DeltaNet recurrencetext
S_bar = alpha * S_previous
error = v - transpose(S_bar) @ k
S_new = S_bar + beta * outer(k, error)
y = transpose(S_new) @ q
Read the decay, prediction error and rank-one memory update
Read the decay, prediction error and rank-one memory update. Open a block for equations, shapes and the pinned circuit JSON.

Here α controls retention, β controls the write, and q asks a question of the updated state. The outer product has the same key-by-value shape as S. This is why the recurrence can summarize history without retaining a separate attention row for every old token. The full layer also includes learned projections, a short convolution, normalization and output gating. Those details affect the result and remain visible in the diagram’s source JSON.

The configuration has 16 key heads and 32 value heads with dimensions 128. The provider handles their grouping. After context mixing, projection and residual injection return the result to the hidden stream, then the feed-forward experts transform it further.

Why keep sparse attention as well?

A compressed state is useful, but sometimes a query needs to revisit particular historical tokens. The sparse layers retain a cache. A smaller indexer ranks compressed blocks; selected positions tell the main attention where to read. For an eligible index set I, the familiar attention expression becomes softmax(qK[I]ᵀ / √d)V[I].

Follow index selection and BF16 cache reads into attention
Follow index selection and BF16 cache reads into attention. Open a block for equations, shapes and the pinned circuit JSON.

There are 16 main query heads and two key/value heads, each with dimension 256; rotary position encoding covers 64 dimensions. The lighter indexer has four query heads, one shared key head and dimension 128. Blocks compress four positions, with a configured budget equivalent to 512 blocks or 2,048 token positions. The current incomplete block and causal rules also matter; this is more than taking the largest 2,048 numbers from an arbitrary score vector.

This selection mechanism is a long-context efficiency idea. Our short prompt cannot demonstrate its difficult regime: the prompt has fewer tokens than the retrieval budget. A future test should put important facts deep in a much longer input and check both selected positions and the final answer.

Eight experts does not mean eight processors

Inspect routed SwiGLU experts and the gated shared branch
Inspect routed SwiGLU experts and the gated shared branch. Open a block for equations, shapes and the pinned circuit JSON.

An expert is a learned feed-forward network. For one hidden row x, a SwiGLU expert computes E(x) = [SiLU(xWg) ⊙ (xWu)]Wd. The gate and up projections expand into the expert’s intermediate width of 512; the down projection returns to the hidden width. The router chooses eight expert IDs from 256 scores. Their outputs are combined with routing weights, and a separately gated shared expert contributes another term.

A conceptual combined output is y = Σ aⱼEⱼ(x) + g(x)Eshared(x). CKE must preserve the actual router normalization, parameter layout and rounding contract. The archived export packs gate/up projections together. Splitting the rows without altering their packed quantized bytes was one of the important importer changes.

Eight routed experts, packed integer dot products, scaling and native execution
Model-authored specification with editorial corrections to router mathematics, quantization metadata and profiling scope. The per-kernel samples are not a matched per-kernel comparison against llama.cpp.

Four residual paths and local token memory

Explore the four streams, learned read/write gates and PLE
Explore the four streams, learned read/write gates and PLE. Open a block for equations, shapes and the pinned circuit JSON.

With a conventional residual connection, I often draw x_next = x + f(x). A useful first sketch of the gated multi-stream version is u = Σ aᵢ(x)xᵢ, followed by xᵢ_next = xᵢ + bᵢ(x)f(u). The learned gates choose the working mixture and distribute the result. The actual layer uses normalization and a low-rank gate network with bottleneck width 256. The sketch explains the purpose; it is not a substitute for the circuit’s operation order.

The n-gram path looks up features associated with short sequences of token IDs, including bigrams and trigrams. The configuration has a base vocabulary size of ten million for this hashed lookup machinery, an embedding width of 2,048, and PLE at zero-based layer 2. Projection, gating and short convolution then integrate those features. This is learned local-pattern memory, rather than a lookup table of complete answers.

A sparse activated path can reduce arithmetic without making all the stored parameters disappear. When planning a machine for this release, count the archive, converted weights, caches and runtime workspace separately. We did not measure a minimum-RAM configuration.

What can we say about data and training?

The publisher identifies pretraining and post-training, and its linked technical report explains the Flash-Next design that Qwen4 builds on. I find that report useful because it shows how the architecture and its optimization were developed together. It is titled On the Design of Qwen3.8-Next Architecture: Evaluation, Efficiency, and Training Stability. Its larger-model experiments should retain that label.

For sparse attention, the report describes teaching the indexer from dense attention, then training the sparse path. A simplified distillation objective is L_index = Σ p(block) log[p(block) / q(block)]: p is a teacher distribution pooled over history blocks and q is the indexer’s predicted distribution. Minimizing this divergence encourages the cheap selector to prioritize blocks the expensive attention would use. A later stage lets the backbone and sparse mechanism adapt together.

The report uses 256K-token sequences in those continued-training experiments. Those are training settings from the architectural study, not a statement that our 35B checkpoint was trained on precisely that schedule. The sources reviewed here do not give a complete reproducible 35B corpus mixture, filtering pipeline and token budget. I would rather name that missing information than invent proportions for web text, code, synthetic data or multilingual content.

Muon is used for selected two-dimensional linear weight matrices in the study, with AdamW retained for other parameter types and sensitive cases such as the router. The optimizer changes weights during training. During this CKE run the weights stay fixed; reproducing inference does not reproduce the publisher’s training procedure. The same distinction applies to MTP and the released vision encoder: their existence in the model family is not proof that this experiment executed them.

Token preparation, hybrid computation and readout in the Qwen4 archive
Model-authored JSON specification, then editorially corrected and rendered. The recurrent, sparse and expert components are not all successive independent layers. Overlong labels and a misleading sequential grouping were corrected.

How CKE turns the circuit into a program

Inspect import, provider selection, memory planning and generated execution
Inspect import, provider selection, memory planning and generated execution. Open a block for equations, shapes and the pinned circuit JSON.
Existing machinery and archive-specific repairs in the Qwen4 bring-up
Editorial reference based on retained evidence. CKE reused execution machinery while changing weight bindings, cache contracts and chat behavior. The model-authored draft’s claim that no circuit changes were needed was rejected.

I think of the import step as reconciling two descriptions of the same computation. The GGUF contains tensors, quantization types, tokenizer metadata and packing choices. The circuit names the operations and their required inputs. The model map supplies the binding between them. Here that included packed row splits and joining the indexer’s Q and K projections in circuit order.

Lowering resolves those symbolic operations into concrete shapes, buffer offsets and provider calls. A provider has requirements: which dtypes it reads, which layout it expects and which native symbols must be linked. Then the generator emits C for prefill and decode. Prefill processes the prompt; decode produces each subsequent token using retained state. They are distinct generated paths.

Real header and footer from the pinned circuitjson
{
  "sequence": [
    "decoder"
  ],
  "decoder_sequence": [
    "header",
    "body",
    "footer"
  ],
  "header": [
    "bpe_tokenizer",
    "dense_embedding_lookup",
    "hyper_stream_expand"
  ],
  "footer": [
    "hyper_mix_final",
    "lm_head",
    "logits"
  ],
  "selected_sparse_providers": {
    "qsa_index_select": "qsa_index_select_bf16",
    "qsa_attention": "qsa_attention_bf16"
  }
}

The retained 8K generated file includes the BF16 cache store and sparse read around lines 4631–4662, and routed/shared expert calls around lines 3562–3584. These are compiler-generated calls, not C code invented by Qwen in response to a prompt. The native Qwen4 providers and lowering implementation are the source references.

Read the actual BF16 cache store and sparse attention callsGenerated C · first sparse layer, 8K bundlec
/* Op 89: kv_cache_store_bf16 (kv_cache_store) layer=3 section=body */
    kv_cache_store_bf16(
        (uint16_t*)((model->kv_cache_f16 + (1ULL*0ULL*MAX_SEQ_LEN))),
        (uint16_t*)((model->kv_cache_f16 + (1ULL*512ULL*MAX_SEQ_LEN))),
        (const float*)(model->bump + A_K_SCRATCH),
        (const float*)(model->bump + A_V_SCRATCH),
        0,
        model->pos,
        2,
        256,
        8192
    );
    if (stop_seq == 89) return;

    /* Op 90: attention_forward_sparse_token_major_gqa_bf16cache_pytorch_cpu_flash_contract (qsa_attention) layer=3 section=body */
    attention_forward_sparse_token_major_gqa_bf16cache_pytorch_cpu_flash_contract(
        (const float*)(model->bump + A_Q_SCRATCH),
        (const uint16_t*)((model->kv_cache_f16 + (1ULL*0ULL*MAX_SEQ_LEN))),
        (const uint16_t*)((model->kv_cache_f16 + (1ULL*512ULL*MAX_SEQ_LEN))),
        (const float*)(model->bump + A_QSA_SELECTED_INDICES),
        (float*)(model->bump + A_ATTN_SCRATCH),
        (float*)(model->bump + A_MLP_SCRATCH),
        1,
        16,
        2,
        256,
        2051,
        8192,
        model->pos
    );
    ck_debug_export_hidden(model, 3, "attn_pregate", (const float*)(model->bump + A_ATTN_SCRATCH), (16) * (1) * (256));

The two calls address the same cache buffers. The uint16_t pointers carry BF16 bit patterns; the field’s historical name kv_cache_f16 does not make them FP16 values. The main attention call specifies 16 query heads, two KV heads, head dimension 256 and an 8,192-position capacity. Its selected-position buffer has room for 2,048 selected tokens plus an incomplete four-token block. The native function name includes pytorch_cpu_flash_contract to identify an arithmetic contract; it is a C function, not a call into a Python model.

The cache bug that changed the whole answer

Sparse attention cache writer and reader must agree on BF16 storage
Editorial reconstruction of the demonstrated cache defect. It does not claim coverage of every batch size or sequence length, or agreement with an FP32 baseline; those unsupported claims appeared in a model-authored draft.

The first sparse layer is zero-based layer 3. Earlier lowering supplied a cache contract inconsistent with the BF16 cache reader selected for that layer. Attention became non-finite and the final logits collapsed to zeros. The repair binds both sides to BF16 and rejects incompatible lowering, rather than allowing the mismatch to travel into a runnable program.

A separate issue lived above the kernels. The archive needed its own reasoning prefix and end-of-turn behavior. Selecting that policy using the exact publisher-template hash, and removing an artificial eight-token minimum, let the city-name prompt return Paris followed by EOS 248046. Raw continuation had different behavior: it continued into the next sentence until its twelve-token budget. A correct matrix multiply cannot repair a wrong chat contract.

Run the pinned text path on your machine

Start with a Linux x86-64 machine and sufficient disk and RAM for the weights and generated workspace. The measured host is described below. This path requires the selected native MKL and SLEEF providers; an arbitrary tiny CPU or a machine with only enough RAM for “3B active parameters” is not an equivalent target.

These are source-build and Python-hosted CLI/server commands. The model arithmetic runs in generated C. The convenience development requirements include PyTorch for reference tooling; that does not make the native answer a PyTorch inference result. A separately packaged, minimal dependency, no-Python application is not demonstrated by this article.

1 · Fetch the exact source and archived GGUFbash
git clone https://github.com/C-Kernel-Engine/C-Kernel-Engine.git
cd C-Kernel-Engine
git checkout f815be009b43623cb972eaae280b6e15fe8ed2d0
python3 -m venv .venv
. .venv/bin/activate
# Full developer environment, including reference/parity tooling.
python -m pip install -r version/v8/requirements.txt
python -m pip install -r server/requirements.txt
hf download ggml-org/Qwen4-35B-A3B-GGUF-old \
  Qwen4-35B-A3B-Q4_K_M.gguf \
  --revision 139730111990ae9f6dee8c4660d15a3b7a127c95 \
  --local-dir ./checkpoints/qwen4-archive
export QWEN4_GGUF="$PWD/checkpoints/qwen4-archive/Qwen4-35B-A3B-Q4_K_M.gguf"
export QWEN4_RUN="$PWD/runtimes/qwen4-archive-8k"
printf '%s  %s\n' \
  064e8f1ca0dd253ca8e6ee0120824aec43c005163654e69f7f770bf640197dea \
  "$QWEN4_GGUF" | sha256sum --check

Do not substitute the newer sharded export, BF16 safetensors or the separate MTP GGUF and assume the evidence transfers. Check the archive identity first. The CKE bring-up runbook describes a small 128-token smoke build; the example below allocates 8,192 positions so it can also hold the SVG prompt and answer.

2 · Check provider paths and generate the native runtimebash
: "${CK_MKL_LIBRARY:?Set the MKL library exporting gemm_bf16bf16f32}"
: "${CK_SLEEF_LIBRARY:?Set the SLEEF library exporting Sleef_expf16_u10}"
export CK_MKL_LIBRARY CK_SLEEF_LIBRARY
export CK_NUM_THREADS=16 OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1
python version/v8/scripts/convert_gguf_to_bump_v8.py \
  --gguf "$QWEN4_GGUF" --plan-only
python version/v8/scripts/ck_run_v8.py run "$QWEN4_GGUF" \
  --run "$QWEN4_RUN" --context-len 8192 --prefill-chunk-len 32 \
  --logits-layout last --generate-only --resolve-serving

Set those paths to the actual shared libraries installed on your machine. This is an explicit prerequisite, not an installer hidden in the snippet. Sixteen worker threads reproduce the recorded host setting; choose a suitable count for your own physical cores. Avoid multiplying thread pools accidentally: the recorded configuration keeps the library pools at one thread.

3 · Ask a short question, or enter the local chatbash
python scripts/ck_chat.py --model-dir "$QWEN4_RUN" \
  --chat-template auto --thinking-mode suppressed \
  --prompt 'What is the capital of France? Reply with just the city name.' \
  --temperature 0 --max-tokens 16
# Omit --prompt for the interactive chat loop.
python scripts/ck_chat.py --model-dir "$QWEN4_RUN" \
  --chat-template auto --thinking-mode suppressed \
  --temperature 0 --max-tokens 1536

For the SVG experiment, save the exact compact prompt above as prompt-compact.txt. Use greedy decoding and disable repetition penalty so the comparison settings remain clear:

4 · Generate the SVG answerbash
python scripts/ck_chat.py --model-dir "$QWEN4_RUN" \
  --chat-template auto --thinking-mode suppressed \
  --temperature 0 --repeat-penalty 1 --max-tokens 1536 \
  --prompt "$(cat prompt-compact.txt)"

The output cap is a stop limit, not a guarantee of a complete document. Our earlier, more elaborate brief used all 1,536 output tokens before closing the SVG. We retained that failure. Reducing the brief made completion possible; silently adding a closing tag would have hidden the failure.

5 · Serve the generated bundle and verify its identitybash
version/v8/scripts/cks-v8-run serve "$QWEN4_RUN" \
  --no-build --host 127.0.0.1 --port 18448 \
  --model-name qwen4-35b-archive-q4km --temperature 0 \
  --request-output-cap 1536
# In another terminal:
curl --fail http://127.0.0.1:18448/v1/models
curl --fail http://127.0.0.1:18448/v1/cke/loaded-identity
curl --fail http://127.0.0.1:18448/v1/chat/completions \
  -H 'Content-Type: application/json' \
  --data-binary '{"model":"qwen4-35b-archive-q4km","temperature":0,
    "max_tokens":16,"messages":[{"role":"user",
    "content":"What is the capital of France? Reply with just the city name."}]}'

The recorded Qwen Code session used a separately generated 65,536-capacity bundle, port 18448 and the model name above. Its loaded-identity record includes the circuit, tokenizer, library and template hashes. We checked identity before and after the request; that is stronger than trusting the model name in an HTTP response.

Use Qwen Code as a client

Qwen Code 0.25.1 sent a streaming request to /v1/responses. The host applied the publisher Jinja template, tokenized it through the native BPE path and called generated prefill/decode. Streaming delivered the answer as server-sent events. This specific check deliberately disabled tools and MCP; it proves a single text turn through the real client.

Qwen Code request, publisher template, native tokenizer, generated C and response stream
Qwen4-generated figure with editorially clarified stream and EOS connections. The stop decision controls generation; the HTTP stream carries the response.
Qwen Code · isolated local text-only sessionbash
# Install/select Qwen Code 0.25.1 before this step.
# Match this value to the generated bundle (8192 in the quickstart above).
# The recorded Qwen Code run used 65536 instead.
cat > qwen-code.settings.json <<'JSON'
{"$version":4,"model":{"generationConfig":{"contextWindowSize":8192,
 "samplingParams":{"temperature":0,"max_tokens":1536}}},
 "privacy":{"usageStatisticsEnabled":false}}
JSON
QWEN_SETTINGS_FILE="$PWD/qwen-code.settings.json"
# Use a disposable HOME so this test does not alter your normal client profile.
QWEN_EVAL_HOME="$(mktemp -d)"
HOME="$QWEN_EVAL_HOME" QWEN_HOME="$QWEN_EVAL_HOME/.qwen" \
NO_PROXY=127.0.0.1,localhost OPENAI_API_KEY=cke-local-only \
OPENAI_BASE_URL=http://127.0.0.1:18448/v1 \
OPENAI_MODEL=qwen4-35b-archive-q4km QWEN_CODE_MAX_OUTPUT_TOKENS=1536 \
QWEN_CODE_SYSTEM_SETTINGS_PATH="$QWEN_SETTINGS_FILE" \
qwen --bare --auth-type openai-responses \
  --model qwen4-35b-archive-q4km \
  --exclude-tools edit,get_goal,notebook_edit,read_file,run_shell_command,update_goal \
  --max-tool-calls 0 --max-wall-time 20m --output-format stream-json \
  --system-prompt 'Return the requested SVG in the reply. Do not use tools.' \
  --prompt "$(cat prompt-compact.txt)"
Actual original SVG returned through Qwen Code and the CKE HTTP runtime
Original Qwen Code response: 468 rendered prompt tokens, 1,003 output tokens, about 84 seconds of prompt processing and 227 seconds of decode. Its client/system framing differs from the direct CLI prompt, so it is a separate functional test.
Qwen Code client request, native generated execution, response streaming and separate evidence checks
Editorial serving flow, checked against the client and server logs. One request used 468 input tokens and reported 1,003 output tokens, then stopped on EOS. The SVG immediately above remains the untouched response; neither figure establishes a tool-using repair loop.

What did Qwen4 generate, and what did the renderer do?

The richer figure experiment began by asking for literal SVG. That attempt consumed 561 prompt tokens, reached its 3,600-token output cap and left the XML incomplete. It had not reached the decoder artwork, so adding a closing tag would not have completed the requested explanation.

The next workflow asked Qwen4 for a bounded JSON specification: titles, metrics, lanes, cards and flow classifications. A deterministic renderer laid those elements out as SVG. Validation could return an error to the model once; an editorial pass checked the engineering meaning separately. The larger figures below are products of that process, not seven untouched SVG answers.

Reviewed figure specification · actual excerptjson
{
  "theme": "paper",
  "title": "One HTTP request, one valid SVG",
  "metrics": [
    {
      "value": "1 request",
      "label": "Qwen Code 0.25.1, no tools or MCP"
    },
    {
      "value": "468 tokens",
      "label": "Actual input, not the 64K configured window"
    },
    {
      "value": "1,003 tokens",
      "label": "Output in the server run"
    },
    {
      "value": "4.4 tok/s",
      "label": "Server-reported decode in this run"
    }
  ],
  "lanes": [
    {
      "title": "Request path",
      "flow": "sequence",
      "cards": [
        {
          "title": "Qwen Code client",
          "role": "state",
          "detail": "A disposable client profile sends a streaming POST to the local /v1/responses endpoint. No tool calls are available in this test."
        },
        {
          "title": "CKE Responses server",
          "role": "compute",
          "detail": "The server routes the request to the pinned generated bundle. Loaded bundle and native session identities were checked around the request."
        },
        {
          "title": "Template and tokenizer",
          "role": "compute",
          "detail": "The packaged Jinja template formats messages. Native C BPE turns the resulting prompt into the model's token IDs."
        }
      ]
    }
  ]
}

Here flow: "sequence" tells the renderer to show an ordered path. A parallel group needs a different visual relationship. A valid JSON file can still put those arrows in the wrong places, just as valid SVG can contain an incorrect equation. That is why the review checks both layout and meaning.

Published plateProvenance and review
40-layer scheduleLayer strip extracted from generated C; explanatory panels editorial.
Token pathModel-authored specification; grouping, subtitle, notes and label widths corrected.
Bring-upEditorial reference. The model draft overstated how much transferred unchanged.
BF16 cache defectEditorial reconstruction. Unsupported general parity/coverage claims removed.
MoE and SIMDModel specification corrected against generated C and quantization block definitions.
Live servingEditorial interpretation of retained logs; numerical replay and client serving kept separate.
Memory snapshotEditorial plot of a recorded runtime plan and one Linux process-memory sample.

The longer prompt: 6,361 actual tokens

The later serving/evidence brief ran on a 131,072-capacity generated bundle. It supplied 6,361 actual input tokens and produced a complete 1,519-token JSON specification, ending on EOS 248046. This is stronger execution evidence than merely compiling a large window, but it still leaves most of that window unused.

The recorded prefill took 2,311.9 seconds and decode took 947.9 seconds. Variable memory pressure and disk traffic on the shared host make this diagnostic run unsuitable for a clean throughput comparison. The original specification exceeded the strict footer limit and described 64 vocabulary rows as being captured per step. The corrected plate says what was actually retained: one row at each of 64 steps.

The first architecture retry reached EOS with complete JSON, but its subtitle remained too long and its layer grouping was misleading. The later adaptive renderer wrapped text without changing its words; that solved layout constraints, while the editorial review still had to correct unsupported claims.

Expand the five original technical drawings, prompts and editorial changes

For these experiments I asked Qwen4 to explain one mechanism per SVG. Every prompt used the same compact 960 × 420 drawing constraints and a topic-specific brief. The model generated source that we could render directly. I then reviewed the diagrams as engineering illustrations.

Below are the editorial copies used in this article. Each disclosure names the change and links the original. Correcting a diagram for teaching is reasonable; treating the correction as model success would be misleading. Expand any prompt to reproduce the request.

1. From packed checkpoint to generated C

From packed checkpoint to generated C
The original claimed prefill and decode share one generated kernel. The editorial caption instead identifies their distinct generated paths. Inspect the original output.
Exact prompt and artifact factsFull technical-figure prompttext
Write one complete compact SVG, under 1700 characters, ending </svg>. Use this minimal structure: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 420'><rect width='960' height='420' fill='#141822'/><g fill='white' font-family='sans-serif' font-size='23'> ... </g></svg>. Draw the actual topology with up to three short <path> connectors, a title, and at most ten <text> labels. Put arrows in path geometry or use the arrow glyph. Inherit text styling; use only compact path, rect, and text elements. No separate markers, defs, icons, comments, borders on every label, external assets, or markdown fences. Use cyan and amber to distinguish roles. Keep labels horizontally within the canvas. Title: From packed checkpoint to generated C. Draw left-to-right: GGUF packed weights -> Circuit + kernel maps -> Lowering + memory plan -> Generated C runtime. Annotation: weight layout and dtype are resolved before code generation. Show distinct prefill and decode under the runtime.

Original SVG: 2,496 characters. Capture capacity: 8,192. The original and editorial files are preserved separately; SVG parsing does not verify the engineering claims.

2. Qwen4 sparse attention

Qwen4 sparse attention
The connectors were clarified so the selected positions control the read while the main query also reaches attention directly. The diagram remains a conceptual view, not executable pseudocode. Inspect the original output.
Exact prompt and artifact factsFull technical-figure prompttext
Write one complete compact SVG, under 1700 characters, ending </svg>. Use this minimal structure: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 420'><rect width='960' height='420' fill='#141822'/><g fill='white' font-family='sans-serif' font-size='23'> ... </g></svg>. Draw the actual topology with up to three short <path> connectors, a title, and at most ten <text> labels. Put arrows in path geometry or use the arrow glyph. Inherit text styling; use only compact path, rect, and text elements. No separate markers, defs, icons, comments, borders on every label, external assets, or markdown fences. Use cyan and amber to distinguish roles. Keep labels horizontally within the canvas. Title: Qwen4 sparse attention. Draw inputs Q, K, V; Q and the indexer select eligible positions; K/V stay in BF16 cache; selected keys/values enter attention. Use a visually distinct cache lane. Add the note: this archive has 30 DeltaNet and 10 sparse layers. This is a conceptual illustration, not exact pseudocode.

Original SVG: 1,640 characters. Capture capacity: 8,192. The original and editorial files are preserved separately; SVG parsing does not verify the engineering claims.

3. One token, eight routed experts

One token, eight routed experts
The unsupported CSS color name amber was replaced by a valid hexadecimal color. The routing topology was retained. Inspect the original output.
Exact prompt and artifact factsFull technical-figure prompttext
Write one complete compact SVG, under 1700 characters, ending </svg>. Use this minimal structure: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 420'><rect width='960' height='420' fill='#141822'/><g fill='white' font-family='sans-serif' font-size='23'> ... </g></svg>. Draw the actual topology with up to three short <path> connectors, a title, and at most ten <text> labels. Put arrows in path geometry or use the arrow glyph. Inherit text styling; use only compact path, rect, and text elements. No separate markers, defs, icons, comments, borders on every label, external assets, or markdown fences. Use cyan and amber to distinguish roles. Keep labels horizontally within the canvas. Title: One token, eight routed experts. Show a hidden vector entering a router, an expert bank labeled 256, eight selected as 8/256, and weighted sum to output. Show the shared expert as a separate branch from the hidden vector into the same merge. Never call it 8 GPUs or 8 cores.

Original SVG: 2,628 characters. Capture capacity: 8,192. The original and editorial files are preserved separately; SVG parsing does not verify the engineering claims.

4. Inside a quantized decoder dot product

Inside a quantized decoder dot product
The connectors now put integer dots and scales before the scaled result and FP32 sum. Real Q6_K blocks have sub-block scaling and correction details omitted by this sketch. Inspect the original output.
Exact prompt and artifact factsFull technical-figure prompttext
Write one complete compact SVG, under 1700 characters, ending </svg>. Use this minimal structure: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 420'><rect width='960' height='420' fill='#141822'/><g fill='white' font-family='sans-serif' font-size='23'> ... </g></svg>. Draw the actual topology with up to three short <path> connectors, a title, and at most ten <text> labels. Put arrows in path geometry or use the arrow glyph. Inherit text styling; use only compact path, rect, and text elements. No separate markers, defs, icons, comments, borders on every label, external assets, or markdown fences. Use cyan and amber to distinguish roles. Keep labels horizontally within the canvas. Title: Inside a quantized decoder dot product. Show Q6_K packed weights and Q8_K activation blocks feeding integer dot products, then scales and an FP32 sum. Equation schematic: y[row] = sum of scaled block dots. Footnote: SIMD width and reduction order are separate choices; this archive used the AVX2-compatible Q6 path.

Original SVG: 2,138 characters. Capture capacity: 8,192. The original and editorial files are preserved separately; SVG parsing does not verify the engineering claims.

5. Qwen Code to CKE and back

Qwen Code to CKE and back
The response-stream connection and generation-ending EOS decision were separated. This figure describes the single no-tools HTTP test. Inspect the original output.
Exact prompt and artifact factsFull technical-figure prompttext
Write one complete compact SVG, under 1700 characters, ending </svg>. Use this minimal structure: <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 420'><rect width='960' height='420' fill='#141822'/><g fill='white' font-family='sans-serif' font-size='23'> ... </g></svg>. Draw the actual topology with up to three short <path> connectors, a title, and at most ten <text> labels. Put arrows in path geometry or use the arrow glyph. Inherit text styling; use only compact path, rect, and text elements. No separate markers, defs, icons, comments, borders on every label, external assets, or markdown fences. Use cyan and amber to distinguish roles. Keep labels horizontally within the canvas. Title: Qwen Code to CKE and back. Draw two swimlanes: Qwen Code client sends POST /v1/responses to CKE; on the server use publisher Jinja -> native BPE -> generated C prefill/decode. Return an SSE stream and EOS to the client. Footer: tested archive, single text turn, no tools.

Original SVG: 1,825 characters. Capture capacity: 8,192. The original and editorial files are preserved separately; SVG parsing does not verify the engineering claims.

What did the comparison with llama.cpp show?

The matched lane used the same archived weights, 276 saved input token IDs, greedy decoding, sequential prefill, an 8,192-token capacity and a 1,536-token output cap. Both ran sequentially on the same selected 16 physical cores. This removes several easy confounders, but not every numerical difference.

RuntimePrompt processingOutput tokensDecode throughputFinish
CKE direct CLI52.22 s1,0774.48 tokens/sEOS 248046
llama.cpp, pinned a274a394856.42 s8957.78 tokens/sEOG 248046

llama.cpp was about 1.74 times faster per decoded token in this run. Load time is excluded. Different output lengths also affect total task time, and we did not measure repeated cold/warm distributions. These timings describe this input, checkpoint, runtime revisions and machine; they cannot predict an arbitrary CPU’s performance.

Original llama.cpp SVG under the matched prompt and generation settings
The matched llama.cpp output also parses at 1200 × 760 and includes the supplied stage facts. Its layout and wording differ from the CKE answer. Compare it with the original CKE SVG near the start.

A separate logit capture checked the first 64 decoding steps. All 64 selected greedy IDs matched. The full-vocabulary rows did not: step zero had RMSE 1.07046, maximum absolute difference 5.50802 and cosine similarity 0.92256. At step 63, RMSE was 0.21644 and maximum absolute difference 1.08761. No artifact-wide numerical acceptance bound was declared.

This is easy to misunderstand. Two score vectors can have the same largest entry while disagreeing substantially elsewhere. Matching the selected token proves that particular decision agrees. It does not prove every logit or intermediate tensor agrees. The saved SVG strings first differ at byte 389, but that is a text-file offset, not evidence that token 64 was the first divergence.

llama.cpp’s log reports FP16 key/value storage with flash attention disabled; CKE uses the declared BF16 sparse-cache contract. That is a real difference to investigate. It does not establish that cache precision alone caused the observed logit error. The right next experiment is to align storage and reduction contracts and then locate the first differing tensor.

Why a wider SIMD instruction is not automatically the answer

The CPU supports modern vector instructions, but the hot path is determined by the selected providers. Short profiling samples put roughly 28–31% of CKE samples in the AVX2-compatible Q6_K × Q8_K work, with two 256-bit Q4_K VNNI paths together around 32–34%; BF16 hyper-connection work also appears. These are sample shares from separate runs, not a matched wall-time breakdown of the speed gap.

A wider experimental dot product changed reduction order and produced different bits. That is a reminder to test both numerical behavior and speed before changing dispatch. Fewer instructions would not by itself prove the same answer or a faster whole application.

What was in memory during the longer run?

Planned runtime storage compared with anonymous and file-backed proportional memory at one instant
Editorial figure from the retained Ryzen snapshot during the 6,361-token request. Planned storage and Linux proportional set size measure different things. This is not peak memory or a controlled before-and-after experiment.

The runtime recorded a 39,586 MiB plan, including 34,337 MiB of file-backed weights. At the sampled instant, Linux attributed about 5.8 GiB of anonymous proportional set size and 16.2 GiB of file-backed proportional set size to the process, with no process swap reported.

A file mapping lets the runtime address weights without creating another anonymous copy of that weight allocation. Pages become resident as they are accessed, and proportional set size apportions shared pages. It therefore differs from both planned capacity and total physical memory demand. The snapshot does not establish peak use, a minimum-RAM configuration, or a measured reduction against an otherwise identical second run. Other jobs and system swap remained in place.

Give the same factual SVG brief to other models

I also wanted a modest comparison: if we supply the same four stages and facts, can different models turn them into a small diagram? This tests rendering a supplied brief. It does not test their independent knowledge of Qwen4 or establish a general model ranking.

The common request asks for four panels at 1200 × 760, within 2,300 characters. Runs use greedy generation, repetition penalty 1 and a 1,536-token output cap, with the appropriate model template. Different tokenizers need not produce the same input IDs. The pilot spans different bundles and two hosts: the Ryzen workstation with 16 physical cores selected and P3 with eight threads. We therefore compare these outputs without constructing a cross-host speed leaderboard.

Model in this pilotCompletion / output lengthUntouched output under the local preview policyWhat the brief check found
Archived Qwen4-35B-A3BEOS · 1,077 tokens · 2,473 charactersValid XML; passes safe preview policyFour panels and supplied facts; exceeds the 2,300-character cap.
Dense Qwen3.8-27BEOS · 825 tokens · 1,804 charactersXML parses; style block rejected by the policyFour panels and supplied facts; preview requires CSS inlining.
Qwen3.8-Flash-NextStopped by host memory guard · 1,361 partial charactersIncomplete; unrankedStarted native generation and reached the third panel; no complete result or EOS.
Gemma 4 E4BEOS · 947 tokens · 2,319 charactersXML parses; style block rejected by the policySupplied facts preserved; CSS inlining and an unsupported paint value corrected for preview; exceeds character cap.
Nemotron Nano 9B v2EOS · 548 tokens · 1,220 charactersXML fails: mismatched closing tagSeveral required facts missing; geometry concerns as well. No repaired render presented.

Qwen4 was the only completed untouched output that passed this particular safe-render policy. Dense Qwen3.8 was more compact while retaining the supplied facts. Neither observation establishes a universal winner; no model satisfied every original requirement without qualification.

The images retain “one-hour” wording supplied by the original brief. It is narrative framing, not a measured bring-up duration. They also retain the brief’s earlier two-token check; the later 64-step numerical capture is explained separately above.

Dense Qwen3.8-27B

Dense Qwen3.8-27B editorial preview of the same supplied-facts SVG brief
Editorial preview: styles inlined, no text changes. The 15-label layout audit passed. The scored run used the verified already-loaded CKE HTTP server; a separate CLI duplicate stopped during prefill and is not substituted for this result.
Inspect the untouched response before preview preparationDense Qwen3.8-27B · original model outputtext
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="760" viewBox="0 0 1200 760"><style>text{font-family:Arial,Helvetica,sans-serif;fill:#e8eef2}.t{font-size:34px;font-weight:700}.s{font-size:16px;fill:#9fb3bd}.b{font-size:15px;font-weight:700}.l{font-size:14px;fill:#c3d0d8}.f{font-size:12px;fill:#7d8f99}</style><rect width="1200" height="760" fill="#0d1418"/><g><text x="40" y="52" class="t">Qwen4 in CKE</text><text x="40" y="80" class="s">Anatomy of a one-hour bring-up (approximate)</text><rect x="40" y="104" width="550" height="280" rx="10" fill="#122029" stroke="#22d3ee" stroke-width="2"/><text x="64" y="146" class="b" fill="#22d3ee">1  IMPORT</text><text x="64" y="180" class="l">36 GB Q4_K_M; 882 tensors;</text><text x="64" y="204" class="l">packed splits.</text><rect x="610" y="104" width="550" height="280" rx="10" fill="#122029" stroke="#f59e0b" stroke-width="2"/><text x="634" y="146" class="b" fill="#f59e0b">2  LOWER</text><text x="634" y="180" class="l">30 DeltaNet + 10 sparse layers;</text><text x="634" y="204" class="l">fix BF16 KV.</text><rect x="40" y="404" width="550" height="280" rx="10" fill="#122029" stroke="#22d3ee" stroke-width="2"/><text x="64" y="446" class="b" fill="#22d3ee">3  GENERATE</text><text x="64" y="480" class="l">native C prefill and decode;</text><text x="64" y="504" class="l">8 of 256 experts.</text><rect x="610" y="404" width="550" height="280" rx="10" fill="#122029" stroke="#f59e0b" stroke-width="2"/><text x="634" y="446" class="b" fill="#f59e0b">4  VERIFY</text><text x="634" y="480" class="l">Paris and EOS 248046;</text><text x="634" y="504" class="l">llama.cpp 2/2 greedy tokens.</text><text x="40" y="724" class="f">Pinned archive only. Logits not bit-exact; long context and serving were not certified at bring-up.</text></g></svg>

Gemma 4 E4B

Gemma 4 E4B editorial preview of the same supplied-facts SVG brief
Editorial preview: CSS inlined and unsupported amber paint replaced, with no text changes. The 15-label audit passed. This is a general Gemma baseline, not the medically post-trained MedGemma experiment.
Inspect the untouched response before preview preparationGemma 4 E4B · original model outputtext
<svg width="1200" height="760" xmlns="http://www.w3.org/2000/svg">
<style>
.title { font-family: sans-serif; font-size: 32px; font-weight: bold; fill: cyan; }
.subtitle { font-family: sans-serif; font-size: 18px; fill: amber; }
.board-text { font-family: sans-serif; font-size: 16px; fill: white; }
.footer-text { font-family: sans-serif; font-size: 12px; fill: cyan; }
</style>
<rect width="1200" height="760" fill="#111"/>
<text x="600" y="60" text-anchor="middle" class="title">Qwen4 in CKE</text>
<text x="600" y="90" text-anchor="middle" class="subtitle">Anatomy of a one-hour bring-up (approximate).</text>
<g transform="translate(50, 140)">
<rect x="0" y="0" width="550" height="280" fill="#222" stroke="cyan" stroke-width="2"/>
<text x="275" y="50" text-anchor="middle" class="board-text" fill="cyan">1 IMPORT</text>
<text x="275" y="85" text-anchor="middle" class="board-text">36 GB Q4_K_M; 882 tensors;</text>
<text x="275" y="115" text-anchor="middle" class="board-text">packed splits.</text>
<rect x="600" y="0" width="550" height="280" fill="#222" stroke="amber" stroke-width="2"/>
<text x="875" y="50" text-anchor="middle" class="board-text" fill="amber">2 LOWER</text>
<text x="875" y="85" text-anchor="middle" class="board-text">30 DeltaNet + 10 sparse layers;</text>
<text x="875" y="115" text-anchor="middle" class="board-text">fix BF16 KV.</text>
</g>
<g transform="translate(50, 430)">
<rect x="0" y="0" width="550" height="280" fill="#222" stroke="cyan" stroke-width="2"/>
<text x="275" y="50" text-anchor="middle" class="board-text" fill="cyan">3 GENERATE</text>
<text x="275" y="85" text-anchor="middle" class="board-text">native C prefill and decode;</text>
<text x="275" y="115" text-anchor="middle" class="board-text">8 of 256 experts.</text>
<rect x="600" y="0" width="550" height="280" fill="#222" stroke="amber" stroke-width="2"/>
<text x="875" y="50" text-anchor="middle" class="board-text" fill="amber">4 VERIFY</text>
<text x="875" y="85" text-anchor="middle" class="board-text">Paris and EOS 248046;</text>
<text x="875" y="115" text-anchor="middle" class="board-text">llama.cpp 2/2 greedy tokens.</text>
</g>
<text x="600" y="730" text-anchor="middle" class="footer-text">Pinned archive only. Logits not bit-exact; long context and serving were not certified at bring-up.</text>
</svg>

Keep the incomplete and invalid results visible

The Flash-Next runtime mapped 113,628 MiB of packed weights and began processing the 265-token prompt. Its guard stopped only that new job after three consecutive low-headroom samples; the final sample showed 166,220 KiB available. This is a host-capacity interruption, not a completed quality test or a model-level failure. The existing endpoints stayed available. A quieter host or a separately verified smaller-context build is needed before scoring it.

The Nemotron sample reached EOS but had a mismatched closing tag. It also omitted required facts and combined some translations with absolute panel coordinates. We retain the response rather than silently repairing it and counting the repair as success.

Flash-Next · partial output at the guard stopFlash-Next · partial output at the guard stoptext
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="760" viewBox="0 0 1200 760"><style>text{font-family:system-ui,sans-serif;fill:#e6edf3}.t{font-size:44px;font-weight:700}.s{font-size:19px;fill:#8b98a5}.n{font-size:30px;font-weight:700}.h{font-size:24px;font-weight:700}.b{font-size:17px;fill:#c3ccd6}.f{font-size:13px;fill:#7d8896}</style><rect width="1200" height="760" fill="#0b0f14"/><text class="t" x="60" y="80">Qwen4 in CKE</text><text class="s" x="60" y="112">Anatomy of a one-hour bring-up (approximate)</text><g><rect x="60" y="150" width="520" height="230" rx="14" fill="#111820" stroke="#22d3ee" stroke-width="2"/><text class="n" x="90" y="205" fill="#22d3ee">1</text><text class="h" x="130" y="205">IMPORT</text><text class="b" x="90" y="255">36 GB Q4_K_M; 882 tensors;</text><text class="b" x="90" y="285">packed splits.</text></g><g><rect x="620" y="150" width="520" height="230" rx="14" fill="#111820" stroke="#f59e0b" stroke-width="2"/><text class="n" x="650" y="205" fill="#f59e0b">2</text><text class="h" x="690" y="205">LOWER</text><text class="b" x="650" y="255">30 DeltaNet + 10 sparse layers;</text><text class="b" x="650" y="285">fix BF16 KV.</text></g><g><rect x="60" y="410" width="520" height="230" rx="14" fill="#111820" stroke="#f59e0b" stroke-width="2"/><text class="n" x="90" y="465" fill="#f59e0b">3</text><text class="
Nemotron · original invalid XMLNemotron · original invalid XMLtext
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="760"><g fill="#000" font-family="Arial" font-size="14"><rect width="1200" height="760" fill="#111"/><g y="50"><text x="50" y="50" font-weight="bold" fill="#fff">Qwen4 in CKE</text><text x="50" y="70" fill="#ccc">Anatomy of a one-hour bring-up (approximate)</text></g><g y="150"><g transform="translate(200,150)"><rect width="500" height="100" fill="#44aaff"/><text x="250" y="170" fill="#fff">1</text><text x="250" y="190" fill="#fff">36 GB Q4_K_M; 882 tensors</text></g><g transform="translate(700,150)"><rect width="500" height="100" fill="#ffcc33"/><text x="750" y="170" fill="#fff">2</text><text x="750" y="190" fill="#fff">30 DeltaNet + 10 sparse</text></g></g><g y="350"><g transform="translate(200,350)"><rect width="500" height="100" fill="#44aaff"/><text x="250" y="370" fill="#fff">3</text><text x="250" y="390" fill="#fff">native C prefill/decode</text></g><g transform="translate(700,350)"><rect width="500" height="100" fill="#ffcc33"/><text x="750" y="370" fill="#fff">4</text><text x="750" y="390" fill="#fff">Paris/EOS 248046</text></g></g><g y="650"><text x="50" y="670" fill="#ccc">Pinned archive only. Logits not bit-exact</text></g></svg>

The useful next comparison is a neutral second brief, followed by repeated runs on comparable hardware. For this pilot I would take away a practical distinction: content preservation, XML completion, preview compatibility and layout quality can succeed or fail independently.

What can I expect today?

CapabilityEvidence for this CKE archiveBoundary
Native text and short chatGenerated prefill/decode, city-name reply and correct EOS.Specific pinned export and chat template.
SVG/code-like textDirect infographic plus five technical figure prompts completed; originals retained.Engineering meaning and instruction limits still require review.
Qwen Code HTTP clientOne no-tools streaming /v1/responses request with verified loaded identity.No multi-turn coding session or tool-use certification from this run.
8K / 32K / 64K capacitySame 276-token prompt, byte-identical direct SVGs; decode 4.48 / 4.50 / 4.50 tokens/s.Configured window tests, not actual long-input retrieval tests.
Longer factual prompt6,361 actual input tokens on a 131,072-capacity native bundle; 1,519 output tokens and EOS.Structured JSON with editorial corrections; not a full-window retrieval test.
Numerical agreementFirst 64 greedy IDs match llama.cpp.Logits differ; no blanket parity claim.
Image input, MTP, million-token contextPublisher-side architecture/configuration describes these components or capacities.Not exercised by this native text experiment.
Training, fine-tuning, arbitrary exportsNot tested in this handoff.Do not infer these from inference bring-up.

What the experiment preserves

ArtifactWhat it lets us check
Three direct SVG outputs + prompts and logs8K, 32K and 64K capacity runs; identical XML; token counts and stopping reason.
Five original SVGs + five editorial copiesPrompt following separately from human corrections; hashes distinguish both versions.
Qwen Code event stream + identitiesReal client/server turn and which bundle actually executed.
llama.cpp source, saved prompt IDs, SVG and logit metricsMatched input, runtime revision, throughput and 64-row comparison.
Actual generated 8K C sourceConcrete cache writes, sparse reads and expert calls after lowering.
Seven reviewed advanced platesSource-derived schedule, editorial references and model-specification renders with individual provenance.
Cross-model SVG pilotRaw responses, validator reports, preview edits and the host-guard interruption; no cross-host ranking.
Over-budget rich prompt outputA recorded failure to close the SVG before the generation cap.

Some evidence contains machine-local paths and runtime logs, so the original handoff is retained separately from the publication assets. The article exposes the diagrams, exact prompts, source references and numerical results needed to follow the argument. It does not upload credentials, client profile state or large raw logit dumps as blog images.

What fast bring-up tells me about the runtime

The encouraging part is reuse. CKE already knew about the hybrid circuit, expert networks, normalization, rotary operations and much of the lowering machinery. This release exposed particular seams: how the archive packed weights, how sparse cache storage was selected, and how the publisher expected a chat turn to start and finish.

That gives me a more useful definition of progress than “every new model works automatically.” A new checkpoint can reuse most operations and still need a new mapping, a dtype contract or a serving rule. The runtime becomes more useful as those contracts become explicit and testable. A release-day bring-up is a good story about that accumulation. Without a start/stop record for the whole process, “one hour” remains framing rather than an engineering throughput measurement.

Implementation evidence

The PR behind this bring-up

1 merged PR

This entry covers the release-specific work. Earlier shared kernels and the Flash-Next circuit are prerequisites; they are not all attributed to this one PR.

Import, lowering, native providers and chat completion
  1. PR #1478
    Lower the released Qwen4 packed text decoder

    Packed projection mappings; gated Q4_K shared experts; BF16 PLE; sparse provider dependencies; BF16 cache checks; archive-specific chat prefix and EOS behavior.

    f815be009 tested head

The local implementation evidence reports 150 compiler tests with 2,257 subtests, 129 chat/circuit tests with 19 subtests, and 15 native plus four serving tests. These unit and contract checks are distinct from the SVG and numerical comparisons above. The PR’s initial bring-up notes predate the later bounded Qwen Code experiment supplied with this article.

If you want to follow the same ideas through other models, these are the articles I would read next:

Model and implementation references

I want these articles to make the model easier to reason about and the runtime easier to challenge. Here we can inspect the generated drawing, trace the circuit that produced it, and point to the remaining numerical and packaging questions. That is a useful place to continue the next experiment.

Lab hardware used in this article
P3 · Lenovo ThinkStation P3 Tiny
Intel Core i7-14700T · 8 performance and 12 efficiency cores, 28 threads · 33 MiB L3 · AVX2 and AVX-VNNI. 64 GB DDR5 (61.4 GiB visible to Linux), 512 GB and 2 TB NVMe. Ubuntu 26.04 LTS. Lab inventory, 3 December 2026. Each article gives its own run settings.
Ryzen · AMD Ryzen 9 9950X3D workstation
Zen 5 · 16 cores, 32 threads · 128 MiB L3 · AVX-512 with BF16 and VNNI. Linux reports 150.7 GiB usable RAM. 4 TB NVMe and 12 TB HDD on an ASUS TUF X870E-PLUS WIFI7 board. Ubuntu 26.04 LTS. Lab inventory, 3 December 2026. Earlier runs used different memory configurations.
Read about the CKE hardware lab