michellemoorre commited on
Commit
a637bdf
·
verified ·
1 Parent(s): cdb6df7

Refine model card flow and CTA assets

Browse files
README.md CHANGED
@@ -16,37 +16,29 @@ tags:
16
  ---
17
 
18
  <p align="center">
19
- <img src="./assets/thestage-edge-models-header.png" width="100%" alt="TheStageAI Edge Models the right model at every memory budget">
20
  </p>
21
 
22
- <h1 align="center">Qwen3.5 4B — TheStageAI GGUF</h1>
23
 
24
  <p align="center">
25
- Four deployment tiers for local inference with llama.cpp · 1.52 GB4.49 GB
26
  <br>
27
- <strong>Start with M: 2.39 GB and 98% of BF16 instruction-strict IFEval.</strong>
28
  </p>
29
 
30
- <div style="display: flex; gap: 8px; justify-content: center; align-items: center; margin: 16px 0;">
31
- <a href="https://github.com/TheStageAI/edge-lm"><img src="./assets/cta-edge-lm.svg" width="104" height="36" alt="Explore edge-lm on GitHub"></a>
32
- <a href="https://docs.thestage.ai/"><img src="./assets/cta-docs.svg" width="83" height="36" alt="Read TheStageAI documentation"></a>
33
- <a href="https://app.thestage.ai/"><img src="./assets/cta-platform.svg" width="110" height="36" alt="Open TheStageAI Platform"></a>
34
- </div>
35
-
36
- <p align="center"><strong>Qwen 3.5 family:</strong> <a href="https://huggingface.co/TheStageAI/Qwen3.5-0.8B-GGUF">0.8B</a> &nbsp;·&nbsp; <a href="https://huggingface.co/TheStageAI/Qwen3.5-2B-GGUF">2B</a> &nbsp;·&nbsp; <strong><a href="https://huggingface.co/TheStageAI/Qwen3.5-4B-GGUF">4B</a></strong> &nbsp;·&nbsp; <a href="https://huggingface.co/TheStageAI/Qwen3.5-9B-GGUF">9B</a></p>
37
-
38
- ## Start here
39
 
40
  | Tier | Size | Best for | File |
41
  | --- | ---: | --- | --- |
42
  | XS | 1.52 GB | Minimum footprint | [Download](./Qwen3.5-4B-XS-TS-Q3_K_S.gguf) |
43
  | S | 1.90 GB | Compact | [Download](./Qwen3.5-4B-S-TS-Q4_K_S.gguf) |
44
- | **M** | **2.39 GB** | **Recommended · Balanced** | [Download](./Qwen3.5-4B-M-TS-Q4_K_M.gguf) |
45
  | L | 4.49 GB | High-precision Q8 | [Download](./Qwen3.5-4B-L-TS-Q8_0.gguf) |
46
 
47
- Exact byte counts, SHA-256 hashes, and tensor metadata: [`release-manifest.json`](./release-manifest.json).
48
 
49
- ## Run with llama.cpp
50
 
51
  ```bash
52
  llama-cli \
@@ -54,11 +46,17 @@ llama-cli \
54
  --hf-file Qwen3.5-4B-M-TS-Q4_K_M.gguf
55
  ```
56
 
57
- ## Why M is the default
 
 
 
 
 
 
58
 
59
- At 2.39 GB, M retains 98.4% of the BF16 instruction-strict IFEval score; on MMLU-Pro, it retains 99.1% of the BF16 score. It uses 47% less disk than L, making it the default for this release.
60
 
61
- | Tier | IFEval strict — prompt / instruction (%) | MMLU-Pro (%) |
62
  | --- | ---: | ---: |
63
  | BF16 reference | 82.44 / 87.53 | 79.55 |
64
  | XS | 70.43 / 78.30 | — |
@@ -66,9 +64,9 @@ At 2.39 GB, M retains 98.4% of the BF16 instruction-strict IFEval score; on MMLU
66
  | **M** | 80.22 / 86.09 | 78.86 |
67
  | L | 81.70 / 87.05 | 79.59 |
68
 
69
- IFEval measures deterministic non-thinking instruction following; MMLU-Pro measures sampled long-form reasoning. Only complete scores are shown; `—` means not reported.
70
 
71
- > **XS and reasoning:** use S, M, or L for long-form reasoning. Run Qwen XS with `--reasoning off`.
72
 
73
  <details>
74
  <summary><b>Evaluation protocol</b></summary>
@@ -77,40 +75,36 @@ IFEval measures deterministic non-thinking instruction following; MMLU-Pro measu
77
  - **MMLU-Pro:** 12,032 questions, native chat template, `enable_thinking=true`, temperature 1, top-p 0.95, 32,768-token output limit.
78
  - The headline BF16 comparison uses instruction-strict IFEval; the raw scores are shown in the table.
79
 
80
- In matched long-thinking diagnostics, XS produced longer trajectories and reached the 32,768-token output limit more often than S. The XS MMLU-Pro cell is marked `—` for that reason.
81
 
82
  </details>
83
 
84
- ## From source weights to deployment tiers
85
-
86
- All four tiers are produced by the same production PTQ pipeline; only the precision map changes. The process moves from **native code fitting**, through **sequential reconstruction** and **budget-aware scheduling**, to a final **model-wide alignment** pass.
87
 
88
- ### 1. Fit native discrete codes
89
 
90
- Calibration activations define a curvature objective weighted by true Fisher information for each quantized projection. [NeUQI](https://arxiv.org/abs/2505.17595) initializes every affine group's scale and minimum on that objective, so sensitive weight directions influence the grid more strongly.
91
 
92
- With the grid fixed, a guarded cyclic coordinate-descent solver inspired by [QuantEase](https://arxiv.org/abs/2309.01885) searches the integer codes. Continuous sweeps can escape a poor initial projection; projected sweeps return to a valid discrete solution. Round-to-nearest remains a non-regression baseline, and a final K-quant refinement optimizes the stored scales and minima while keeping packed codes fixed.
93
 
94
- ### 2. Reconstruct the trajectory the model will run
95
 
96
- Layers are processed in execution order. Every projection is calibrated against activations from the already-quantized prefix, while a dense reference path measures accumulated drift. [Quantization Error Propagation (QEP)](https://arxiv.org/abs/2504.09629) folds that drift into the next reconstruction target, allowing later layers to compensate for errors they will actually receive at inference time.
97
 
98
- ### 3. Allocate the encoded byte budget
99
 
100
- For XS and S, each quantizable group can select among native Q2_K through Q8_0 representations. The schedule optimizer trades changes in the teacher distribution against **exact encoded byte cost**, including scale and minimum metadata. Sensitive groups keep more precision; robust groups carry more compression.
101
 
102
- [ANNA](https://docs.thestage.ai/qlip/docs/source/anna_api.html) provides TheStageAI's automated constrained configuration search, while [RCO](https://arxiv.org/abs/2605.00649) supplies an exact-budget search route ([reference implementation](https://github.com/IST-DASLab/RCO)). For this model, [RCO](https://arxiv.org/abs/2605.00649) selected both the XS and S precision maps. M and L use fixed Q4_K_M and Q8_0 decoder qtype choices, respectively, while retaining the same reconstruction and scale-tuning stages.
103
 
104
- Once the map is selected, PTQ is rerun from the original source weights. Every layer therefore sees the final upstream precision choices rather than a collection of independently prepared bank tensors.
105
 
106
- ### 4. Align the complete model
107
 
108
- A short affine distillation pass freezes qtypes, packed codes, dense weights, and tensor layouts while tuning native FP16 scales and minima. The loss matches the teacher's next-token distribution—including high-probability tokens and the remaining tail mass—without changing file size or runtime layout.
109
-
110
- Every shipping GGUF is hashed, load-tested, and evaluated on a held-out set of 3,072 sequences using next-token KL. Downstream harnesses use a deterministic HF mirror reconstructed from that exact GGUF; its source SHA-256 and evaluation IDs are recorded in [`release-manifest.json`](./release-manifest.json). The recommended tier is chosen from complete-model results, not from a local reconstruction proxy.
111
 
112
  <details>
113
- <summary><b>Technical file details</b></summary>
114
 
115
  | Tier | Hub selector | GGUF file type | Whole-file BPW |
116
  | --- | --- | --- | ---: |
@@ -119,20 +113,17 @@ Every shipping GGUF is hashed, load-tested, and evaluated on a held-out set of 3
119
  | M | `Q4_K_M` | `MOSTLY_Q4_K_M` | 4.538 |
120
  | L | `Q8_0` | `MOSTLY_Q8_0` | 8.533 |
121
 
122
- The Hub selector controls sidebar grouping and download discovery. For XS and S it approximates the whole-file size class; [`release-manifest.json`](./release-manifest.json) is authoritative for the internal tensor mix. M and L use fixed Q4_K_M and Q8_0 decoder qtype choices within the same production PTQ pipeline.
123
 
124
  Runtime memory also includes KV cache and buffers, which grow with context length.
125
 
126
  </details>
127
 
128
- ## TheStageAI Edge Stack
129
 
130
- - **Portable local inference:** these GGUF files for llama.cpp-compatible runtimes.
131
- - **Native Apple Silicon:** [edge-lm](https://github.com/TheStageAI/edge-lm) for compressed MLX models on Macs and iPhones.
132
- - **Automated compression search:** [ANNA](https://docs.thestage.ai/qlip/docs/source/anna_api.html) for budget-constrained configuration discovery.
133
- - **Custom deployment:** the [TheStageAI Platform](https://app.thestage.ai/) and [documentation](https://docs.thestage.ai/) for compression, compilation, and serving workflows.
134
 
135
- **Have a device, latency, or memory target? [Talk to our team](https://app.thestage.ai/contact)**
136
 
137
  ## Reproducibility
138
 
@@ -143,12 +134,12 @@ Runtime memory also includes KV cache and buffers, which grow with context lengt
143
 
144
  ## Citation
145
 
146
- If you use this checkpoint, please cite the upstream base model and this release:
147
 
148
  ```bibtex
149
  @misc{thestageai2026qwen3p54bgguf,
150
  author = {{TheStageAI}},
151
- title = {Qwen3.5 4B TheStageAI GGUF Release},
152
  year = {2026},
153
  month = {jul},
154
  howpublished = {Hugging Face model release},
@@ -157,13 +148,17 @@ If you use this checkpoint, please cite the upstream base model and this release
157
  }
158
  ```
159
 
160
- ### Methods and tools
 
 
 
 
 
 
 
161
 
162
- - **Schedule selection:** [ANNA](https://docs.thestage.ai/qlip/docs/source/anna_api.html), TheStageAI's automated constrained compression configuration search.
163
- - **Exact-budget optimization:** [RCO: Model Compression with Exact Budget Constraints via Riemannian Manifolds](https://arxiv.org/abs/2605.00649) ([code](https://github.com/IST-DASLab/RCO)).
164
- - **Discrete PTQ:** [NeUQI: Near-Optimal Uniform Quantization Parameter Initialization for Low-Bit LLMs](https://arxiv.org/abs/2505.17595) and [QuantEase: Optimization-based Quantization for Language Models](https://arxiv.org/abs/2309.01885).
165
- - **Sequential reconstruction:** [Quantization Error Propagation: Revisiting Layer-Wise Post-Training Quantization](https://arxiv.org/abs/2504.09629).
166
 
167
  ## License
168
 
169
- The model weights are released under the upstream model's **Apache-2.0** license. llama.cpp and other runtime software retain their own licenses.
 
16
  ---
17
 
18
  <p align="center">
19
+ <img src="./assets/thestage-edge-models-header.png" width="100%" alt="TheStageAI Edge Models: the right model at every memory budget">
20
  </p>
21
 
22
+ <h1 align="center">Qwen3.5 4B</h1>
23
 
24
  <p align="center">
25
+ Four GGUF checkpoints for llama.cpp, from 1.52 GB to 4.49 GB.
26
  <br>
27
+ <strong>Start with M: 2.39 GB and 98.4% of the BF16 instruction-strict IFEval score.</strong>
28
  </p>
29
 
30
+ ## Choose a checkpoint
 
 
 
 
 
 
 
 
31
 
32
  | Tier | Size | Best for | File |
33
  | --- | ---: | --- | --- |
34
  | XS | 1.52 GB | Minimum footprint | [Download](./Qwen3.5-4B-XS-TS-Q3_K_S.gguf) |
35
  | S | 1.90 GB | Compact | [Download](./Qwen3.5-4B-S-TS-Q4_K_S.gguf) |
36
+ | **M** | **2.39 GB** | **Recommended** | [Download](./Qwen3.5-4B-M-TS-Q4_K_M.gguf) |
37
  | L | 4.49 GB | High-precision Q8 | [Download](./Qwen3.5-4B-L-TS-Q8_0.gguf) |
38
 
39
+ **Other Qwen 3.5 sizes:** <a href="https://huggingface.co/TheStageAI/Qwen3.5-0.8B-GGUF">0.8B</a> &nbsp;·&nbsp; <a href="https://huggingface.co/TheStageAI/Qwen3.5-2B-GGUF">2B</a> &nbsp;·&nbsp; <a href="https://huggingface.co/TheStageAI/Qwen3.5-9B-GGUF">9B</a>
40
 
41
+ ## Quickstart
42
 
43
  ```bash
44
  llama-cli \
 
46
  --hf-file Qwen3.5-4B-M-TS-Q4_K_M.gguf
47
  ```
48
 
49
+ <div style="display: flex; gap: 8px; justify-content: center; align-items: center; margin: 12px 0 24px;">
50
+ <a href="https://github.com/TheStageAI/edge-lm"><img src="./assets/cta-edge-lm.svg" width="104" height="36" alt="Explore edge-lm on GitHub"></a>
51
+ <a href="https://docs.thestage.ai/"><img src="./assets/cta-docs.svg" width="83" height="36" alt="Read TheStageAI documentation"></a>
52
+ <a href="https://app.thestage.ai/"><img src="./assets/cta-platform.svg" width="110" height="36" alt="Open TheStageAI Platform"></a>
53
+ </div>
54
+
55
+ ## Why we recommend M
56
 
57
+ At 2.39 GB, M retains 98.4% of the BF16 instruction-strict IFEval score. On MMLU-Pro, it retains 99.1% of the BF16 score. It uses 47% less disk than L.
58
 
59
+ | Tier | IFEval P / I (%) | MMLU-Pro (%) |
60
  | --- | ---: | ---: |
61
  | BF16 reference | 82.44 / 87.53 | 79.55 |
62
  | XS | 70.43 / 78.30 | — |
 
64
  | **M** | 80.22 / 86.09 | 78.86 |
65
  | L | 81.70 / 87.05 | 79.59 |
66
 
67
+ P / I means prompt-strict / instruction-strict. IFEval uses deterministic non-thinking decoding; MMLU-Pro uses sampled long-form reasoning. Only complete model-level scores are reported. A dash means not reported.
68
 
69
+ > **Reasoning:** XS is intended for non-thinking use. Run it with `--reasoning off`. Choose S, M, or L for long-form reasoning.
70
 
71
  <details>
72
  <summary><b>Evaluation protocol</b></summary>
 
75
  - **MMLU-Pro:** 12,032 questions, native chat template, `enable_thinking=true`, temperature 1, top-p 0.95, 32,768-token output limit.
76
  - The headline BF16 comparison uses instruction-strict IFEval; the raw scores are shown in the table.
77
 
78
+ In matched long-form reasoning diagnostics, XS produced longer trajectories and reached the 32,768-token output limit more often than S. The XS MMLU-Pro cell is marked `—` for that reason.
79
 
80
  </details>
81
 
82
+ ## How the checkpoints are built
 
 
83
 
84
+ All four checkpoints use the same production PTQ pipeline. The precision map is the only tier-specific part.
85
 
86
+ ### 1. Fit native GGUF codes
87
 
88
+ Calibration activations produce a curvature objective weighted by true Fisher information for each quantized projection. We adapt the scale and minimum initialization from [NeUQI](https://arxiv.org/abs/2505.17595) to that objective, then solve integer codes on the target GGUF grid with a guarded cyclic coordinate-descent solver inspired by [QuantEase](https://arxiv.org/abs/2309.01885). A final K-quant pass tunes stored scales and minima while keeping packed codes fixed.
89
 
90
+ ### 2. Reconstruct the deployed trajectory
91
 
92
+ Layers are calibrated in execution order against activations from the already-quantized prefix. A dense reference path measures accumulated drift. [Quantization Error Propagation (QEP)](https://arxiv.org/abs/2504.09629) adds that drift to the next reconstruction target, so later layers optimize for the inputs they receive at inference time.
93
 
94
+ ### 3. Allocate the byte budget
95
 
96
+ XS and S can choose Q2_K through Q8_0 for each quantizable group. The optimizer trades changes in the teacher distribution against the actual encoded byte cost, including scale and minimum metadata. [ANNA](https://docs.thestage.ai/qlip/docs/source/anna_api.html) provides constrained configuration search. [RCO](https://arxiv.org/abs/2605.00649) provides an exact-budget route ([code](https://github.com/IST-DASLab/RCO)). For this model, RCO selected both the XS and S precision maps. M and L keep the decoder qtypes at Q4_K_M and Q8_0, respectively, and use the same reconstruction and scale-tuning stages.
97
 
98
+ After schedule selection, PTQ runs again from the source weights. Each layer is then calibrated with the final upstream precision choices.
99
 
100
+ ### 4. Align the full model
101
 
102
+ A short affine distillation pass tunes native FP16 scales and minima while qtypes, packed codes, dense weights, and tensor layouts stay fixed. The loss matches the teacher's next-token distribution without changing file size or runtime layout.
103
 
104
+ We load-test the shipping GGUF and evaluate it on a held-out set of 3,072 sequences with next-token KL. [`release-manifest.json`](./release-manifest.json) records its SHA-256, downstream evaluation IDs, and tensor metadata. Final recommendations use complete-model benchmarks.
 
 
105
 
106
  <details>
107
+ <summary><b>File details</b></summary>
108
 
109
  | Tier | Hub selector | GGUF file type | Whole-file BPW |
110
  | --- | --- | --- | ---: |
 
113
  | M | `Q4_K_M` | `MOSTLY_Q4_K_M` | 4.538 |
114
  | L | `Q8_0` | `MOSTLY_Q8_0` | 8.533 |
115
 
116
+ The Hub selector controls sidebar grouping and download discovery. For XS and S it approximates the whole-file size class; [`release-manifest.json`](./release-manifest.json) contains the exact tensor mix. M and L keep their decoder qtypes at Q4_K_M and Q8_0 within the same production PTQ pipeline.
117
 
118
  Runtime memory also includes KV cache and buffers, which grow with context length.
119
 
120
  </details>
121
 
122
+ ## TheStageAI deployment stack
123
 
124
+ These GGUF files target llama.cpp-compatible runtimes. [edge-lm](https://github.com/TheStageAI/edge-lm) runs compressed MLX models on Macs and iPhones. [ANNA](https://docs.thestage.ai/qlip/docs/source/anna_api.html) searches compression configurations under size or compute constraints. The [TheStageAI Platform](https://app.thestage.ai/) and [documentation](https://docs.thestage.ai/) cover compression, compilation, and serving workflows.
 
 
 
125
 
126
+ For a specific device, latency target, or memory budget, [talk to our team](https://app.thestage.ai/contact).
127
 
128
  ## Reproducibility
129
 
 
134
 
135
  ## Citation
136
 
137
+ If you use this checkpoint, cite this release and follow the upstream model's citation guidance:
138
 
139
  ```bibtex
140
  @misc{thestageai2026qwen3p54bgguf,
141
  author = {{TheStageAI}},
142
+ title = {Qwen3.5 4B: TheStageAI GGUF Release},
143
  year = {2026},
144
  month = {jul},
145
  howpublished = {Hugging Face model release},
 
148
  }
149
  ```
150
 
151
+ <details>
152
+ <summary><b>References</b></summary>
153
+
154
+ - [ANNA](https://docs.thestage.ai/qlip/docs/source/anna_api.html), TheStageAI's constrained compression configuration search.
155
+ - [RCO: Model Compression with Exact Budget Constraints via Riemannian Manifolds](https://arxiv.org/abs/2605.00649) ([code](https://github.com/IST-DASLab/RCO)).
156
+ - [NeUQI: Near-Optimal Uniform Quantization Parameter Initialization for Low-Bit LLMs](https://arxiv.org/abs/2505.17595).
157
+ - [QuantEase: Optimization-based Quantization for Language Models](https://arxiv.org/abs/2309.01885).
158
+ - [Quantization Error Propagation: Revisiting Layer-Wise Post-Training Quantization](https://arxiv.org/abs/2504.09629).
159
 
160
+ </details>
 
 
 
161
 
162
  ## License
163
 
164
+ The checkpoint weights use the upstream model's **Apache-2.0** license. llama.cpp and other runtime software keep their own licenses.
assets/cta-docs.svg CHANGED
assets/cta-edge-lm.svg CHANGED
assets/cta-platform.svg CHANGED
release-manifest.json CHANGED
@@ -36,7 +36,7 @@
36
  },
37
  "display_name": "Qwen3.5 4B",
38
  "family": "Qwen 3.5",
39
- "generated_at": "2026-07-21T12:22:14.106699+00:00",
40
  "license": "apache-2.0",
41
  "model_key": "qwen3p5_4b",
42
  "reasoning_policy": {
 
36
  },
37
  "display_name": "Qwen3.5 4B",
38
  "family": "Qwen 3.5",
39
+ "generated_at": "2026-07-21T13:33:50.063649+00:00",
40
  "license": "apache-2.0",
41
  "model_key": "qwen3p5_4b",
42
  "reasoning_policy": {