license: apache-2.0
base_model: kelsey1337/Ternary-Bonsai-2.5-27B-Uncensored-MTP-GGUF
pipeline_tag: image-text-to-text
tags:
- ninfer
- ninfer-v3
- bonsai
- ternary
- ptq1_0
- mtp
- vision
- uncensored
- comfyui
Qrusher Bonsai 2.5 27B — Uncensored · PTQ1_0 · MTP · Vision · NInfer V3
A community conversion of Ternary Bonsai 2.5 27B into a single NInfer V3 inference artifact, with native ternary text weights, multi-token prediction (MTP), an integrated vision tower and tokenizer resources.
Converted by QrusherZA for local GPU inference, with initial testing on an NVIDIA GeForce RTX 3080 12 GB (Ampere / SM86) under Windows.
This is a conversion, not a newly trained model or a Heretic release. The upstream weight modifications are inherited from AtomicChat via kelsey1337's GGUF release; no additional LoRA was merged during this conversion.
Model details
| Component | Configuration |
|---|---|
| Base architecture | Qwen3.8-27B hybrid attention |
| Text source | Ternary Bonsai 2.5 27B Uncensored PTQ1_0 MTP GGUF |
| Text representation | Native gguf_ptq1_0 |
| MTP | Integrated upstream draft head |
| Vision | Converted from official BF16 mmproj |
| Proposal head | Requested during conversion |
| Container | NInfer V3 (.ninfer) |
| Output | Text, with image input support |
| Tested GPU | RTX 3080 12 GB, SM86 |
Artifact: Qrusher-Bonsai-2.5-27B-Uncensored-PTQ1_0-MTP-VL-v3.ninfer
Provenance and conversion design
Qwen3.8-27B (Qwen Team)
└── Ternary Bonsai 2.5 27B (PrismML)
├── AtomicChat modified PTQ1_0 text weights
│ └── kelsey1337 PTQ1_0 + original MTP head
└── Official BF16 vision mmproj
↓
WaveCut NInfer V3 converter + Qwen resources
↓
Qrusher Bonsai 2.5 27B NInfer V3
The conversion uses WaveCut's bonsai2_27b_ternary recipe. Native PTQ1_0 storage is retained rather than deliberately dequantizing and requantizing the text model. The vision component is imported from the original BF16 GGUF, while the MTP component is obtained from the integrated source head. The exact output tensor inventory and byte-level preservation have not been independently audited for this release.
Quick start (Windows)
Download the .ninfer artifact into your NInfer models directory. Install a matching NInfer runtime that explicitly supports gguf_ptq1_0 on your GPU. Older releases may open the container but fail during runtime planning.
Save the following as serve-bonsai25.bat in your preferred location. Adjust the installation path as needed.
@echo off
setlocal
title Bonsai 2.5 27B - NInfer MTP Vision
cd /d "C:\AI\NInfer" || exit /b 1
ninfer-serve.exe ^
".\models\Qrusher-Bonsai-2.5-27B-Uncensored-PTQ1_0-MTP-VL-v3.ninfer" ^
--model-id qrusher-bonsai25-27b ^
--host 127.0.0.1 ^
--port 8080 ^
--max-context 32768 ^
--kv-capacity 32768 ^
--kv-dtype rk4v4 ^
--gdn-state-fp16 ^
--max-concurrency 1 ^
--prefill-chunk 512 ^
--spec mtp ^
--draft-tokens 3 ^
--vision ^
--vision-residency overlay ^
--vision-max-merged 1024 ^
--default-reasoning-effort xhigh ^
--default-max-tokens 16384
pause
These are suggested server settings, adapted from the local launch configuration; they are not a record of the exact benchmark settings. Check ninfer-serve.exe --help for your runtime version. Start at 32K context on a 12 GB GPU. A 64K context can be attempted by setting both context and KV capacity to 65536, subject to available memory. The generation budget must fit the remaining context.
Test model discovery:
curl.exe http://127.0.0.1:8080/v1/models
Open WebUI and ComfyUI
For Open WebUI, add an OpenAI-compatible connection with base URL http://127.0.0.1:8080/v1 (or the reachable server address) and model ID qrusher-bonsai25-27b. For a remote UI, bind NInfer to 0.0.0.0, restrict firewall access to trusted hosts, and configure authentication where supported. Do not expose an unauthenticated inference API publicly.
For ComfyUI-Ninferencing, select the artifact and ensure the node launches a PTQ1_0-capable runtime. Vision and reasoning/MTP combinations passed local smoke tests. Native tool calling and Claude Code compatibility have not been independently validated for this particular artifact.
Reproduce the conversion
1. Prepare the source repository and assets
Use a checkout of iamwavecut/ninfer-all with Bonsai 2.5 PTQ1_0 support in both the converter and runtime. See the weight conversion documentation. The exact successful commit was not recorded.
cd C:\AI\ninfer-source
$root = 'C:\AI\NInfer\models\bonsai-25'
$config = "$root\Qwen3.8-27B"
New-Item -ItemType Directory -Force -Path $root | Out-Null
hf download kelsey1337/Ternary-Bonsai-2.5-27B-Uncensored-MTP-GGUF Ternary-Bonsai-2.5-27B-Uncensored-PTQ1_0-mtp.gguf --local-dir "$root"
hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf --local-dir "$root"
hf download Qwen/Qwen3.8-27B config.json tokenizer.json tokenizer_config.json generation_config.json preprocessor_config.json video_preprocessor_config.json chat_template.jinja --local-dir "$config"
Only configuration and tokenizer resources are needed from the Qwen repository; the two GGUF files supply the weights. Explicit filenames avoid wildcard expansion issues observed with the Windows HF CLI.
Check native format support:
Select-String -Path .\tools\convert\ternary.py -Pattern 'PTQ1_0|gguf_ptq1_0'
python -m tools.convert --help
Install Python dependencies according to the NInfer checkout's instructions. CUDA-enabled PyTorch is needed only for CUDA conversion; CPU conversion is also supported.
2. Run the conversion
python -m tools.convert `
--model "C:\AI\NInfer\models\bonsai-25\Qwen3.8-27B" `
--recipe bonsai2_27b_ternary `
--source "ternary=C:\AI\NInfer\models\bonsai-25\Ternary-Bonsai-2.5-27B-Uncensored-PTQ1_0-mtp.gguf" `
--source "vision=C:\AI\NInfer\models\bonsai-25\Ternary-Bonsai-2.5-27B-mmproj-BF16.gguf" `
--components "text,vision,mtp" `
--resource "chat_template.jinja=C:\AI\NInfer\models\bonsai-25\Qwen3.8-27B\chat_template.jinja" `
--proposal `
--name "Qrusher-Bonsai-2.5-27B-Uncensored" `
--out "C:\AI\NInfer\models\Qrusher-Bonsai-2.5-27B-Uncensored-PTQ1_0-MTP-VL-v3.ninfer" `
--device cpu `
--rows-per-chunk 512
Absolute paths avoid empty PowerShell variables. Use --device cuda if the conversion environment has working CUDA-enabled PyTorch. CPU conversion does not prevent GPU inference.
Local performance and validation
The following values are from a local ComfyUI-Ninferencing diagnostic run on the RTX 3080 12 GB. This was a long multimodal request that terminated without a final answer; the numbers describe runtime throughput and memory, not a successful task benchmark.
| Metric | Observed |
|---|---|
| Prompt tokens | 8,625 |
| Generated tokens | 1,988 |
| Text prefill | 1,790 tokens/s |
| Decode | 68.6 tokens/s |
| Overall throughput | 58.5 tokens/s |
| Vision processing | 228 ms |
| GPU weights | 5.89 GiB |
| Runtime reservation | 1.51 GiB |
| Planned device total | 7.40 GiB |
| Free VRAM after startup | 3.35 GiB |
| Context reported | 32,769 |
| KV capacity reported | 32,832 |
| KV cache type | rotated-k8g64-v4g32 |
| MTP draft window | 3 |
| MTP acceptance | 14.2% |
Subsequent functional tests passed with thinking off/on (x-high when enabled), and MTP off/on. No standardized quality evaluation or comparative speed benchmark has been completed. MTP acceptance and throughput depend heavily on the prompt, sampling, and runtime; the upstream draft head is unchanged and may not match the modified target model equally well on all workloads.
Troubleshooting
| Error | Suggested action |
|---|---|
unknown tensor format: gguf_ptq1_0 |
Update the actual runtime executable used by the client; build 3fda316 failed in local testing. |
Missing preprocessor_config.json or video_preprocessor_config.json |
Download the corresponding Qwen resource explicitly. |
CUDA conversion requested but CUDA is unavailable |
Use CPU conversion or install CUDA-enabled PyTorch in the conversion environment. |
source requires unique NAME=PATH entries |
Verify source arguments, use absolute paths and distinct names. |
ninfer returned no answer |
Inspect stop reason, reasoning output and sampling; compare with thinking and MTP disabled on a simple test. |
| GPU allocation error | Reduce context/KV capacity and other concurrent GPU allocations. |
Long instruction-heavy requests can cause reasoning degeneration. Do not interpret the presence of MTP, vision or a successful load as proof that every task will complete correctly.
Credits and acknowledgements
This release builds on the work of several upstream projects. Credit belongs to the original authors for their respective contributions:
| Contributor | Contribution |
|---|---|
| Qwen Team / Alibaba Cloud | Qwen3.8-27B foundation architecture and frontend resources. |
| PrismML | Ternary Bonsai 2.5 model, native ternary representation, official vision and MTP distribution. |
| AtomicChat | Original modified ternary text weights. |
| kelsey1337 | Direct source GGUF combining the modified text weights and original MTP head. |
| WaveCut / iamwavecut | NInfer engine, V3 container and native ternary conversion recipe; see also the reference model. |
| cicalooo | ComfyUI integration used for local testing. |
| QrusherZA | NInfer artifact conversion, integration and RTX 3080 testing documented here. |
Citation
Please cite the upstream models when using this artifact. The following entries follow the upstream model cards:
@techreport{bonsai2_5_27b,
title = {Ternary Bonsai 2.5 27B: A 27B Ternary Model Built for Agents},
author = {PrismML},
year = {2026},
month = {November},
url = {https://prismml.com}
}
@misc{qwen38,
title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
url = {https://qwen.ai/blog?id=qwen3.8},
author = {{Qwen Team}},
month = {August},
year = {2026}
}
For the community modifications and conversion tooling, please also link the contributor repositories listed above. No endorsement by upstream authors is implied.
License and responsible use
The direct GGUF source, AtomicChat release and PrismML release identify Apache 2.0 as their license. This derivative is intended for distribution under Apache 2.0, subject to preservation of the applicable upstream copyright, attribution and notice requirements.
When redistributing the artifact, include the applicable LICENSE and upstream NOTICE.txt files, including the original MTP draft-head provenance, and preserve any additional notices for bundled resources. See the direct source repository and PrismML's files. This README does not replace those notices.
The model is experimental and may produce inaccurate, biased, unsafe or otherwise unsuitable output. Review outputs before relying on them, and sandbox external tools and agent permissions appropriately.