Instructions to use local-inference-lab/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 local-inference-lab/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, Full 65,536-Patch Vision, 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-v65536-20261125, 721.82 GiB) |
Serve directly via native flare run without Python, Torch, compilation, or autotuning |
What's New (gb202-tp8-dcp8-c4-dspark-kda-all-v65536-20261125)
- Full
65,536-patch MoonViT vision restored (vision65536, 12.8 MP): Replaces the earlier16,384-patch cap with the full base-model MoonViT patch catalog (256 / 1,024 / 4,096 / 16,384 / 65,536patches). Native 4K screenshots (3840x2160), 12 MP 4:3 photos (4032x3024), and full 12.8 MP inputs (3584x3584= exact65,536patches /16,384image tokens) all run natively at+120.00 MiB/GPUretained VRAM while still keeping >1.01M shared physical KV tokens. --online-mxfp8-scope kda-allBF16 preservation: Unlike the legacy20261108package (which quantized DSA attention, all 92 shared experts, and all 92 routed latent projections under--online-mxfp8-scope all), this core keeps 100% pure BF16 on all 24 DSA layers + indexers, all 92shared_experts, all 92routed_expert_down/up, routers, Layer 0 dense MLP,embed_tokens, andlm_head; only KDA input + KDAo_proj, TP8 MoonViT, and DSpark draft body use MXFP8.
| Aspect | Legacy gb202 (20261108) |
Updated gb202 (gb202-tp8-dcp8-c4-dspark-kda-all-v65536-20261125) |
|---|---|---|
| Online MXFP8 scope | all (DSA attention, shared experts, routed latent up/down, KDA quantized) |
kda-all — 100% pure BF16 on DSA/indexers, 92 shared experts, 92 routed latent up/down, routers, Layer 0 MLP, embed & lm_head |
| Speculative draft | DFlash2 (k=7, MXFP8 head) |
Inferact DSpark (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, full 65,536 patches / 12.8 MP, native 4K & 12 MP, 4 concurrent images) |
| Routed EXL3 MoE | Legacy trellis dispatch + unpacked rotations | SM120 trellis_t256 W2A16 decode + MXFP8 prefill roofline (96.2–96.9% dlut_smem) + bit-exact packed gate+up rotations (-112.2 MiB/GPU) |
| TP8 PCIe collectives | Unfused AllGatherPair + KimiTopK16 and unfused AR |
GatherRouterTopKTP8 (3.28x) + TP8RoMix7168 / TP8RoResNorm7168 (-184 launches/round) + 256-row ConcurrentChunkedAllReduce (1024+1024 overlap) |
| Context & physical KV | 262,144 max context |
1,048,576 (1M) max context, 1,018,880 shared physical KV tokens (995 pages x 1,024, 25 snapshots), 93500.54 MiB/GPU retained VRAM |
| C4 pooled decode | 158.45 tok/s (39.61/req) |
240.85 tok/s (60.21/req, +52.0%) |
| 32K cold prefill | 1,951.16 tok/s |
2276.7 tok/s (+16.7%) |
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 d843a87eb083008210038e04444e34bb4c803a312769c2fcd568708218c75416).
Verified Native Benchmarks (8x RTX PRO 6000 Blackwell, RO=1, 16,365 MHz)
Measured via native flare run (99.88% mean GPU utilization, 456.5 W mean / 509.9 W max power, recipe sampling defaults temperature=1.0, top_p=0.95):
| Workload | Result | Notes |
|---|---|---|
| 4-request concurrent decode (pooled) | 240.85 tok/s (60.21/req) |
+52.0% vs. legacy gb202 (158.45 tok/s) |
| 3-seed Rust C1 decode (mean) | 113.06 tok/s |
Seeds 359/431/533: 110.32 / 111.86 / 116.99 tok/s |
| 9-request coding C1 decode (pooled) | 111.04 tok/s |
Peak 126.62 tok/s |
| 32K uncached prefill (mean) | 2276.7 tok/s |
12.98 s TTFT on 29,560 tokens (+16.7% vs. legacy 1,951.16 tok/s) |
| Physical KV capacity | 1,018,880 tokens |
995 pages x 1,024 tokens, 25 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) - High-resolution
vision65536tests (3/3):3840x2160(10,764 img tok,red),4032x3024(15,552 img tok,green),3584x3584(16,384 img tok,blue) - 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: d843a87eb083008210038e04444e34bb4c803a312769c2fcd568708218c75416 · Primary model.safetensors SHA-256: 1f42aff3224fd6777eb899420a67b921e866f1659e20540b241397e37bae5866 · LICENSE
- Downloads last month
- 1,526
Model tree for local-inference-lab/Kimi-K3.1-Pro-EXL3-2bit
Base model
Inferact/Kimi-K3.1-Pro-DSpark