Daiqing commited on
Commit
cdce303
·
verified ·
1 Parent(s): f547c96

docs: restore standard SparkLab FTW model card for NVIDIA Qwen3.8

Browse files
Files changed (1) hide show
  1. README.md +135 -32
README.md CHANGED
@@ -1,49 +1,152 @@
1
  ---
 
2
  license: other
3
  license_name: nvidia-open-model-license
4
  license_link: https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4#licenseterms-of-use
5
  base_model: nvidia/Qwen3.8-Flash-Next-NVFP4
6
  library_name: sparklab
7
- tags: [sparklab, ftw, nvfp4, dgx-spark, text-generation]
8
  ---
9
 
10
- # Qwen3.8 Flash Next — NVIDIA FTW for SparkLab
11
 
12
- This repository now packages the NVIDIA checkpoint, replacing the earlier
13
- Inferact-derived FTW on main. The previous artifact remains available at revision
14
- `5ab790b83f149a96594237a35905d84be24599a3`; existing revision-pinned recipes are unaffected.
15
 
16
- ## Provenance and precision
 
 
17
 
18
- - Source: [nvidia/Qwen3.8-Flash-Next-NVFP4](https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4)
19
- - Source revision: `fab0aecb760cec45227f6656abcaafa11abca87a`
20
- - FTW fingerprint: `94e1ee0daa442357`
21
- - Target routed experts: native NVFP4, without conversion-time requantization.
22
- - Resident target projections: BF16.
23
- - Draft experts: native 128-by-128 block-scaled FP8; remaining draft tensors retain
24
- their published precision. All indexed MTP tensors are assembled into the
25
- legacy-named `nvfp4_experts_mtp.safetensors`; its contents are FP8/BF16.
26
- - PLE n-gram table: FP8 with its published global scale in `qwen4_ngram.json`.
27
- - Weight payload: 131,931,279,080 bytes, excluding metadata/tokenizer files.
28
 
29
- ## Runtime compatibility
30
 
31
- Requires a SparkLab source build with NVIDIA mixed-precision Qwen4 checkpoint
32
- support, scaled FP8 PLE lookup, and indexed multi-shard MTP extraction. Do not
33
- assume the previously released 0.1.2 wheel supports this artifact. This is an
34
- experimental, text-only native GB10 runtime artifact, not a standard Transformers
35
- or vLLM safetensors checkpoint.
36
 
37
- The complete target expert bank must be preloaded (24,576 slots). Native MTP is
38
- currently batch-one greedy. This checkpoint does not inherit the prior Inferact
39
- artifact's quality, concurrency, long-context, or endurance evidence.
40
- Performance tuning and quality validation are ongoing; no quality advantage
41
- over Inferact has been established.
42
 
43
- ## Terms
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
  The upstream NVIDIA Open Model License and additional Qwen Community License
46
- terms apply. See the [upstream license/terms](https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4#licenseterms-of-use).
47
- The repository's existing `LICENSE` contains Qwen's additional terms and is not
48
- a substitute for the NVIDIA license. This repository is a repackaging, not a
49
- newly trained or fine-tuned model.
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ pipeline_tag: text-generation
3
  license: other
4
  license_name: nvidia-open-model-license
5
  license_link: https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4#licenseterms-of-use
6
  base_model: nvidia/Qwen3.8-Flash-Next-NVFP4
7
  library_name: sparklab
8
+ tags: [sparklab, ftw, nvfp4, dgx-spark, text-generation, modelopt]
9
  ---
10
 
11
+ # Qwen3.8-Flash-Next NVFP4 SparkLab FTW
12
 
13
+ This repository packages Qwen3.8-Flash-Next as an **experimental, text-only
14
+ SparkLab FTW artifact** for one NVIDIA DGX Spark with 128 GB coherent unified
15
+ memory. It is not a standard Transformers or vLLM safetensors checkpoint.
16
 
17
+ [SparkLab](https://github.com/sixteen-miles-labs/sparklab) provides GB10-native
18
+ inference, model recipes, hardware checks, memory planning, artifact preparation,
19
+ and OpenAI-/Anthropic-compatible serving APIs.
20
 
21
+ ## What this repository contains
 
 
 
 
 
 
 
 
 
22
 
23
+ This is a repackaging, not a newly trained model or an additional quantization:
24
 
25
+ 1. [Qwen](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) developed the base model.
26
+ 2. [NVIDIA](https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4) published the mixed-precision checkpoint using Model Optimizer.
27
+ 3. SparkLab packages the tensors for its native FTW loader and GB10 execution path.
28
+ 4. [OakMind AI](https://huggingface.co/oakmindai) published this conversion.
 
29
 
30
+ The pinned NVIDIA source revision is `fab0aecb760cec45227f6656abcaafa11abca87a`.
31
+ The FTW fingerprint is `94e1ee0daa442357`. Total weight payload is
32
+ **131,931,279,080 bytes**, excluding tokenizer and metadata files.
 
 
33
 
34
+ | Component | Published layout and precision |
35
+ |---|---|
36
+ | Target weights | Ten `freetoken-*.ftw` shards and `freetoken_weight.json`; native NVFP4 routed experts, BF16 resident projections |
37
+ | PLE n-gram bank | Approximately 51.2 GB FP8 `qwen4_ngram.bin`, with its published global scale in `qwen4_ngram.json` |
38
+ | Native MTP module | `nvfp4_experts_mtp.safetensors`; despite the legacy filename, draft experts are 128-by-128 block-scaled FP8 and remaining draft tensors retain their published precision |
39
+ | Runtime metadata | Configuration, tokenizer, chat template, and generation configuration |
40
+
41
+ Conversion preserves published weight precision and scales without conversion-time
42
+ requantization. The complete indexed MTP module is assembled from the source shards.
43
+ Inherited image/video processor metadata does not enable multimodal serving here.
44
+
45
+ ## Why use FTW?
46
+
47
+ FTW prepares tensor layouts ahead of time and stores routed experts in addressable
48
+ banks for SparkLab's native loader. This deployment preloads all **24,576 target
49
+ routed experts** into immutable unified-memory slots, eliminating steady-state
50
+ routed-expert disk reads. The PLE bank remains disk-backed on local NVMe.
51
+
52
+ The artifact's disk size is not its resident-memory requirement. FTW alone is
53
+ not a claim of better model quality or higher steady-state decode throughput.
54
+
55
+ ## Run with SparkLab on NVIDIA DGX Spark
56
+
57
+ Requires ARM64 Linux / DGX OS, GB10/SM121, CUDA 13, and fast local NVMe.
58
+ Use a current SparkLab source build with NVIDIA mixed-precision loading, scaled
59
+ FP8 PLE, indexed MTP extraction, and accepted-prefix commits. **The previously
60
+ released 0.1.2 wheel is not sufficient.**
61
+
62
+ ```bash
63
+ git clone https://github.com/sixteen-miles-labs/sparklab.git
64
+ cd sparklab
65
+ uv venv && source .venv/bin/activate
66
+ uv pip install -e ".[accel]"
67
+
68
+ sparklab doctor --storage-path /path/to/models
69
+ sparklab plan qwen3.8-flash-next --root /path/to/models --prepare
70
+ sparklab pull qwen3.8-flash-next --root /path/to/models --prepare
71
+ sparklab run qwen3.8-flash-next --root /path/to/models
72
+ ```
73
+
74
+ Replace `/path/to/models` with your local NVMe directory. Recipe 0.9.0 downloads
75
+ this prebuilt artifact at immutable revision
76
+ `f547c96e86d0e50908c1415f4525c4325555691e` and verifies its identity. A later
77
+ documentation-only Hub revision does not require changing that weight pin.
78
+ The catalog budgets approximately 402 GB free disk, including preparation and
79
+ safety allowance; `plan` is authoritative.
80
+
81
+ Once the server is ready:
82
+
83
+ ```bash
84
+ curl http://127.0.0.1:1919/health
85
+ curl http://127.0.0.1:1919/v1/models
86
+ curl http://127.0.0.1:1919/v1/chat/completions \
87
+ -H 'Content-Type: application/json' \
88
+ -d '{"model":"qwen3.8-flash-next","messages":[{"role":"user","content":"Hello!"}],"max_tokens":128,"temperature":0,"stream":true}'
89
+ ```
90
+
91
+ ### Optional single-stream MTP
92
+
93
+ Instead of the target-only launch above, enable three draft tokens:
94
+
95
+ ```bash
96
+ sparklab run qwen3.8-flash-next --root /path/to/models -- --speculative-tokens 3
97
+ ```
98
+
99
+ Native MTP is opt-in and limited to batch-one greedy requests. Dense-QSA
100
+ verification uses a fixed-shape CUDA graph; sparse-QSA verification runs eagerly.
101
+ The target-only recipe's admission limit is not a claim of concurrent MTP support.
102
+
103
+ ## Performance and validation limits
104
+
105
+ The selected NVIDIA MTP3 accepted-prefix profile measured **31.97 tok/s** and
106
+ **0.260 s warm TTFT**, three-trial medians on a short 128-token greedy
107
+ single-stream probe. This was 13.9% faster than its NVIDIA MTP3 baseline and
108
+ performed no rejection replay. See
109
+ [GB10-QWENNVIDIA-002](https://github.com/sixteen-miles-labs/sparklab/blob/main/benchmarks/gb10/results/GB10-QWENNVIDIA-002.json).
110
+
111
+ The three selected runs reproduced the same output, but differed from target-only
112
+ and pre-optimization MTP. This does not establish general quality equivalence.
113
+ Quality and endurance certification remain outstanding. The configured
114
+ 131,072-token KV pool is a capacity setting, not a certified context length.
115
+
116
+ The NVIDIA artifact does **not** inherit the previous Inferact artifact's quality,
117
+ 64K recall, concurrency, or endurance evidence. No quality advantage over Inferact
118
+ has been established. Experimental reduced-vocabulary drafting is not enabled
119
+ by the commands above and is not the selected portfolio profile.
120
+
121
+ See the [model guide](https://github.com/sixteen-miles-labs/sparklab/blob/main/docs/models/qwen3.8-flash-next.md)
122
+ for current runtime limitations and separately labeled experiments.
123
+
124
+ ## Previous artifact compatibility
125
+
126
+ The NVIDIA artifact replaced the Inferact-derived artifact on `main` on September
127
+ 5, 2026. The previous artifact remains available at immutable revision
128
+ `5ab790b83f149a96594237a35905d84be24599a3`; existing revision-pinned recipes
129
+ continue to resolve it. Do not mix its shards or sidecars with the NVIDIA artifact.
130
+
131
+ ## Credits and license
132
+
133
+ - Base model: [Qwen](https://huggingface.co/Qwen/Qwen3.8-Flash-Next).
134
+ - Quantized source: [NVIDIA](https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4) and [Model Optimizer](https://github.com/NVIDIA/Model-Optimizer).
135
+ - Native runtime, GB10 optimization, conversion, and deployment workflow: [SparkLab](https://github.com/sixteen-miles-labs/sparklab).
136
+ - Original FreeToken Weight format and upstream runtime foundations: [FreeToken](https://github.com/FlashML-org/FreeToken); see SparkLab's [NOTICE](https://github.com/sixteen-miles-labs/sparklab/blob/main/NOTICE).
137
+ - FTW conversion publishing: [OakMind AI](https://huggingface.co/oakmindai).
138
 
139
  The upstream NVIDIA Open Model License and additional Qwen Community License
140
+ terms apply; see the [upstream license/terms](https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4#licenseterms-of-use).
141
+ The existing `LICENSE` file contains Qwen's additional terms and is not a
142
+ substitute for the NVIDIA license. SparkLab's software license does not replace
143
+ the model's governing terms.
144
+
145
+ ## Upstream model information
146
+
147
+ Consult the [pinned NVIDIA model card](https://huggingface.co/nvidia/Qwen3.8-Flash-Next-NVFP4/blob/fab0aecb760cec45227f6656abcaafa11abca87a/README.md)
148
+ and [Qwen model card](https://huggingface.co/Qwen/Qwen3.8-Flash-Next) for architecture,
149
+ training and calibration information, upstream evaluations, and intended-use
150
+ limitations. Upstream multimodal and long-context results are not SparkLab
151
+ certification. Generated answers can be incorrect or biased; evaluate the
152
+ deployed artifact on your intended tasks before relying on it.