Bonsai 2 9B + QwenPU on stock Prism
Bonsai 2 9B ran real code on a processor built into its model file with just 8 GB of GPU memory. The original full QwenPU model needed a 40 GB GPU.
The 40 GB figure is for loading the original model and processor together. The original processor-only demo fit on a 24 GB GPU. Original QwenPU hardware requirements
Read Preprint v1 and the pinned reproduction artifacts.
This research checkpoint runs QwenPU's RV32 and vector circuit in the MTP block of packed Bonsai 2 9B. It preserves all 427 original PQ2_0 language tensor extents and the original Hadamard signs, with neutral padding where the shared shape requires it. The circuit uses 4,052 of 4,096 residual lanes and 19,952 of 20,480 FFN rows. Created using Bonsai by Prism ML.
Runtime validation is specific to Prism b12128. Porting the checkpoint requires PQ2_0 support and the MTP feedback and cache APIs.
Checkpoint metadata
| Field | Value |
|---|---|
| Language host | Bonsai 2 9B (PQ2_0) |
| Base GGUF tensor elements | 8,953,803,264 |
| GGUF architecture | qwen35 |
| Hidden width | 4,096 |
| FFN rows per block | 20,480 |
| Block layout | 32 language blocks + 1 QwenPU MTP block |
| Declared context length | 262,144 tokens in the GGUF header |
| Combined GGUF tensor elements | 13,538,207,234 across 445 tensors |
The Hub counts elements across all GGUF tensors, including zero padding and the compiled circuit. The base count describes the language host. Pinned base GGUF
Verified on Windows
Full three-token stories260K validation passed. The original guest printed Once upon a followed by a newline and halted cleanly on an 8 GiB GTX 1080 with unmodified Windows Prism b12128. All 37,080 architectural retirements and 726 VMAT operations matched the independent reference. Bonsai's parked text position, KV cache, recurrent state, and logits matched the original packed 9B. The result handoff and next decode also matched at the same text history. Full-run verification and measurements
| Metric | Full three-token run |
|---|---|
| Capture wall time | 10h 10m 31s |
| Guest model decodes | 6,365,239 |
| Guest decode speed | 174.0 model decodes/s |
| Peak process-dedicated VRAM | 4.94 GiB |
| Peak process-shared GPU memory | 86 MiB |
| Peak device-wide VRAM | 6.27 GiB |
| Peak process RAM working set | 4.64 GiB |
Capture time includes guest setup and execution. Decode speed uses the guest loop after seeding. Device-wide VRAM includes other GPU activity.
The 9B normalized trace and final vector state hashes match the other three complete Windows b12128 runs. Four-host measurements and verification
Bounded capture and fixture checks
The bounded run passed on a GTX 1080 with unmodified Windows Prism b12128. It matched all 2,578 architectural retirements against the CPU reference, including the first matrix multiply at retirement 1,677 and eight VMATs in total. The parked text position, KV cache, recurrent state, and logits matched the original packed 9B. Separate fixtures passed seven matched-history handoffs, and an active coefficient mutation changed the first fetch until the coefficient was restored. Story evidence · Fixture evidence
The matched story window took 625.74 seconds for 102,398 model decodes. At 65,536 allocated F16 cells the measured peaks were 5.69 GiB device-wide VRAM, 5,059 MiB process-dedicated VRAM, and 86 MiB shared GPU memory. Timing evidence
| Checkpoint | Bytes | SHA-256 |
|---|---|---|
Bonsai-2-9B-PQ2_0-QwenPU-Stock-Prism.gguf | 4,500,267,552 | 01ea2741eae025dd7f5c2731d23091c989fa69f056c2c7f52cea08b2b275a688 |
Capture the bounded trace on Windows
Download this repository. Extract both official Prism b12128 Windows CUDA 12.4 archives into the same runtime directory, with its DLLs at that directory's root. The launcher checks the GGUF, ELF, observer, probe, and runtime DLL hashes, then stops after retirement 2,578. It saves the raw trace and physical cache evidence. The saved verification receipt documents the independent CPU replay. Application ZIP · CUDA runtime ZIP
hf download millrace-ai/qwenpu-bonsai-9b-stock-prism --local-dir .\bonsai-9b-qwenpu
Set-Location .\bonsai-9b-qwenpu
.\Run.ps1 -Runtime .\prism-b12128 -OutDir .\bounded-capture
The launcher loads the guest and relays model-selected actions and cache requests through the stock MTP APIs. The MTP block runs the circuit. Divyansh Agrawal created QwenPU and its reference machine. The guest uses Andrej Karpathy's stories260K weights through QwenPU's vector export. The base and port components retain the terms in the bundled notices and licenses. Pinned Bonsai base · QwenPU · Project