twindex
qsa
sparse-attention
xestrata

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,072 tokens: 32,766 pooled blocks Γ— 15,872 head-queries per layer across 12 QSA layers, D = 128 -> 64, Hadamard equilibration, reg = 1e-6): mean shared energy 41.0% (30.7%–56.2%), mean query-metric PCA variance explained 96.12%.
  • Held-out evaluation (M = 1,280; exact-score vs GPU sel_blocks 100.0000% over 1,416 + 1,536 + 1,536 queries):
    • 128K held-out (Qwen3.8-Flash-Next IQ3_XXS): attention-mass@1280 99.58% (fp16/int8), 99.51% (nvfp4).
    • 64K held-out (Qwen3.8-Flash-Next IQ3_XXS): attention-mass@1280 99.70% (fp16/int8), 99.67% (nvfp4).
    • Cross-variant 64K held-out (SC117 Swift 1.5 IQ3_S sharing the same indexer SHA-256): attention-mass@1280 99.63% (fp16/int8), 99.60% (nvfp4).
  • Real-engine checks on AMD Radeon RX 9060 XT (build/free, NVFP4 vs 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): 64K 22.03 -> 22.37 tok/s (+1.5%, 48/48 greedy match), 128K 20.06 -> 21.75 tok/s (+8.4%), +330.3 MiB free VRAM (+199 expert slots).
    • spec = 4 (MTP): verify round 73.4 -> 58.2 ms at 64K (48/48 match) and 56.3 -> 49.5 ms (+13.7%) at 262K (+330.3 MiB free VRAM).
    • 128-row --spec-follow KL/PPL vs baseline: 32K mean_KL = 0.002924 (99.22% top-1 match, PPL -0.231%), 128K mean_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

Citation

Cite the original Qwen3.8-Flash-Next release and the Twindex paper (arXiv:2611.25078) when using this file.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for MistVVK/Qwen3.8-Flash-Next-Twindex

Finetuned
(172)
this model

Paper for MistVVK/Qwen3.8-Flash-Next-Twindex