Instructions to use igorls/Qwen3.8-Flash-Next-mixed-NInfer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NInfer
How to use igorls/Qwen3.8-Flash-Next-mixed-NInfer with NInfer:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Qwen3.8-Flash-Next mixed quantization for NInfer
An early-access engineering preview of Qwen3.8-Flash-Next in the native .ninfer
format, prepared for the NInfer workstation fork.
It was built and tested on Windows with an RTX PRO 6000 Blackwell and includes the
model's text, Vision, MTP, tokenizer, and prompt-template data.
The artifact combines Primitive AI's NVFP4/FP8 compute weights with its INT4 PLE table. It preserves all 512 routed experts per layer. This is a format conversion and source splice, with no fine-tuning or expert pruning performed by this release. Credit for the base model belongs to Qwen and for the source quantizations to Primitive AI; see NOTICE.md.
Use the pinned NInfer fork below. This file cannot be loaded by Transformers, vLLM, llama.cpp, or Ollama. There is no Hugging Face hosted inference integration.
Update 2026-10-11: the NInfer v3 build of this model was re-derived. It now carries the boundary token in its text config and NInfer's maintained chat template; the current
workstationruntime requires this file and rejects the v3 file published on 2026-10-10. See NInfer v3 artifact below. The v2 file, its SHA256 and thepreview-2026-09-07revision described on this page are unchanged. The current NInferworkstationruntime loads only v3.
Download and identity
| Property | Value |
|---|---|
| File | qwen3_8_flash_next_mixed.ninfer |
| Download size | 113,298,397,952 bytes β 113.30 GB / 105.52 GiB |
| Container | NInfer v2 |
| Model identity | qwen3.8-flash-next |
| Weight identity | mixed-nvfp4-fp8-ple-int4 |
| Release revision | preview-2026-09-07 |
| Compatible engine revision | c81c88f6d66652be4607fb775333a6c63132f3f5 |
Using the Hugging Face CLI:
hf download igorls/Qwen3.8-Flash-Next-mixed-NInfer `
qwen3_8_flash_next_mixed.ninfer artifact-manifest.json SHA256SUMS `
LICENSE NOTICE.md LICENSE-APACHE-2.0.txt README.md `
--revision preview-2026-09-07 --local-dir .\models\flash-next
(Get-FileHash .\models\flash-next\qwen3_8_flash_next_mixed.ninfer -Algorithm SHA256).Hash
Expected SHA256:
3d383e51963aafd4318dfd04c8dc63ee7df11768de19d9ab58dbba44460d1d02
The manifest and checksum identify the exact release bytes. Keep them with the artifact when reproducing results.
Storage and memory
The on-disk inventory has 1,566 objects: 1,560 tensors and six frontend resources.
| Component | Stored format | Runtime placement |
|---|---|---|
| Main routed expert banks | 96 NVFP4 tensors; K16 scales and expert divisors | GPU |
| Main QSA/GDN projection parents | 96 FP8 E4M3 tensors with FP32 row scales | GPU |
| PLE embedding table | 128 INT4 group-16 tensors with FP16 scales | Host file mapping / RAM page cache |
| PLE indexing metadata | Three I64 tensors | Host file mapping |
| MTP expert banks | Two BF16 tensors, included in the BF16 count below | Converted to NVFP4 by the loader when MTP is enabled |
| Other weights, including Vision and MTP tails | BF16; 1,237 BF16 tensors in total | GPU, subject to enabled features |
| Tokenizer, template and media configuration | Six embedded raw resources | Host |
MTP is BF16 on disk and NVFP4 during execution. The two stored MTP expert banks occupy 5,033,164,800 bytes. The pinned loader retains those source banks in the file mapping and creates 1,415,581,696 bytes of NVFP4 device payload using NInfer's weights-only quantizer. No quantization calibration dataset was added in this conversion. The optional separately spliced artifact with NVFP4 MTP already on disk is not the file published here.
With Vision and MTP enabled and the default BF16 embedding/output head, the other device-bound tensor payload totals 76,251,938,528 bytes (71.02 GiB), before the MTP NVFP4 buffers, alignment, execution workspaces, CUDA graphs, recurrent state and KV cache. This is a payload accounting figure, not total VRAM usage. The PLE table plus its indexing metadata occupies 32,000,162,072 bytes (29.80 GiB) of host-mapped data. The runtime warms the table's pages at startup; reclaiming this cache under memory pressure can hurt latency.
The development workstation has one RTX PRO 6000 Blackwell Workstation Edition (96 GB) and 128 GB-class system RAM (125.64 GiB visible to Windows). These are the observed host specifications, not a measured minimum-RAM requirement. Use an SSD with more than 114 GB free for this file and metadata; leave additional room for the build and download cache. We have not qualified this artifact on smaller GPUs.
Windows quick start
Build from an x64 Visual Studio developer shell with CUDA installed. This example
uses the workstation toolchain: Visual Studio 2026, CUDA 13.3, and CMake 4.3. NInfer
targets sm_120a; this release is intended for the RTX PRO 6000 Blackwell platform.
git clone https://github.com/igorls/ninfer.git
cd ninfer
git checkout c81c88f6d66652be4607fb775333a6c63132f3f5
cmake -S . -B build-win -G "Visual Studio 18 2026" -A x64 -DNINFER_BUILD_MEDIA=OFF
cmake --build build-win --config Release -j
Download the model into models/flash-next inside that checkout using the command
above, then start a bounded text-serving profile:
.\build-win\apps\Release\ninfer-serve.exe .\models\flash-next\qwen3_8_flash_next_mixed.ninfer `
--host 127.0.0.1 --port 8010 --model-id qwen3.8-flash-next `
--max-context 32768 --kv-capacity 65536 --max-concurrency 2 `
--prefill-chunk 8192 --desktop-reserve-gib 3 `
--kv-dtype fp8 --gdn-state-dtype bf16 --spec mtp --draft-tokens 4 `
--preserve-thinking
This is a conservative starting profile, not the settings used for every published
measurement. Wait for the server-ready message: model materialization, host-table
warm-up and graph creation happen before serving. --max-context limits each
request; --kv-capacity is shared across active requests. The engine supports up
to eight active requests, but a KV pool sized for fewer full-context requests can
queue long requests. MTP currently speculates at decode batch size one; larger
batches use ordinary batched decode.
For image/video input, build with NINFER_BUILD_MEDIA=ON and the FFmpeg/libcurl
dependencies described in the fork README,
then add --vision. The text-only build above does not enable image/video input.
The artifact always contains Vision and MTP weights, even when a feature is disabled.
An OpenAI-compatible structured-output request:
$body = @{
model = "qwen3.8-flash-next"
messages = @(@{role = "user"; content = 'Return a JSON object with a "greeting" string in Portuguese.'})
max_tokens = 128
reasoning_effort = "none"
response_format = @{type = "json_object"}
} | ConvertTo-Json -Depth 6
Invoke-RestMethod http://127.0.0.1:8010/v1/chat/completions `
-Method Post -ContentType "application/json" -Body $body
The fork also serves OpenAI Responses and Anthropic Messages, tool calls, streaming, and a supported JSON Schema subset using constrained decoding. Details and explicit unsupported-schema behavior are in the serving reference. JSON conformance and application-level answer correctness are separate properties.
Provenance and validation
| Input | Pinned revision | Contribution |
|---|---|---|
| Primitive mixed NVFP4/FP8 | a4e813ed3cfbbcc61e2929699eccb864a4dfa843 |
Compute backbone, BF16 MTP/Vision/tails and frontend; BF16 PLE shards omitted |
| Primitive INT4 PLE | da8b39586016d8325ac619be28ad77d6296625ec |
All 128 ples_int4 table shards |
| Official Qwen reference | de4b8e4d43b917e7706784d8bb445c9af86a3540 |
Retained license and byte-identical frontend reference |
The converter aggregates expert banks, arranges projection rows and scale planes
for NInfer, substitutes the INT4 PLE table, and embeds the six frontend resources.
It consumes the 296,502 non-PLE source tensors recorded in the mixed checkpoint
index and replaces its 128 BF16 PLE tensors. The sidecar recorded recipe
qwen3_8_flash_next_mixed-v1 and the two source revisions above, but did not record
the historical converter Git revision. That historical revision is unknown; the
compatible engine pin is not presented as the original converter revision. The
original BF16 checkpoint revision used by Primitive is also not independently
established by this release.
Release checks on September 7, 2026 read the actual file with NInfer's container reader, validating the v2 directory, format/shape byte sizes, offsets, alignments and file bounds. The full-file SHA256 was computed, and every embedded frontend resource matched both the recorded conversion hashes and the pinned official Qwen reference. This verifies artifact structure and identity, not full numerical equivalence to Qwen's original BF16 inference implementation.
Earlier Windows RTX PRO 6000 engineering checks cover serving, multi-position MTP acceptance, prefix reuse, Vision smoke requests, and constrained output. Workload definitions, timings and limitations are in the performance reference. This publication adds no benchmark campaign or quality score. Real application evaluation, including manual review of complex legal/evidence workflows, remains in progress. This preview does not establish production readiness for those tasks.
NInfer v3 artifact (re-derived 2026-10-11)
The NInfer workstation runtime (igorls/ninfer, branch workstation, commit
e58cde3d610b7bcbf47f34b24996acbad9202deb)
runs Flash-Next as a native qwen4_exp v3 package (text, MTP, Vision) and rejects v2 files. The v3
artifact below is the upgrade of the v2 file above; every v2 file in this repository is unchanged.
| Property | Value |
|---|---|
| Files | qwen3_8_flash_next_mixed.v3.ninfer plus .part-0001, .part-0002, .part-0003 (keep all four in one directory; load the entry file) |
| Total size | 109,681,106,432 bytes (102.15 GiB), payload 109,680,553,472 bytes |
| Container | NInfer v3, 1,566 objects, 1,668 bindings, 959 uses |
artifact_id |
3cade505298b575e009fe78877b76a33 |
| Source | the v2 file above, SHA256 3d383e51963aafd4318dfd04c8dc63ee7df11768de19d9ab58dbba44460d1d02 (checked by the upgrade) |
| Chat template | NInfer's maintained Qwen3.8 template, SHA256 1080e714707a3a47815f1affa79772996b7c13436cf32ddaa21f21184059ac9e |
| Checksums | SHA256SUMS.v3, artifact-manifest.v3.json, qwen3_8_flash_next_mixed.v3.ninfer.upgrade.json |
f05abe459b4062af844e6c4ba6585feb97b8e3c9f016bac02815d483e2d51797 qwen3_8_flash_next_mixed.v3.ninfer
69425b82468c039cb837335289daa9c9eaea17216c957dae3f633bdc7aa92ea3 qwen3_8_flash_next_mixed.v3.ninfer.part-0001
a39946035aa14f8f9e910ba371662b1dfb33d6f3df27af41ec31b875a8e8216e qwen3_8_flash_next_mixed.v3.ninfer.part-0002
1deec0ae25095afcd18f2e8c8e8471bf2dda631fc506960304b791d60a477be4 qwen3_8_flash_next_mixed.v3.ninfer.part-0003
Re-derived on 2026-10-11. These files replace the v3 files first published on 2026-10-10
(artifact_id 1e7e026e9f634926ae26b80f0fc8591e). The derivation changed in two places:
- The text config carries
eos_token_id(248044). The runtime reads it as the PLE boundary token instead of a built-in constant, and from commitaba1fc90it rejects a v3 file without it, including the 2026-10-10 file. - The artifact stores NInfer's maintained Qwen3.8 chat template instead of the official one. It is
the official template plus three changes: system and developer messages at any position, a final
assistant message continued rather than closed, and tool-result histories that do not need a
user turn.
ninfer-serveno longer needs--chat-templatefor this model.
The weights are unchanged. The 2026-10-10 files remain available at revision
1736c44084e6b6cd6deba1a73bedccf20e690a09 of this repository for workstation up to commit
d84c5643.
What changed from v2. 1,563 of 1,566 objects are the v2 bytes (checked against per-object v2
digests). The two BF16 MTP expert banks are stored as NVFP4 expert banks, the form the v2 loader
built on the device at every start, so v3 does no load-time weight repacking; the chat-template
object holds the maintained template. Layout is otherwise per the workstation reference
docs/maintainer/qwen3.8-flash-next-artifact.md.
Derivable. The workstation docs define v3 as derived, never distributed: every consumer rebuilds it from the published v2 file. This repository publishes the derivation output as a convenience; the derivation remains the reference:
python -m tools.convert.qwen4_exp.upgrade qwen3_8_flash_next_mixed.ninfer qwen3_8_flash_next_mixed.v3.ninfer
python -m tools.convert.qwen4_exp.verify qwen3_8_flash_next_mixed.v3.ninfer --file-digests
verify --file-digests compares the result with the file digests pinned in the workstation tree
(tools/convert/qwen4_exp/source.py); these files pass, and the Hub files are byte-identical to the
verified ones. This derivation ran once, on Windows 11 (CPython 3.14.5, torch 2.13.0 CPU, numpy
2.4.6). The 2026-10-10 derivation produced identical bytes on Windows and Linux; this one has not been
repeated on a second platform.
Validation (Windows, RTX PRO 6000 Blackwell). With the engine code of workstation commit
44ad9f21, the 19 real-artifact cases of ninfer_qwen4_exp_engine_real_test pass on these files:
graph against eager execution, batched against single requests, Host round trip, context reuse,
logprobs and structured output, causal scoring, prefill-chunk invariance, Vision, MTP graphs and
target parity, long FP8 context, and concurrent reuse. The loading test passes too. The eight
context-reuse cases were rerun with commit bb8c4068. Served with MTP K=3 and the flags below, greedy
text is identical to the previous build serving the 2026-10-10 file with the same template passed by
--chat-template, on seven of eight workloads (chat, code, JSON Schema extraction, thinking, top-3
logprobs, device logprobs, four concurrent requests). The eighth workload's prompt differed between
the two runs, so it was not compared.
Measured on the 2026-10-10 file, which has the same weights. An earlier version of this card said
MTP speculation decoded slower (about 50 tok/s). That test client requested top_logprobs on every
request, a path that is offered no speculative drafts but still pays MTP's wider verification, so it
did not measure MTP decoding.
MTP K=3 against no speculation (workstation @ c2bbf835, same GPU, serving flags below, one request at a time, greedy, server-reported decode tok/s, median of three): chat 116 vs 109 (+7%), code 177 vs 109 (+63%), document summary 134 vs 106 (+27%), JSON Schema extraction 158 vs 108 (+46%), thinking 140 vs 105 (+33%). Both servers produced byte-identical text. Requests with top_logprobs are slower on an MTP server (45 vs 84 tok/s), and four concurrent low-acceptance chat requests reach 190 vs 226 tok/s aggregate. Details are in the performance reference.
With serving flags (--max-context 131072 --kv-capacity 262144 --max-concurrency 4 --prefill-chunk 8192 --kv-dtype fp8 --vision, no MTP) the 2026-10-10 file loads in about 38 s, keeps needle retrieval at 3k/12k/31k tokens correct, decodes at about 100 to 106 tok/s on short chat, and reaches about 286 tok/s aggregate with four concurrent 200-token requests. 8 of the 10 prompts match the bf16-KV run exactly; the other two differ only in wording, as expected with fp8 KV. This is an engineering smoke test, not a benchmark or quality score.
Run it with the workstation build at the commit above, for example:
hf download igorls/Qwen3.8-Flash-Next-mixed-NInfer `
qwen3_8_flash_next_mixed.v3.ninfer qwen3_8_flash_next_mixed.v3.ninfer.part-0001 `
qwen3_8_flash_next_mixed.v3.ninfer.part-0002 qwen3_8_flash_next_mixed.v3.ninfer.part-0003 `
SHA256SUMS.v3 artifact-manifest.v3.json --local-dir .\models\flash-next-v3
.\build-win\apps\Release\ninfer-serve.exe .\models\flash-next-v3\qwen3_8_flash_next_mixed.v3.ninfer `
--model-id qwen3.8-flash-next --max-context 65536 --kv-capacity 65536 --kv-dtype fp8 --vision
Add --spec mtp --draft-tokens 3 for MTP speculation.
The v2 revision preview-2026-09-07 and the instructions above it still describe the v2 file.
License
The Qwen-derived model weights are distributed with the original Qwen Community License 1.0, reproduced verbatim in LICENSE. Its commercial-use conditions apply to derivatives; this is not an Apache-2.0-only model release. Primitive's PLE repository separately advertises Apache-2.0 metadata; the accompanying Apache license text and attribution notice preserve that information without replacing Qwen's conditions. The NInfer engine source has its own Apache-2.0 license.
- Downloads last month
- 796
Model tree for igorls/Qwen3.8-Flash-Next-mixed-NInfer
Base model
Qwen/Qwen3.8-Flash-Next