Qwen3.8-Flash-Next-Twindex
Offline Twindex calibration artifact (.twx, format TWX1 v1) for Qwen/Qwen3.8-Flash-Next and variants sharing the same QSA indexer weights (including GSQ-RCO and Swift 1.5 GGUFs).
Each layer stores a mean vector and two 64 x 128 projection matrices fitted with Hadamard-equilibrated query-metric PCA (D = 128 -> 64, reg = 1e-6) over 12 QSA layers, keyed by the indexer weights' SHA-256 (3ea7ca8401224dce460a0f9d87eeb6cb558da21e23442b0460ee87f1c8f187e4).
XeStrata uses this file to maintain a compact compressed VRAM index cache alongside a dynamic hot cache on GPU for long-context QSA coarse-to-fine selection.
Files
| File | Bytes | SHA-256 |
|---|---|---|
3ea7ca8401224dce460a0f9d87eeb6cb558da21e23442b0460ee87f1c8f187e4.twx |
792,640 | 3c39f513392c47a7d55ff054a7725db10ad0b1d067c63c092c82ec20d6b05f39 |
The file was generated twice with OMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 and the two copies compared byte for byte with cmp.
The hashes above were checked against the Hub's LFS metadata and against a file fetched back from this repository.
The calibration script (twindex_fit.py) is available at https://github.com/MistVVK/llm-weight-tools (0BSD).
Checks
- Calibration fit (
131,072tokens:32,766pooled blocks Γ15,872head-queries per layer across 12 QSA layers,D = 128 -> 64, Hadamard equilibration,reg = 1e-6): mean shared energy41.0%(30.7%β56.2%), mean query-metric PCA variance explained96.12%. - Held-out evaluation (
M = 1,280; exact-score vs GPUsel_blocks100.0000%over1,416+1,536+1,536queries):128Kheld-out (Qwen3.8-Flash-Next IQ3_XXS): attention-mass@128099.58%(fp16/int8),99.51%(nvfp4).64Kheld-out (Qwen3.8-Flash-Next IQ3_XXS): attention-mass@128099.70%(fp16/int8),99.67%(nvfp4).- Cross-variant
64Kheld-out (SC117 Swift 1.5 IQ3_Ssharing the same indexer SHA-256): attention-mass@128099.63%(fp16/int8),99.60%(nvfp4).
- Real-engine checks on AMD Radeon RX 9060 XT (
build/free,NVFP4vs native QSA):qsa_scan_bench --twindex 25(nq = 1):0.799 ms(0.90x) at 32K,1.155 ms(1.36x) at 128K,1.478 ms(1.82x) at 262K.Qwen3.8-Flash-Next IQ3_XXS(spec = 1):64K22.03 -> 22.37 tok/s(+1.5%, 48/48 greedy match),128K20.06 -> 21.75 tok/s(+8.4%),+330.3 MiBfree VRAM (+199expert slots).spec = 4(MTP): verify round73.4 -> 58.2 msat 64K (48/48 match) and56.3 -> 49.5 ms(+13.7%) at 262K (+330.3 MiBfree VRAM).- 128-row
--spec-followKL/PPL vs baseline:32Kmean_KL = 0.002924(99.22%top-1 match, PPL-0.231%),128Kmean_KL = 0.005005(98.44%top-1 match, PPL-0.555%).
Use with XeStrata
The XeStrata engine is available at https://github.com/MistVVK/XeStrata.
Place the .twx file in <data>/models/twindex/ (or pass its path/directory via XESTRATA_TWINDEX / XESTRATA_TWINDEX_DIR):
XESTRATA_TWINDEX=1 XESTRATA_TWINDEX_DIR=/path/to/twindex ./xestrata-engine ...
License and attribution
- Base model and license: Qwen3.8-Flash-Next by Qwen, Qwen Community License 1.0. https://huggingface.co/Qwen/Qwen3.8-Flash-Next.
- Twindex method: arXiv:2611.25078 ("Twindex: Index Cache Offloading with Coarse-to-Fine Selection for Long-Context Sparse-Attention Serving").
- Engine code: XeStrata, LGPL-3.0-or-later (https://github.com/MistVVK/XeStrata).
- Calibration script:
twindex_fit.pyin MistVVK/llm-weight-tools, 0BSD. - This is an unofficial calibration artifact and remains subject to the Qwen Community License 1.0.
Citation
Cite the original Qwen3.8-Flash-Next release and the Twindex paper (arXiv:2611.25078) when using this file.
Model tree for MistVVK/Qwen3.8-Flash-Next-Twindex
Base model
Qwen/Qwen3.8-Flash-Next