Bonsai 2 4B + QwenPU on stock Prism
Bonsai 2 4B ran real code on a processor built into its 4.03 GB 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 integrates QwenPU's RISC-V and vector circuit into the multi-token prediction block of packed Bonsai 2 4B. The combined GGUF retains the host's native 2,560-wide hidden state and preserves all 426 original PQ2_0 language tensor extents. It uses 36,352 feed-forward rows for the circuit. Packed language tensors that need the wider shape retain their original bytes and receive neutral padding. Created using Bonsai by Prism ML. Checkpoint identity and export audit
The Windows launcher loads the ELF, feeds back the circuit's selected actions, and applies cache requests through stock Prism APIs. The guest runs in a separate context inside the loaded checkpoint. The independently pinned CPU reference checks the recorded execution offline.
Checkpoint metadata
| Field | Value |
|---|---|
| Language host | Bonsai 2 4B (PQ2_0) |
| Base GGUF tensor elements | 4,205,751,296 |
| GGUF architecture | qwen35 |
| Hidden width | 2,560 |
| FFN rows per block | 36,352 |
| Block layout | 32 language blocks + 1 QwenPU MTP block |
| Declared context length | 262,144 tokens in the GGUF header |
| Combined GGUF tensor elements | 11,840,714,242 across 444 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
On an 8 GiB GeForce GTX 1080 using unmodified Prism b12128 for Windows CUDA 12.4, the checkpoint ran the original three-token stories260K guest through clean halt. It printed Once upon a followed by a newline. The verifier matched 37,080 architectural records, 55,375 ordered guest writes, and 726 VMAT operations. The parked text position, KV cache, recurrent state, and logits matched original packed Bonsai 2 4B. The result insertion and next decode also matched the original at the same text history. Full-run measurements · Trace and handoff verdict
The archived verdict used the original laboratory verifier. The packaged verifier adapts its file paths and input checksums. It reproduced the same architectural trace, physical cache checks, and Bonsai handoff from the archived capture. The older 27B and 9B receipts supply comparison traces. Packaged verifier replay
Guest capture took 8 h 49 min. Sampled peaks were 4.73 GiB process-dedicated VRAM, 84 MiB process-shared GPU memory, 6.84 GiB device-wide VRAM, and 4.46 GiB process RAM working set. Device-wide VRAM includes other GPU activity.
| Download | Bytes | SHA-256 |
|---|---|---|
| Bonsai-2-4B-PQ2_0-QwenPU-Stock-Prism.gguf | 4,031,384,384 | ec6d177b3af28436f8aef2c82166ccd01ee087c5aed889b13a269fa414b6c973 |
Reproduce on Windows
Use native Windows x64, the GeForce GTX 1080, an NVIDIA driver compatible with CUDA 12.4, the Hugging Face hf CLI, Git, and Python 3.11 x64 with NumPy and ijson. Install the Microsoft Visual C++ x64 Redistributable for the Prism DLLs. The smoke and full verifiers compare original-model state hashes captured on the GTX 1080. The trace launcher uses the two official Prism ZIP files and verifies their extracted DLLs. Run the short smoke test first. It checks the 12-instruction vector exponentiation regression, including both writes of 127, the physical cache, and parked Bonsai state.
In PowerShell, download the full repository and extract both Windows CUDA 12.4 archives into the same runtime directory. The runtime directory you pass must contain llama.dll and cudart64_12.dll directly.
hf download millrace-ai/qwenpu-bonsai-4b-stock-prism --local-dir .\bonsai-4b-qwenpu
Set-Location .\bonsai-4b-qwenpu
$prism = "https://github.com/PrismML-Eng/llama.cpp/releases/download/prism-b12128-d7b2896"
curl.exe --fail --location --output prism-app.zip "$prism/llama-prism-b12128-d7b2896-bin-win-cuda-12.4-x64.zip"
if ($LASTEXITCODE) { throw "Prism download failed" }
curl.exe --fail --location --output prism-cudart.zip "$prism/cudart-llama-bin-win-cuda-12.4-x64.zip"
if ($LASTEXITCODE) { throw "CUDA runtime download failed" }
Expand-Archive -LiteralPath .\prism-app.zip -DestinationPath .\prism-b12128
Expand-Archive -LiteralPath .\prism-cudart.zip -DestinationPath .\prism-b12128 -Force
py -3.11 -m venv .venv
.\.venv\Scripts\python.exe -m pip install numpy==2.4.6 ijson==3.4.0.post0
git clone https://github.com/divagr18/QwenPU.git
git -C QwenPU checkout --detach 6e2767aaa59b69ea03300c0a5199d7b36debbe50
Prism application ZIP · CUDA runtime ZIP
.\.venv\Scripts\python.exe -B .\Run.py smoke --runtime .\prism-b12128 --reference .\QwenPU --output .\smoke-capture
The run prints PASS and writes smoke-capture\verification.json. Each invocation takes a new output directory. The launcher checks package hashes and the runtime pin before execution.
Full three-token workload
Allow about nine hours for capture on the tested GTX 1080. Offline verification of the original capture took about 11 minutes. Leave at least 6 GiB free for capture files after downloading the models and runtime. The separate original Bonsai model is the matched-history control.
hf download prism-ml/Ternary-Bonsai-2-4B-gguf Ternary-Bonsai-2-4B-PQ2_0.gguf --revision 50ebba61be85e5be07e8083db468ace0fc1bac43 --local-dir .\control
.\.venv\Scripts\python.exe -B .\Run.py three --runtime .\prism-b12128 --reference .\QwenPU --original .\control\Ternary-Bonsai-2-4B-PQ2_0.gguf --output .\three-token-capture
The full verifier checks every recorded retirement, ordered write, guest output, and signed cache witness against the independent reference, then checks the matched-history handoff. See three-token-capture\story.stderr.log for capture progress and three-token-capture\verification.json after it passes. The full validation above was measured on this exact checkpoint. Verification and timing are scoped to the documented guests and Windows configuration. This release covers launcher-supplied workloads.
Rebuild the GGUF from source
A clean native Windows CPU rebuild matched all 4,031,384,384 bytes of this release. The pinned package includes the circuit compiler, GGUF exporter, VEXP conditioning code, and byte comparison recipe. Reconstruction code and verification
Related stock Prism results
The same Windows three-token guest passed on Bonsai 2 9B and Qwen3.5-4B UD-IQ2_M, alongside this Bonsai 2 4B checkpoint and the separate b12128 27B build. The Qwen3.5 port reuses all 18 conditioned 4B circuit tensors. Four-host verification
Sources and distribution
This is the 4B stock Prism b12128 checkpoint. The 27B stock Prism card distributes the separate b9596 package and the b12128 GGUF from the full 27B Windows run. The original v0.1 patched release is historical.
Original Bonsai 2 4B · QwenPU · stories260K · Project · Notices