Buckets:
NanoSeedLM documentation
This is the catalog of all pages. Each line gives a link and one sentence about the page. The README gives the purpose and the trade-offs. log.md gives the history.
Concepts
What the methods are, how they work, and their current numbers.
- SeedLM: weights as seeds of an LFSR, the seed search, the kernels, and why seeds are slower.
- Multi-head latent attention: the conversion from GQA to MLA, the cache, the attention modes, and the quality cost.
- The KV cache: cache sizes, the q8 and rq4 caches of the MLX loader, the fp8 and fp4 caches of the engine, and the longest context for each Mac.
- Metal and CUDA parity: how the two engines stay the same, where they differ, and a feature matrix.
Guides
How to do a task.
- Build and test: requirements, build commands and tests for macOS, Windows and Linux.
- Run and serve:
nslm-chat, and thenslm-serveAPI, batching and caches. - The MLX loader: how to run the models in oMLX and mlx-lm, and how to set long contexts.
- NVIDIA GPUs: how the CUDA engine fits the model on a small GPU.
- Make a model folder: calibration, seed search and packing.
Reference
Facts to look up.
- Models: the published models, their lineage, and which runtimes load them.
- Command-line tools: each tool and its use.
- Environment variables: each variable, its default and its use.
- The model folder format: tensor encodings, shard layout and MLA entries.
- Source layout: the folders of the repository.
- Related work: papers and projects on seeds and computed weights.
Plans
Work that is not done yet, with its gates and hypotheses.
- 2026-11-04: SeedLM packs for Qwen3.8-Flash-Next: steps, gates, costs and the PLE table choice, for a PC with a 16 GB GPU.
- 2026-11-04: A high seed tier that follows the routing: draft. The engine keeps the session's hot experts in P4 and the rest in S3 or P3.
- 2026-11-04: Three seed packs of Qwen3.8-Flash-Next by RAM size: packs for 64, 96 and 128 GB of RAM and a 12 GB GPU. Each must match an Unsloth V3.1 pack.
Results
Dated measurements. Each page gives the result, its status, the setup and the data.
- 2026-10-06: GQA seed model against BF16 and Q4: seeded experts against affine Q4 experts on the original model.
- 2026-10-07: CUDA and Metal measured side by side: RTX 4080 against M4 Max.
- 2026-10-08: MLA kernels on Metal and CUDA: MLA attention speed against GQA.
- 2026-10-08: MLA projections in BF16, Q8, Q4 and seeds: encodings for the
MLA projections, GPTQ, and
v_up. - 2026-10-08: Engine KV cache codes:
--kv q8,fp8andfp4. - 2026-10-10: Seeds against affine quantization (R-02): P4 and P3 seeds against oMLX oQe, on GQA and MLA, with pre-registered hypotheses.
- 2026-10-11: A fused MLA prompt kernel in the MLX loader: prompt speed at 32K to 256K, memory, and accuracy, on MLA and hybrid models.
- 2026-11-04: Hadamard rotation and P = 4 seeds on Qwen3.8-Flash-Next: weight error of 4 experts, with and without rotation and activation weighting.
- 2026-11-04: The seed search over the Qwen3.8-Flash-Next experts: P = 4 and P = 3 on 4 RTX PRO 6000 GPUs, errors, costs and pack sizes.
- 2026-11-04: The Qwen3.8-Flash-Next seed packs against the 4-bit MLX model: KL divergence, top-1 agreement and perplexity on wikitext-2.
- 2026-11-04: Qwen3.8-Flash-Next-NanoSeedLM-P3 on the RTX 4080: decode speed with experts in host memory, a VRAM expert cache, and streamed experts.
- 2026-11-04: Qwen3.8-Flash-Next-NanoSeedLM-P3 in mlx-vlm on the M4 Max: decode speed and peak memory against a 4-bit affine quantization.
- 2026-11-04: The prompt time of Qwen3.8-Flash-Next on the CUDA engine, by stage: the PLE prefetch and the grouped expert GEMMs. 1,024 tokens take 7.5 s, not 15.4 s.
- 2026-11-04: Prompt rows of 1,024 and a decode expert prediction: 151 to 541 tokens per second on a 3,703-token prompt. The prediction made decode 4% slower.
- 2026-11-04: CUDA graphs for Qwen3.8-Flash-Next decode: P3 decode 10.6% faster on an RTX PRO 6000, with the same text.
- 2026-11-04: Expert cache policies for Qwen3.8-Flash-Next decode: LRU beats LFU and a hot set. The optimum would halve the misses.
- 2026-11-04: Expert cache misses of MTP verify windows: verify windows of 2 to 4 tokens do not reduce the misses for each token.
- 2026-11-04: Qwen3.8-Flash-Next decode with affine, P4 and P3 experts: P3 46.1, affine 42.4, P4 40.0 tokens per second on one GPU.
- 2026-11-04: Layer-major prompt passes for Qwen3.8-Flash-Next: 549 to 977 tokens per second on a 15,922-token prompt.
- 2026-11-04: Seed layouts against Unsloth's tensors on one layer: 3-bit seeds have 16% more weighted error than IQ3_XXS. Gate G6 fails.
- 2026-11-04: Expert use by text domain: a hot third of the experts serves 80% to 93% of its own text's router choices, and 20% to 63% of another domain's.
- 2026-11-04: Seed packs and Unsloth packs against BF16: P4 0.0408 at 4.50 bits is on Unsloth's curve. P3 0.0600 at 4.00 bits is 18% above it. Gate G5 passes.
- 2026-11-04: Hybrid P3 / P4 seed packs: at 4.17 bits, 0.054 with a
random or
down_projthird in P4, 0.0450 with the in-domain hot third. - 2026-11-04: 3-bit seeds (S3) for the 64 GB class: S3 alone 0.142, twice UD-IQ3_XXS. With the text's own hot third in P3, 0.0765 at 3.35 bits.
- 2026-11-04: A high seed tier that follows the routing: a simulation. At 10.4 GB the tier serves 64% to 71% of router choices and loads 3 to 5 experts for each token.
For contributors and agents
Xet Storage Details
- Size:
- 7.27 kB
- Xet hash:
- aa801f0e233ad3e8ca89652d08720ae575c5810f9043d9b964a02782088e4759
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.