Instructions to use Infinity-io/Kimi-K3.1-Pro-EXL3-2bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Trellis
How to use Infinity-io/Kimi-K3.1-Pro-EXL3-2bit with Trellis:
# 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
Kimi-K3.1-Pro EXL3 2-bit + DSpark (TP8/DCP8, kda-all BF16-Preserving, PCIe RO=1)
This repository contains two representations of the same EXL3 2-bit routed-expert quantization:
| Revision | Contents | Intended use |
|---|---|---|
main |
Immutable TP-independent exl3-v1 raw checkpoint (742.235 GiB, non-expert tensors retain source BF16/FP32 bytes) |
Prepare or re-export with an EXL3-aware runtime |
gb202 |
Production-signed Flare package for eight 96 GB SM120 GPUs (pinned tag gb202-tp8-dcp8-c4-dspark-kda-all-20261123, 721.81 GiB) |
Serve directly via native flare run without Python, Torch, compilation, or autotuning |
What's New vs. Previous gb202 Package (20261108)
The previous gb202 release (gb202-tp8-c4-p3072-dflash2-k7-20261108) enabled broad --online-mxfp8 (all scope) and DFlash2 with a 262,144-token context limit, converting sensitive DSA attention layers, all 92 shared experts, and all 92 routed latent up/down projections from BF16 to MXFP8.
This updated release replaces gb202 with a precision-preserving, SM120-roofline TP8/DCP8 + DSpark package:
| Aspect | Prior gb202 (20261108) |
Updated gb202 (gb202-tp8-dcp8-c4-dspark-kda-all-20261123) |
|---|---|---|
| Online MXFP8 scope | --online-mxfp8-scope all (DSA attention, shared experts, routed latent up/down, KDA all quantized to MXFP8) |
--online-mxfp8-scope kda-all — 100% pure BF16 preserved on all 24 DSA layers + indexers, all 92 shared_experts, all 92 routed_expert_down/up, routers, Layer 0 dense MLP, embed_tokens, and lm_head; ONLY KDA input + KDA o_proj + Vision encoder quantized to MXFP8 |
| Speculative draft | DFlash2 (k=7, MXFP8 draft head) |
Inferact DSpark sliding-window (k=7, --mtp-only, body MXFP8, head NVFP4, markov_w1 FP8 -79.4 MiB/GPU) |
| Vision encoder | Replicated BF16 (853.3 MiB/GPU) |
TP8 sharded + MXFP8 (71.1 MiB/GPU, up to 16,384 patches / 3.2MP HD, 4 concurrent images) |
| Routed EXL3 MoE | Legacy trellis dispatch + unpacked FP16 rotations | SM120 trellis_t256 W2A16 decode + MXFP8 prefill roofline (96.2–96.9% of 1,098 GB/s dlut_smem) + bit-exact packed gate+up rotations (-112.2 MiB/GPU) |
| TP8 PCIe collectives | Unfused AllGatherPair + KimiTopK16 and unfused oneshot AR + Triton epilogues |
GatherRouterTopKTP8 (3.28× faster routing) + TP8RoMix7168 / TP8RoResNorm7168 (-184 launches/round, zero extra IPC VRAM) + 256-row ConcurrentChunkedAllReduce (1024+1024 overlap) |
| Context & physical KV | 262,144 max context (1,281,024 shared KV tokens) |
1,048,576 (1M) max context, 1,105,920 shared physical KV tokens (1,080 pages × 1,024, 28 snapshots), 93,380.54 MiB/GPU retained VRAM |
| C4 pooled decode | 158.45 tok/s (39.61/req) |
235.30 tok/s (58.82/req, +48.5%) |
| 32K cold prefill | 1,951.16 tok/s |
2,235.14 tok/s (+14.6%) |
Recommended Host Driver Setting (PCIe Relaxed Ordering)
For full SM120 PCIe Gen5 collective throughput, enable PCIe Relaxed Ordering in /etc/modprobe.d/nvidia-relaxed-ordering.conf:
options nvidia NVreg_EnablePCIERelaxedOrderingMode=1
Verify active state with grep EnablePCIERelaxedOrderingMode /proc/driver/nvidia/params (expected 1).
Run the Prepared Package (gb202)
Requirements: Linux x86-64, eight 96 GB NVIDIA RTX PRO 6000 Blackwell Workstation GPUs (SM120) with P2P enabled, CUDA 13.2, NVIDIA driver 615.71.10, and ~750 GiB disk for the package cache.
curl -fLsS https://huggingface.co/local-inference-lab/Kimi-K3.1-Pro-EXL3-2bit/resolve/gb202/publisher.json -o lil-publisher.json
ulimit -Sn 65536
export CUDA_DEVICE_ORDER=PCI_BUS_ID
flare run local-inference-lab/Kimi-K3.1-Pro-EXL3-2bit \
--revision gb202 \
--publisher-keys "$PWD/lil-publisher.json" \
--gpus 0,1,2,3,4,5,6,7 \
--max-concurrency 4 --mtp-draft-tokens 7 --kv-cache-limit memory \
--embedding-table-storage ram --prefix-cache-memory 64G --prefix-cache-disk-limit 0 \
--host 127.0.0.1 --port 8016 --served-model-name Kimi-K3.1-Pro-DSpark
Signed by Local Inference Lab, Inc. (local-inference-lab, publisher fingerprint 937c0143f6856d3ee8ad164f62e3d804bd825d7a8750d0accb9a5849f703a8c1, signed core ID 889c869033b0bf295a0e11ed8063d2d27ec83a13c01166d5f9018ac9d6a274d1).
Verified Native Benchmarks (8× RTX PRO 6000 Blackwell, RO=1, 16,365 MHz)
Measured via native flare run (99.80% mean GPU utilization, 421.0 W mean / 470.2 W max power, recipe sampling defaults temperature=1.0, top_p=0.95):
| Workload | Result | Notes |
|---|---|---|
| 4-request concurrent decode (pooled) | 235.30 tok/s (58.82/req) |
+48.5% vs. prior gb202 (158.45 tok/s); exact M=16 round 35.78 ms |
| 3-seed Rust C1 decode (mean) | 112.13 tok/s |
Seeds 359/431/533: 115.15 / 104.98 / 116.26 tok/s |
| 9-request coding C1 decode (pooled) | 110.65 tok/s |
Peak 125.86 tok/s; exact M=4 round 19.17 ms |
| 32K uncached prefill (mean) | 2,235.14 tok/s |
13.22 s TTFT on 29,557 tokens (+14.6% vs. prior 1,951.16 tok/s, 1.18× overlap) |
| Live long-output Tetris coding session | 147.97 tok/s avg incl. TTFT |
24,584 completion tokens (incl. reasoning) in 166.1 s; peak 260.41 tok/s |
| Physical KV capacity | 1,105,920 tokens |
1,080 pages × 1,024 tokens, 28 snapshots, 1,048,576 max sequence length |
All qualification gates passed:
- Query regression:
16/16(1,344/1,344exact prefix tokens matched) - 4-request concurrent text:
384/384(peak_active=4) - 4-request concurrent image (MoonViT TP8 + MXFP8):
4/4(red,blue,green,yellow) - Greedy probes:
3/3
Raw measurements & rebuild specs: benchmark-results.json · checksums.sha256 · rebuild/README.md · rebuild/source.json
Upstream Pull Requests & Raw Checkpoint
- Tracking issue: https://github.com/local-inference-lab/hyperflare-recipes/issues/13
- FlashInfer / b12x: https://github.com/local-inference-lab/flashinfer/pull/134 · https://github.com/local-inference-lab/flashinfer/pull/135
- Core Ignition (
NVIDIA/hyperflare-inference): https://github.com/NVIDIA/hyperflare-inference/pull/482 - Recipes (
local-inference-lab/hyperflare-recipes): https://github.com/local-inference-lab/hyperflare-recipes/pull/12 - Immutable raw
exl3-v1checkpoint (main):38fbbe2ba5d46141eaa4d662c128bdf8d810746b
Verify Signature & Checksums
core=$(flare download local-inference-lab/Kimi-K3.1-Pro-EXL3-2bit --offline --revision gb202 --tensor-parallel 8 --publisher-keys "$PWD/lil-publisher.json")
flare inspect --json --publisher-keys "$PWD/lil-publisher.json" "$core" \
| python3 -c 'import json, sys; c = json.load(sys.stdin)["core"]; print(c["core_id"], c["signatures_verified"])'
Expected core_id: 889c869033b0bf295a0e11ed8063d2d27ec83a13c01166d5f9018ac9d6a274d1 · Primary model.safetensors SHA-256: d3e88acad382d587b27e6254dea241c21fe874ac07f6dddabdbdefda3580ddea · LICENSE
- Downloads last month
- 22
Model tree for Infinity-io/Kimi-K3.1-Pro-EXL3-2bit
Base model
Inferact/Kimi-K3.1-Pro-DSpark