/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Ternary-Bonsai-2-4B-gguf
Библиотека
gguf
Опубликована
16 ноя 2026

qwenpu-bonsai-4b-stock-prism

Генерация текстаТекст → текст3 профессии
1 313скачиваний за 30 дней0лайковвеса обновлены1 дек 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Исследовательский GGUF-чекпойнт на основе Bonsai 2 4B со встроенным процессором QwenPU для запуска и проверки гостевых программ через Prism.

Это исследовательский GGUF-чекпойнт, созданный Prism ML на основе Bonsai 2 4B и объединяющий языковую модель с процессором QwenPU на базе RISC-V и векторных схем. Он предназначен для запуска предусмотренных проектом гостевых программ и проверки выполнения их инструкций и взаимодействия с состоянием Bonsai через Prism на Windows. В карточке описан запуск трёхтокенной программы stories260K на видеокарте с 8 ГБ памяти; файл модели имеет размер около 4,03 ГБ, а формат квантования языковых тензоров — PQ2_0.

Для проверки приведены результаты независимого сопоставления трассы выполнения и передачи состояния модели с контрольным запуском Bonsai 2 4B. Проверенная конфигурация использует Windows x64, Prism b12128, CUDA 12.4 и GTX 1080; полный захват теста на ней занял около девяти часов. Лицензия — Apache-2.0. Результаты подтверждены только для описанных гостевых программ и конфигурации, а выпуск рассчитан на нагрузки, передаваемые через лаунчер.

Сценарии применения

  • Запуск тестовых гостевых программ на базе RISC-V и векторных инструкций
  • Проверка трассы выполнения инструкций гостевой программы
  • Сравнение состояния модели и кэша с контрольным запуском Bonsai 2 4B
  • Воспроизведение трёхтокенного теста stories260K в Prism на Windows

Ограничения

Проверка охватывает описанные гостевые программы и конфигурацию Windows с Prism b12128 и CUDA 12.4; выпуск рассчитан на нагрузки, передаваемые через лаунчер. Полный захват трёхтокенного теста на проверенной GTX 1080 занял около девяти часов.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

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

FieldValue
Language hostBonsai 2 4B (PQ2_0)
Base GGUF tensor elements4,205,751,296
GGUF architectureqwen35
Hidden width2,560
FFN rows per block36,352
Block layout32 language blocks + 1 QwenPU MTP block
Declared context length262,144 tokens in the GGUF header
Combined GGUF tensor elements11,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.

DownloadBytesSHA-256
Bonsai-2-4B-PQ2_0-QwenPU-Stock-Prism.gguf4,031,384,384ec6d177b3af28436f8aef2c82166ccd01ee087c5aed889b13a269fa414b6c973

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

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
558d8c3

0 моделей