license: apache-2.0
base_model: huihui-ai/Huihui-Qwen3.5-4B-abliterated
base_model_relation: quantized
pipeline_tag: text-generation
library_name: qnn
language:
- multilingual
tags: - tokforge
- on-device
- npu
- qualcomm
- qnn
- hexagon
- mnn
- qwen3.5
- abliterated
- snapdragon
Qwen3.5 4B Abliterated (QNN NPU pack)
An NPU pack for Qwen3.5 4B Abliterated in TokForge: the NPU of a Snapdragon phone reads long prompts, and the CPU writes every reply with the Qwen3.5 4B Abliterated download you already have.
Published by TokForge for on-device inference.
| What it is | NPU prompt pack (for Qwen3.5 4B Abliterated) |
| Format | QNN context binaries for the Hexagon NPU plus a small MNN graph, built with QAIRT 2.40; one folder per chip, about 3.7 GB each |
| Runs on | Snapdragon phones (Hexagon NPU), with the paired MNN model on the CPU |
| Phone class | Snapdragon 8 Elite Gen 5 or Snapdragon 8 Gen 3, with room for about 5.9 GB more memory while the model is loaded |
| Download | 7.32 GB (106 files) |
| Base model | huihui-ai/Huihui-Qwen3.5-4B-abliterated, through TokForge's MNN conversion darkmaniac7/Qwen3.5-4B-uncensored-MNN (branch v2) |
| License | Apache-2.0 |
TokForge
- Website: https://tokforge.ai
- Discord: https://discord.gg/Acv3CBtfVm
- Google Play: https://play.google.com/store/apps/details?id=dev.tokforge
- iOS TestFlight: https://testflight.apple.com/join/jnufjzRr
Runs on-device in the TokForge app.
Use it in TokForge
- Install TokForge from Google Play.
- On Android, open Models > Recommended > Chat and download Qwen3.5 4B Abliterated. TokForge lists it on phones with 8 GB RAM or more.
- Get the pack: open Models > Browse and tap Get next to Qwen3.5 4B Abliterated under NPU packs for your phone, or turn on Faster long prompts (NPU) in the model's settings when TokForge offers it. TokForge downloads only the folder for your chip, checks every file by sha256, and compares the NPU with the CPU on your phone before it uses the NPU.
- Load the model and chat as usual. Long prompts are read on the NPU; replies are written on the CPU.
TokForge reads the list of packs from darkmaniac7/TokForge-NPU-packs and downloads this pack at the commit named there. The Qualcomm runtime libraries are not in this repo; TokForge ships them inside the app.
Collections: TokForge NPU Packs.
Files
| File | Size | What it is |
|---|---|---|
Qwen3.5-4B-uncensored-MNN-catalogpair/ |
7.32 GB in 105 files | The pack: MANIFEST.json plus one folder per chip (v81/, v75/), each with 49 QNN context binaries, qnn/llm.mnn, qnn/llm_config.json and config_qnn.json |
SHA256SUMS |
13.1 KB | sha256 of every file |
A phone downloads only MANIFEST.json and the folder for its own chip.
What is in it
QNN context binaries (the model's layers compiled for the Hexagon NPU) for two chips, plus the small MNN graph and
configs that drive them. A phone downloads only the folder for its own chip.
The original model is by the Qwen team; huihui-ai fine-tuned its text part with TRL so it declines fewer requests
(huihui-ai/Huihui-Qwen3.5-4B-abliterated; the author names it abliterated). This pack is exported from TokForge's MNN
conversion of that model and only changes the runtime format for the phone's NPU.
| Chip | NPU | Folder | Download |
|---|---|---|---|
| Snapdragon 8 Elite Gen 5 (SM8850) | Hexagon V81 | Qwen3.5-4B-uncensored-MNN-catalogpair/v81/ |
3.67 GB (3,665,201,713 bytes) |
| Snapdragon 8 Gen 3 (SM8650) | Hexagon V75 | Qwen3.5-4B-uncensored-MNN-catalogpair/v75/ |
3.65 GB (3,650,346,089 bytes) |
Each chip folder holds 49 context binaries (qnn/graph0.bin to qnn/graph48.bin), qnn/llm.mnn (the MNN graph
that drives them), qnn/llm_config.json and config_qnn.json. Qwen3.5-4B-uncensored-MNN-catalogpair/MANIFEST.json lists every file per chip
with its sha256 and size, and the exact download the pack pairs with. SHA256SUMS covers every file in this repo; its README.md line is for an earlier version of this card.
Pairs with one exact download
The pack works only on top of darkmaniac7/Qwen3.5-4B-uncensored-MNN at commit9416259dd5ed (branch v2, the TokForge MNN conversion of
huihui-ai/Huihui-Qwen3.5-4B-abliterated). TokForge matches the two by file hashes,
so a later commit of that branch with the same model files pairs too (the catalog download today is commit4729e486fdb1, which changes only its config.json). The repo's main branch holds a different export, which does
not pair.
| File in the paired download | bytes | sha256 |
|---|---|---|
| llm.mnn | 3,663,184 | e275c11229eaa614eb8aa8cb58d9d90edbd35806606bd2dfec45dff4c7ed659f |
| llm.mnn.weight | 2,366,588,266 | d83b0160b548e7264ed55574b322ce3efcd48c5acb9c08f4b956f1c4ef471b81 |
| tokenizer.txt | 2,955,203 | 3c68069066bfdeb64ece95e988ae6296d20b2aa26cf572c9bafdc414f08a899a |
| tokenizer.mtok | 7,334,481 | 6cea101121825146594c1a0766e882363512a64058b19661adc9f2e3aaed4a0b |
The pack's config_qnn.json names tokenizer.mtok, the tokenizer TokForge downloads with darkmaniac7/Qwen3.5-4B-uncensored-MNN.
With any other download the pack is not used. The pack has no weight file of its own: the NPU weights are inside
the compiled graphs, and the token embeddings are read from the paired download's llm.mnn.weight.
What runs where
- NPU: the 49 compiled graphs, which hold the projections, the MLP blocks and most of the norms of all 32 layers.
- CPU, in the same prompt pass: the 24 linear-attention cores and the 8 full-attention cores with their
key/value cache, a few small norms (their constants are insideqnn/llm.mnn) and the token embedding lookup. - CPU, with your download: the end of the prompt that does not fill a whole 128-token chunk, and every token of
the reply. The pack has no output layer, so the reply always comes from the model you downloaded. - Short prompts stay on the CPU. If the NPU stops during a reply, the CPU finishes it.
How it was made
Exported from the paired download's own int4 weights: MNN's loader dequantizes them, and MNN llmexport (TokForge's
fork of MNN) writes 8-bit per-channel symmetric weights with fp16 activations, feeds
the rotary tables as fp32 inputs and cuts the graph before the output layer. compilefornpu splits the 32 layers into
49 NPU graphs at 24 linear-attention breaks and 40 scalar breaks, each with a 128-row chunk shape and a 1-row shape.
The Qualcomm AI Engine Direct SDK from QAIRT 2.40.0.251030 compiles every graph into one context binary per
chip with the strict HTP options (optimization level 3, fp16 relaxed precision, high-precision sigmoid, advanced
activation fusion off, 8 MB VTCM, 4 HVX threads, weight sharing, and extended UDMA on V81 only, since V75 does not accept it).
The build stops on any difference between a graph's declared inputs and outputs and what QNN created, and every
context binary is read back against its declaration, on each chip. The NPU reads the prompt in 128-token chunks.
Source training weights were not edited.
Limitations
- Snapdragon 8 Elite Gen 5 and Snapdragon 8 Gen 3 only. On other chips TokForge reads prompts on the CPU.
- The NPU part needs about 5.9 GB of memory while the model is loaded; TokForge turns it on only when the phone has
room for it. Measured on phones: 5.93 GB on the Snapdragon 8 Elite Gen 5, 5.87 GB on the Snapdragon 8 Gen 3. - Runtime files for TokForge and MNN, not a Transformers checkpoint.
- The model can still get facts wrong. Check important answers.
License
Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0), as the original model, the abliterated model and the MNN conversion. All
source authors keep their copyrights; no endorsement is claimed.
The context binaries were compiled with Qualcomm's QAIRT SDK. The Qualcomm runtime libraries that run them are not in
this repo; TokForge ships them inside the app under the Qualcomm AI Stack License.
Credits
- Huihui-Qwen3.5-4B-abliterated by huihui-ai (Hugging Face), a fine-tune of Qwen3.5-4B (the author names it abliterated). Used under the Apache-2.0 license.
- Qwen3.5-4B by the Qwen team (Alibaba Cloud) (Hugging Face). Used under the Apache-2.0 license.
- The MNN conversion darkmaniac7/Qwen3.5-4B-uncensored-MNN (branch
v2) by TokForge, whose int4 weights this pack is exported from. Apache-2.0. - Exported with llmexport and run by MNN by Alibaba. Apache-2.0.
- Compiled for the Hexagon NPU with the Qualcomm AI Engine Direct SDK from the Qualcomm AI Runtime (QAIRT) 2.40.0.251030 by Qualcomm. This pack contains compiled model graphs only, no Qualcomm runtime libraries.