d0xin commited on
Commit
eab5a3f
·
verified ·
1 Parent(s): d073581

Add production FP8-PLE model card

Browse files
Files changed (1) hide show
  1. README.md +91 -218
README.md CHANGED
@@ -1,223 +1,96 @@
1
  ---
2
- license: other
3
- license_name: swift-open-license-1.0
4
- license_link: https://huggingface.co/ukisai/Swift-Qwen3.8-Flash-Next/blob/main/LICENSE
5
- library_name: transformers
6
- pipeline_tag: image-text-to-text
7
- gated: true
8
  tags:
9
- - quantized
 
 
 
10
  - nvfp4
11
- - qwen3_8
12
- - moe
13
- - reasoning
14
- - efficient-thinking
15
- - token-efficient
16
- - post-training
17
- - agentic
18
- - terminal-bench
19
- datasets:
20
- - ukisai/Qwen3.8-27B-multi-turn-agent-sft
21
- base_model: ukisai/Swift-Qwen3.8-Flash-Next
22
- base_model_relation: quantized
23
  ---
24
 
25
- <div align="center">
26
- <a href="https://ukisai.com"><img src="ukisai-banner.png" alt="UkisAI" style="width:100%;max-width:100%;height:auto;display:block;margin-bottom:0.6em;" /></a>
27
- <div style="display:flex;justify-content:center;gap:0.6em;margin-bottom:1em;">
28
- <a href="https://ukisai.com"><strong>Website</strong></a> &nbsp;&bull;&nbsp;
29
- <a href="https://ukisai.com/products/swift"><strong>Learn more</strong></a> &nbsp;&bull;&nbsp;
30
- <a href="https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GGUF"><strong>GGUF</strong></a> &nbsp;&bull;&nbsp;
31
- <a href="https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF"><strong>GSQ-RCO GGUF</strong></a> &nbsp;&bull;&nbsp;
32
- <a href="#evaluation"><strong>Evaluation</strong></a> &nbsp;&bull;&nbsp;
33
- <a href="#license-and-access"><strong>Enterprise licensing</strong></a>
34
- </div>
35
- </div>
36
-
37
- # Swift 1.5 Qwen3.8-Flash-Next
38
-
39
- **NVFP4.** Derived directly from [Swift 1.5 Qwen3.8-Flash-Next](https://huggingface.co/ukisai/Swift-Qwen3.8-Flash-Next). Native NVFP4 execution requires compatible NVIDIA Blackwell support.
40
-
41
- Swift 1.5 Qwen3.8-Flash-Next is UkisAI's reasoning-efficient derivative of [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next).
42
- It uses **63.4% fewer thinking tokens**, with a **1.8x speed up** while keeping the **accuracy loss <1%** vs base on xhigh.
43
-
44
- ## Demo
45
-
46
- We gave base Qwen3.8-Flash-Next and Swift 1.5 Qwen3.8-Flash-Next the same prompt:
47
-
48
- > Create a 3D endless runner that has the fast, playful feel of Subway Surfers, but make the world and characters your own. I want to run through a lively place, dodge things, collect rewards, and feel the pace build the longer I survive. Make it fun to control and visually memorable. Use your judgment for the setting, mechanics, and little details that make it feel like a real game. Build it so I can launch and play it locally, then tell me how to run it.
49
-
50
- <video src="https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-NVFP4/resolve/main/swift-1.5-flash-next-demo.mp4" controls autoplay muted loop playsinline style="width:100%;height:auto;border-radius:12px;"></video>
51
-
52
- Try the game yourself here: [https://ukisai.com/swift-games/flash-next](https://ukisai.com/swift-games/flash-next)
53
-
54
- Base Qwen3.8-Flash-Next took 8 minutes 52 seconds to build its game. Swift 1.5 took 4 minutes 56 seconds.
55
-
56
- ## Training approach
57
-
58
- We made Swift Flash Next efficient by figuring out which tokens were linked to pathological overthinking and penalizing them without "attacking" the reasoning length directly then regained the accuracy with RL and OPD, leading to "compressed" token usage while maintaining accuracy.
59
-
60
- Swift 1.5 produces shorter reasoning traces. In our testing, we also observe fewer overthinking errors.
61
-
62
- This release also features our previously mentioned post-training methods adapted specifically for coding and long-horizon agent
63
- work such as personal agents, terminal use and software engineering.
64
-
65
- Our training data is viewable here: https://huggingface.co/datasets/ukisai/Qwen3.8-27B-multi-turn-agent-sft albeit it is not used out of the box, but rather re-sampled, turned into proper RL environments etc.
66
-
67
- ## Evaluation
68
-
69
- All scores compare the Qwen3.8-Flash-Next BF16 base with the Swift 1.5 BF16 checkpoint. Token columns report **thinking tokens**, except Terminal-Bench 2.1, which reports **total generated output tokens**.
70
-
71
- <style>
72
- .swift-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid #27344A; border-radius:20px; background:#0D111B; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; font-size:14px; color:#BFBDBD; }
73
- .swift-table th { padding:13px 8px; text-align:center; font-weight:700; color:#AEB5C7; background:#0D111B; border-right:1px solid #27344A; border-bottom:1px solid #27344A; }
74
- .swift-table td { padding:14px 8px; text-align:center; color:#BFBDBD; background:#0D111B; border-right:1px solid #27344A; border-bottom:1px solid #27344A; vertical-align:middle; overflow-wrap:break-word; }
75
- .swift-table tr > :last-child { border-right:0; }
76
- .swift-table tbody tr:last-child td { border-bottom:0; }
77
- .swift-table .benchmark-heading { color:#B7BDCD; background:#0D111B; border-bottom:3px solid #7D45B5; }
78
- .swift-table .score-heading { color:#F0C5FF; background:#52239E; border-bottom:3px solid #7D45B5; }
79
- .swift-table .tokens-heading, .swift-table .median-heading { color:#D4E8FF; background:#304FC2; border-bottom:3px solid #5687E6; }
80
- .swift-table .benchmark { padding-left:18px; text-align:left; color:#FFFFFF; font-weight:600; }
81
- .swift-table .section { padding:12px 18px; text-align:left; color:#B489FF; background:#2A2541; font-weight:700; letter-spacing:.08em; text-transform:uppercase; border-top:1px solid #3A3159; border-bottom:1px solid #3A3159; }
82
- .swift-table .swift { background:#171127; }
83
- .swift-table thead tr:nth-child(2) .swift { color:#D3A0FF; }
84
- .swift-table .reduction { color:#69BFFF; background:#101B2C; font-weight:700; }
85
- .swift-table .detail { color:#8C94A8; font-size:12px; font-weight:500; }
86
-
87
- @media (max-width: 640px) {
88
- .swift-table { display:block !important; width:100% !important; max-width:100%; overflow-x:auto !important; -webkit-overflow-scrolling:touch; table-layout:auto !important; }
89
- .swift-table th, .swift-table td { min-width:100px; }
90
- .swift-table th:first-child, .swift-table td:first-child { min-width:160px; }
91
- }
92
- </style>
93
-
94
- <table class="swift-table">
95
- <thead>
96
- <tr>
97
- <th rowspan="2" class="benchmark-heading" style="width:32%;text-align:left;padding-left:18px;vertical-align:bottom;">Benchmark</th>
98
- <th colspan="2" class="score-heading">Score</th>
99
- <th colspan="3" class="tokens-heading">Mean tokens</th>
100
- <th class="median-heading" style="width:14%;">Median tokens</th>
101
- </tr>
102
- <tr>
103
- <th>Base</th><th class="swift">Swift 1.5</th>
104
- <th>Base</th><th class="swift">Swift 1.5</th>
105
- <th class="reduction">Reduction</th><th class="reduction">Reduction</th>
106
- </tr>
107
- </thead>
108
- <tbody>
109
- <tr><td class="section" colspan="7">General reasoning</td></tr>
110
- <tr><td class="benchmark">GPQA-Diamond</td><td>89.80%</td><td class="swift">89.60%</td><td>17,683</td><td class="swift">7,823</td><td class="reduction">&darr; 55.8%</td><td class="reduction">&darr; 63.4%</td></tr>
111
- <tr><td class="benchmark">MMLU-Pro</td><td>87.75%</td><td class="swift">87.20%</td><td>3,528</td><td class="swift">1,519</td><td class="reduction">&darr; 57.0%</td><td class="reduction">&darr; 24.0%</td></tr>
112
- <tr><td class="benchmark">C-Eval</td><td>93.27%</td><td class="swift">93.60%</td><td>1,048</td><td class="swift">586</td><td class="reduction">&darr; 44.1%</td><td class="reduction">&darr; 7.1%</td></tr>
113
- <tr><td class="benchmark">IFBench</td><td>73.20%</td><td class="swift">70.13%</td><td>8,310</td><td class="swift">4,411</td><td class="reduction">&darr; 46.9%</td><td class="reduction">&darr; 55.6%</td></tr>
114
- <tr><td class="section" colspan="7">Mathematics</td></tr>
115
- <tr><td class="benchmark">AIME 2026</td><td>98.67%</td><td class="swift">96.67%</td><td>23,015</td><td class="swift">15,806</td><td class="reduction">&darr; 31.3%</td><td class="reduction">&darr; 51.1%</td></tr>
116
- <tr><td class="benchmark">HMMT (Nov 2025)</td><td>98.00%</td><td class="swift">97.33%</td><td>25,487</td><td class="swift">16,530</td><td class="reduction">&darr; 35.1%</td><td class="reduction">&darr; 54.7%</td></tr>
117
- <tr><td class="section" colspan="7">Multimodal</td></tr>
118
- <tr><td class="benchmark">ERQA</td><td>70.80%</td><td class="swift">69.30%</td><td>4,036</td><td class="swift">1,788</td><td class="reduction">&darr; 55.7%</td><td class="reduction">&darr; 47.7%</td></tr>
119
- <tr><td class="section" colspan="7">Coding</td></tr>
120
- <tr><td class="benchmark">LiveCodeBench v6</td><td>88.40%</td><td class="swift">90.39%</td><td>17,833</td><td class="swift">9,849</td><td class="reduction">&darr; 44.8%</td><td class="reduction">&darr; 52.0%</td></tr>
121
- <tr><td class="section" colspan="7">Agentic coding</td></tr>
122
- <tr><td class="benchmark">Terminal-Bench 2.1</td><td>67.64%</td><td class="swift">69.66%</td><td>40,591</td><td class="swift">45,428</td><td class="reduction">&uarr; 11.9%</td><td class="reduction">&darr; 17.9%</td></tr>
123
- </tbody>
124
- </table>
125
-
126
- <details>
127
- <summary><strong>How to reproduce</strong></summary>
128
-
129
- <p style="font-size:13px;line-height:1.5;margin:8px 0;"><strong>Serving:</strong> BF16 · Qwen3 reasoning parser · context 262,144 · thinking xhigh · MTP disabled.<br>
130
- <strong>Sampling:</strong> temperature 1.0 · top_p 0.95 · top_k 20 · min_p 0 · presence_penalty 0 · repetition_penalty 1.<br>
131
- <strong>Benchmarks:</strong> five seeds (0–4) for the seeded question benchmarks; Terminal-Bench 2.1 uses five attempts per task. LiveCodeBench is full release v6 mean pass@1 over seeds.<br>
132
- <strong>Terminal-Bench 2.1:</strong> Harbor 0.20.0 / Terminus-2 2.0.0, pinned 89-task dataset, JSON parser, interleaved thinking, temperature 1, top_p 1, 131,072-token server context, 3,600-second LLM call timeout and native per-task limits. Swift used concurrency 8; its context-recovery fix was applied during the run.</p>
133
-
134
- <table style="display:table;width:100%;border-collapse:collapse;font-size:13px;line-height:1.3;margin:8px 0;">
135
- <thead><tr><th style="padding:4px 8px;text-align:left;">Benchmark</th><th style="padding:4px 8px;text-align:right;">Output cap</th></tr></thead>
136
- <tbody>
137
- <tr><td style="padding:3px 8px;">GPQA-Diamond</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr>
138
- <tr><td style="padding:3px 8px;">MMLU-Pro</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr>
139
- <tr><td style="padding:3px 8px;">C-Eval</td><td style="padding:3px 8px;text-align:right;">16,384</td></tr>
140
- <tr><td style="padding:3px 8px;">IFBench</td><td style="padding:3px 8px;text-align:right;">81,920</td></tr>
141
- <tr><td style="padding:3px 8px;">AIME 2026</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr>
142
- <tr><td style="padding:3px 8px;">HMMT Nov 2025</td><td style="padding:3px 8px;text-align:right;">250,000</td></tr>
143
- <tr><td style="padding:3px 8px;">ERQA</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr>
144
- <tr><td style="padding:3px 8px;">LiveCodeBench v6</td><td style="padding:3px 8px;text-align:right;">100,000</td></tr>
145
- </tbody>
146
- </table>
147
-
148
- </details>
149
-
150
- ## Efficiency across reasoning efforts
151
-
152
- GPQA-Diamond at each `reasoning_effort` setting, Swift 1.5 against the base at the same setting:
153
-
154
- <table class="swift-table" style="display:table;width:100%;table-layout:fixed;">
155
- <colgroup><col style="width:16%"><col style="width:12%"><col style="width:12%"><col style="width:12%"><col style="width:12%"><col style="width:18%"><col style="width:18%"></colgroup>
156
- <thead>
157
- <tr>
158
- <th rowspan="2" class="benchmark-heading" style="width:16%;text-align:left;padding-left:18px;vertical-align:bottom;">Reasoning effort</th>
159
- <th colspan="2" class="score-heading" style="width:24%;">Score</th>
160
- <th colspan="3" class="tokens-heading" style="width:42%;">Mean tokens</th>
161
- <th class="median-heading" style="width:18%;">Median tokens</th>
162
- </tr>
163
- <tr>
164
- <th>Base</th><th class="swift">Swift 1.5</th>
165
- <th>Base</th><th class="swift">Swift 1.5</th>
166
- <th class="reduction">Reduction</th><th class="reduction">Reduction</th>
167
- </tr>
168
- </thead>
169
- <tbody>
170
- <tr><td class="benchmark">Xhigh</td><td>89.80%</td><td class="swift">89.60%</td><td>17,683</td><td class="swift">7,823</td><td class="reduction">&darr; 55.8%</td><td class="reduction">&darr; 63.4%</td></tr>
171
- <tr><td class="benchmark">Medium</td><td>86.36%</td><td class="swift">83.74%</td><td>4,157</td><td class="swift">2,483</td><td class="reduction">&darr; 40.3%</td><td class="reduction">&darr; 25.1%</td></tr>
172
- <tr><td class="benchmark">Low</td><td>87.17%</td><td class="swift">84.75%</td><td>3,966</td><td class="swift">2,645</td><td class="reduction">&darr; 33.3%</td><td class="reduction">&darr; 19.7%</td></tr>
173
- </tbody>
174
- </table>
175
-
176
- At xhigh, Swift 1.5 trails base by 0.20 percentage points while using 55.8% fewer mean and 63.4% fewer median thinking tokens. Medium and low save tokens but also lose 2.62 and 2.42 percentage points respectively.
177
-
178
- ## Quantized models
179
-
180
- | Format | Repository | Runtime |
181
- | --- | --- | --- |
182
- | AWQ INT4 (W4A16) | [Swift-1.5-Qwen3.8-Flash-Next-W4A16-AWQ](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-W4A16-AWQ) | vLLM (`compressed-tensors`) |
183
- | AutoRound INT4 (W4A16) | [Swift-1.5-Qwen3.8-Flash-Next-W4A16-AutoRound](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-W4A16-AutoRound) | vLLM (`auto-round`) |
184
- | NVFP4 | [Swift-1.5-Qwen3.8-Flash-Next-NVFP4](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-NVFP4) | NVIDIA Blackwell |
185
- | GGUF | [Swift-1.5-Qwen3.8-Flash-Next-GGUF](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GGUF) | llama.cpp |
186
- | GSQ-RCO GGUF (compact 2–3 bit) | [Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF](https://huggingface.co/ukisai/Swift-1.5-Qwen3.8-Flash-Next-GSQ-RCO-GGUF) | llama.cpp |
187
-
188
- ## License and access
189
-
190
- Swift 1.5 Qwen3.8-Flash-Next is a derivative of [Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next)
191
- (Copyright (c) 2026 Qwen, [Qwen Community License 1.0](https://huggingface.co/ukisai/Swift-Qwen3.8-Flash-Next/blob/main/LICENSE-QWEN)).
192
- UkisAI's contribution, including the adapted weights, is licensed under the
193
- **[Swift Open License v1.0](https://huggingface.co/ukisai/Swift-Qwen3.8-Flash-Next/blob/main/LICENSE)**.
194
- See [NOTICE](https://huggingface.co/ukisai/Swift-Qwen3.8-Flash-Next/blob/main/NOTICE) for the change notice and
195
- attribution details.
196
-
197
- Personal, research, educational, evaluation, and commercial use of the Swift contribution are free for individuals
198
- and organizations with gross annual revenue, including affiliates, of up to US$1,000,000. Above that threshold,
199
- commercial use requires a separate Swift Enterprise License. Contact [UkisAI](https://ukisai.com/contact) for terms.
200
-
201
- The base model's terms still apply to it. Under the Qwen Community License 1.0, organizations that run a
202
- Model-as-a-Service or AI Work Assistant business need a separate license from Qwen before any commercial use,
203
- and products above 100 million monthly active users or US$20 million monthly revenue must prominently display
204
- the model name. Nothing in the Swift Open License limits your rights in Qwen3.8-Flash-Next itself under the
205
- Qwen Community License.
206
-
207
- ## Citation
208
-
209
- ~~~bibtex
210
- @misc{swift-qwen3.8-flash-next,
211
- title = {Swift 1.5 Qwen3.8-Flash-Next},
212
- author = {UkisAI},
213
- year = {2026},
214
- url = {https://huggingface.co/ukisai/Swift-Qwen3.8-Flash-Next}
215
- }
216
- ~~~
217
-
218
- ## Acknowledgements
219
-
220
- We acknowledge the [NVIDIA Innovation Lab](https://www.nvidia.com/en-us/data-center/innovation-lab/),
221
- [Amazon Web Services](https://aws.amazon.com/), and
222
- [Google Cloud](https://cloud.google.com/) for providing compute credits and
223
- infrastructure support for Swift's development, training, and evaluation.
 
1
  ---
2
+ base_model: ukisai/Swift-1.5-Qwen3.8-Flash-Next-NVFP4
 
 
 
 
 
3
  tags:
4
+ - qwen
5
+ - qwen3.8
6
+ - flash-next
7
+ - swift
8
  - nvfp4
9
+ - fp8
10
+ - sglang
11
+ - pennyroyal
12
+ - blackwell
13
+ - local-llm
 
 
 
 
 
 
 
14
  ---
15
 
16
+ # Swift-1.5 Qwen3.8 Flash-Next NVFP4 — FP8 PLE
17
+
18
+ Production-oriented derivative of:
19
+
20
+ `ukisai/Swift-1.5-Qwen3.8-Flash-Next-NVFP4`
21
+
22
+ The model weights remain in their original NVFP4 layout while the large
23
+ PLE embedding table has been converted from BF16 to FP8 E4M3.
24
+
25
+ ## FP8 PLE conversion
26
+
27
+ Original BF16 PLE:
28
+
29
+ - 95.37 GiB
30
+
31
+ Converted FP8 PLE:
32
+
33
+ - 47.68 GiB
34
+ - FP8 E4M3
35
+ - shared BF16 scale
36
+
37
+ This substantially reduces the storage and memory footprint of the PLE
38
+ component.
39
+
40
+ ## Validated configuration
41
+
42
+ Production validation was performed with Pennyroyal / SGLang on an
43
+ NVIDIA RTX PRO 6000 Blackwell.
44
+
45
+ Configuration:
46
+
47
+ - Qwen3.8 Flash-Next
48
+ - native NEXTN
49
+ - FR-Spec disabled
50
+ - native context: 262144 tokens
51
+ - FP8 KV cache
52
+ - FP8 PLE
53
+ - NVMe SSD-streamed PLE
54
+ - online MXFP8 enabled at runtime
55
+ - max running requests: 4
56
+
57
+ The production deployment uses Pennyroyal's prepared NVMe PLE overlay.
58
+
59
+ The NVMe overlay is **not included** here because it is a runtime-specific,
60
+ regenerable artifact. This repository contains the portable checkpoint
61
+ from which the overlay is created.
62
+
63
+ Online MXFP8 is also a runtime optimization and is not baked into this
64
+ checkpoint.
65
+
66
+ ## Validation results
67
+
68
+ Selected measurements on RTX PRO 6000 Blackwell:
69
+
70
+ - MMLU-Pro: 226 / 280 = 80.71%
71
+ - historical agentic workload: 174.68 effective tok/s
72
+ - fixed 4096 generation median: 133.07 tok/s
73
+ - native 262144-token context: PASS
74
+ - retrieval at ~261.7K input tokens: PASS
75
+ - agentic tool/workflow smoke: 7/7
76
+
77
+ Performance numbers are runtime- and hardware-specific.
78
+
79
+ ## PLE conversion validation
80
+
81
+ The FP8 PLE derivative was validated against the source model before
82
+ production deployment.
83
+
84
+ ## Runtime
85
+
86
+ Validated with Pennyroyal / SGLang on NVIDIA Blackwell.
87
+
88
+ Other runtimes may require support for the model's NVFP4 checkpoint format
89
+ and FP8 PLE representation.
90
+
91
+ ## License and provenance
92
+
93
+ This is a derivative of the upstream Swift/Qwen model.
94
+
95
+ Please review the upstream model card and license files included in the
96
+ repository before redistribution or deployment.