Kecven commited on
Commit
534fefd
·
verified ·
1 Parent(s): 32ff0b1

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +111 -3
README.md CHANGED
@@ -1,7 +1,115 @@
1
  ---
2
- language: en
3
- pipeline_tag: text-generation
 
4
  tags:
5
- - mlx
 
 
 
 
 
 
6
  library_name: mlx
7
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ base_model:
4
+ - Qwen/Qwen3.8-27B
5
  tags:
6
+ - mlx
7
+ - mtplx
8
+ - qwen
9
+ - qwen3.8
10
+ - speculative-decoding
11
+ - mtp
12
+ - quantized
13
  library_name: mlx
14
  ---
15
+
16
+ # Qwen3.8-27B-MTPLX-Q4
17
+
18
+ MTPLX-compatible 4-bit conversion of [Qwen/Qwen3.8-27B], built locally from the original BF16 checkpoint while preserving the model's native MTP weights in BF16.
19
+
20
+ ## Quantization
21
+
22
+ - Base model: `Qwen/Qwen3.8-27B`
23
+ - Body: 4-bit affine
24
+ - Group size: 64
25
+ - MTP sidecar: native BF16
26
+ - Maximum verified MTP depth: 3
27
+ - MTPLX version: 2.3.0
28
+ - Source format: BF16 native MTP
29
+
30
+ Forge recipe:
31
+
32
+ ```json
33
+ {
34
+ "body_bits": 4,
35
+ "body_dtype": "auto",
36
+ "body_group_size": 64,
37
+ "body_mode": "affine",
38
+ "mtp_policy": "keep_bf16"
39
+ }
40
+ ```
41
+
42
+ ## Verification Results
43
+
44
+ Verified locally with MTPLX Forge using the `long-code-uncapped` suite with a maximum generation budget of 2048 tokens.
45
+
46
+ | Mode | Speed | vs AR | Acceptance |
47
+ |---|---:|---:|---|
48
+ | AR / depth 0 | 15.74 tok/s | 1.00× | — |
49
+ | MTP depth 1 | 27.82 tok/s | 1.77× | 96.95% |
50
+ | MTP depth 2 | 36.53 tok/s | 2.32× | 96.13% / 90.66% |
51
+ | MTP depth 3 | **44.34 tok/s** | **2.82×** | 95.90% / 89.55% / 81.72% |
52
+
53
+ Forge verdict:
54
+
55
+ ```text
56
+ mtp_depth_wins
57
+ ```
58
+
59
+ All tested depths passed the Forge quality verification gate.
60
+
61
+ The recommended profile produced by Forge is:
62
+
63
+ ```text
64
+ sustained
65
+ ```
66
+
67
+ ## MTP Configuration
68
+
69
+ ```text
70
+ architecture: qwen3-next-mtp
71
+ mtp_depth_max: 3
72
+ mtp_sidecar: bf16
73
+ base_hidden_variant: post_norm
74
+ hidden_variant: post_norm
75
+ concat_order: embedding_hidden
76
+ mtp_position_mode: local
77
+ ```
78
+
79
+ ## Source Provenance
80
+
81
+ - Source repository: `Qwen/Qwen3.8-27B`
82
+ - Source commit: `1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0`
83
+ - Conversion: MTPLX Forge
84
+ - MTPLX version: `2.3.0`
85
+ - Forged locally on macOS / Apple Silicon
86
+
87
+ The MTP weights were preserved from the original BF16 checkpoint rather than requantized.
88
+
89
+ ## Performance Notes
90
+
91
+ The benchmark numbers above are specific to the machine used for verification and should not be treated as universal throughput figures.
92
+
93
+ The more useful result is the relative improvement on the same hardware:
94
+
95
+ ```text
96
+ 15.74 tok/s AR
97
+
98
+ 44.34 tok/s MTP depth 3
99
+
100
+ 2.82× decode throughput
101
+ ```
102
+
103
+ MTP acceptance remained high through depth 3, with the third speculative position accepted approximately 81.7% of the time.
104
+
105
+ ## Usage
106
+
107
+ This model is intended for use with MTPLX on Apple Silicon.
108
+
109
+ After downloading, inspect the included runtime metadata and use the MTPLX runtime to load the model. The Forge-generated runtime metadata contains the verified MTP contract and recommended configuration.
110
+
111
+ ## License
112
+
113
+ This conversion follows the Apache-2.0 license of the original `Qwen/Qwen3.8-27B` checkpoint.
114
+
115
+ See the upstream model repository for additional usage information and attribution requirements.