Add production FP8-PLE model card
Browse files
README.md
CHANGED
|
@@ -1,223 +1,96 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 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 |
-
-
|
|
|
|
|
|
|
|
|
|
| 10 |
- nvfp4
|
| 11 |
-
-
|
| 12 |
-
-
|
| 13 |
-
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 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 |
-
|
| 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 |
-
|
| 72 |
-
|
| 73 |
-
.
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 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">↓ 55.8%</td><td class="reduction">↓ 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">↓ 57.0%</td><td class="reduction">↓ 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">↓ 44.1%</td><td class="reduction">↓ 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">↓ 46.9%</td><td class="reduction">↓ 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">↓ 31.3%</td><td class="reduction">↓ 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">↓ 35.1%</td><td class="reduction">↓ 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">↓ 55.7%</td><td class="reduction">↓ 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">↓ 44.8%</td><td class="reduction">↓ 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">↑ 11.9%</td><td class="reduction">↓ 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">↓ 55.8%</td><td class="reduction">↓ 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">↓ 40.3%</td><td class="reduction">↓ 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">↓ 33.3%</td><td class="reduction">↓ 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|