File size: 2,544 Bytes
5dfab0b
 
 
 
 
 
392962e
 
 
 
 
 
5dfab0b
 
 
 
 
 
b891a0d
 
 
392962e
5dfab0b
 
 
 
 
 
392962e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
library_name: mlx
tags:
- mlx
- oq
- quantized
- benchmark
- performance
- mtp
- moe
- code
- agentic-coding
---

# KAT-Coder-V2.5-Dev-oQ2e-mtp

This model was quantized using [oQ](https://github.com/jundot/omlx) (oMLX v0.5.4) mixed-precision quantization.

- Base model: [Kwaipilot/KAT-Coder-V2.5-Dev](https://huggingface.co/Kwaipilot/KAT-Coder-V2.5-Dev)
- MTP head: [Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) (original MTP head grafted)
- Chat template: [Qwen Fixed Chat Template](https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates) (v21) — fixes KV cache optimization, thinking mode control, tool calling, and agent loop issues. Original backed up as `chat_template.jinja.bak`.

## Quantization details

- **Model type**: qwen3_5_moe
- **Bits**: 2
- **Group size**: 64
- **Format**: MLX safetensors
- **MTP**: Grafted from Qwen3.6-35B-A3B (bf16 original)
- **Calibration**: oQ2e (enhanced, imatrix-based)

## Environment

- **Hardware**: M5 MacBook Air 32GB
- **Inference Framework**: oMLX v0.5.4
- **Max Concurrent Requests**: 4
- **Settings**:
  - Thinking: Disabled
  - Lightning MTP: Enabled (key speed improvement)

## Performance Benchmarks

> **Note**: Results are for reference only and may vary depending on hardware, software configuration, and workload.

### Single Request Results

| Test | TTFT(ms) | TPOT(ms) | pp TPS | tg TPS | E2E(s) | Throughput | Peak Mem |
|------|----------|----------|--------|--------|--------|------------|----------|
| pp1024/tg128 | 1119.8 | 17.25 | 914.4 tok/s | 58.4 tok/s | 3.330 | 346.0 tok/s | 14.20 GB |
| pp4096/tg128 | 4040.2 | 21.25 | 1013.8 tok/s | 47.4 tok/s | 6.754 | 625.4 tok/s | 14.94 GB |

### Continuous Batching (pp1024 / tg128)

| Batch | tg TPS | Speedup | pp TPS | pp TPS/req | TTFT(ms) | E2E(s) |
|-------|--------|---------|--------|------------|----------|--------|
| 1x | 58.4 tok/s | 1.00x | 914.4 tok/s | 914.4 tok/s | 1119.8 | 3.330 |
| 2x | 79.3 tok/s | 1.36x | 825.0 tok/s | 412.5 tok/s | 2482.5 | 5.711 |
| 4x | 112.2 tok/s | 1.92x | 827.0 tok/s | 206.8 tok/s | 4815.5 | 9.517 |

## Intelligence Benchmark

> **Note**: Each benchmark round tests only 30 questions. Results are for reference only.

| Benchmark | Accuracy | Correct | Total | Time(s) | Think |
|-----------|----------|---------|-------|---------|-------|
| MMLU | 73.3% | 22 | 30 | 36.3 | No |
| TRUTHFULQA | 86.7% | 26 | 30 | 15.5 | No |
| GSM8K | 96.7% | 29 | 30 | 76.7 | No |
| MATHQA | 13.3% | 4 | 30 | 76.2 | No |
| HUMANEVAL | 90.0% | 27 | 30 | 118.5 | No |