Views
No views yet
Qwen3.5-0.8B-NG4 is an experimental grouped 4-bit conversion of Qwen3.5 0.8B for the Nivora on-device inference runtime.T=1 matrix-vector decoding on Apple GPUs.This repository is intended for runtime research, Metal kernel development, numerical parity testing, and performance evaluation. It is not yet a general-purpose replacement for GGUF, MLX, or Transformers model files.
| Property | Value |
|---|---|
| Base architecture | Qwen3.5 |
| Base model | Qwen3.5 0.8B |
| Parameters | Approximately 752M |
| Container | NGUF v1 |
| Quantization | NG4 affine grouped 4-bit |
| Group size | 64 |
| Standard row tile | 32 |
| Embedding/head row tile | 64 |
| Scale format | FP16 |
| Bias format | FP16 |
| Packed weights | Unsigned 4-bit nibbles |
| Primary target | Apple Metal |
| Decode target | Autoregressive T=1 |
| Runtime | Nivora experimental NG4 runtime |
| Status | Experimental |
Q4_0 tensorsQ8_0 token embeddings1Original model
2→ Q4_0 / Q8_0 GGUF
3→ dequantized approximation
4→ NG4 affine grouped 4-bit1{
2 "precision": "requantized",
3 "quantized_types": [
4 "Q4_0",
5 "Q8_0"
6 ],
7 "quality_status": "experimental-requantized"
8}dequantized_weight = scale × quantized_value + bias164 × 4-bit weights
21 × FP16 scale
31 × FP16 bias132 bytes packed weights
2+ 2 bytes scale
3+ 2 bytes bias
4= 36 bytes per 64 weights
5≈ 4.5 bits per weight1output row tile
2→ input group
3→ local output row
4→ packed 4-bit words
5→ per-row scale
6→ per-row bias1row tile: 32
2group size: 64
3packing: 8 weights per UInt321row tile: 64
2group size: 641blk.*.attn_qkv.weight
2blk.*.attn_q.weight
3blk.*.attn_k.weight
4blk.*.attn_v.weight
5blk.*.attn_output.weight
6blk.*.attn_gate.weight
7blk.*.ffn_gate.weight
8blk.*.ffn_up.weight
9blk.*.ffn_down.weight
10blk.*.ssm_beta.weight
11blk.*.ssm_out.weight
12token_embd.weight1normalization weights
2SSM decay parameters
3SSM time-step biases
4SSM convolution weights
5small recurrent parameters| Property | Value |
|---|---|
| Hidden size | 1,024 |
| Feed-forward size | 3,584 |
| Layers | 24 |
| Attention heads | 8 |
| KV heads | 2 on attention layers |
| Vocabulary size | 248,320 |
| SSM state size | 128 |
| SSM inner size | 2,048 |
| SSM groups | 16 |