---
title: kimi-k3.1-pro-dspark-flare
canonical_url: "https://www.modelscope.cn/models/local-inference-lab/kimi-k3.1-pro-dspark-flare"
md_url: "https://www.modelscope.cn/models/local-inference-lab/kimi-k3.1-pro-dspark-flare.md"
repository: local-inference-lab/kimi-k3.1-pro-dspark-flare
last_updated: 2026-11-28
license: other
pipeline_tag: text-generation
tasks:
  - text-generation
base_model:
  - moonshotai/Kimi-K3.1-Pro
  - Inferact/Kimi-K3.1-Pro-DSpark
base_model_relation: finetune
parameters: 68.9M
tensor_type:
  - U8
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 17996
stars: 0
tags:
  - kimi
  - dspark
  - speculative-decoding
  - flare
  - sm120
---

# kimi-k3.1-pro-dspark-flare

> kimi-k3.1-pro-dspark-flare - local-inference-lab 在 ModelScope 开源的模型。Kimi K3.1 Pro with DSpark for Flare (TP16/DCP8 C8, prefill4096 Row-Shard BF16 v6, Vision TP16, RO=1)

local-inference-lab/kimi-k3.1-pro-dspark-flare 是 ModelScope 魔搭社区上的 68.9M 参数text-generation模型，采用 other 许可，基于 moonshotai/Kimi-K3.1-Pro、Inferact/Kimi-K3.1-Pro-DSpark 构建。

- **Repository**: local-inference-lab/kimi-k3.1-pro-dspark-flare
- **License**: other
- **Tasks**: text-generation
- **Parameters**: 68.9M
- **Base model**: moonshotai/Kimi-K3.1-Pro, Inferact/Kimi-K3.1-Pro-DSpark
- **Tags**: kimi, dspark, speculative-decoding, flare, sm120
- **Downloads**: 17996
- **Stars**: 0
- **Last updated**: 2026-11-28

Source: https://www.modelscope.cn/models/local-inference-lab/kimi-k3.1-pro-dspark-flare

---

# Kimi K3.1 Pro with DSpark for Flare (TP16/DCP8 C8, `prefill4096` Row-Shard BF16 `v6`, Vision TP16, `RO=1`)

This signed GB202 deployment packages **Kimi K3.1 Pro** with the **Inferact DSpark** speculative draft for **Hyperflare / Flare**, built from **100% pure upstream `main`** lossless BF16 optimizations (`flashinfer#153`, `hyperflare-recipes#62/#63/#71`, `hyperflare-inference#555` + `da752e07`). It serves up to **eight concurrent requests** (with four concurrent image slots, up to `vision65536` high-resolution images per request) on one Linux x86-64 host with sixteen 96 GB NVIDIA RTX PRO 6000 Blackwell Workstation GPUs connected as four consecutive GPU ranks per physical PCIe Gen5 switch.

Compared to the prior `v5` release, this `v6` release delivers faster **100% bit-exact lossless BF16** prefill across every prompt length (8K through 128K) and faster C4 decode:
- **Lossless BF16 prefill up to `4,906.0 tok/s` (`4,903.5 tok/s` mean @ 64K, `4,863.6 tok/s` @ 128K):** combines `flashinfer#153` (self-retiring `assembled` buffer + pipelined `ce_local` all-gather), `hyperflare-recipes#63` (switch-aware 2-hop posted-write DCP8 history push, `-34.4%` in `prefill4096`), `hyperflare-recipes#62` (row-sharded prefill down to `1024` tokens), and `hyperflare-recipes#71` (auxiliary-stream `_mix` + `sm_local` gather chaining across MoE windows and KDA layer boundaries).
- **Higher C4 concurrent decode (`375.67 tok/s` pooled, `93.92 tok/s/req`, peak batch `402.46 tok/s`)** and intermediate `batch=6` serving graphs (`107` graphs total).
- **Pure-BF16 Vision TP16 (`vision65536`):** `2,161` KV pages / `2,212,864` KV token slots / `108` snapshots (`max_model_len=1,048,576`).
- **PCIe Relaxed Ordering (`NVreg_EnablePCIERelaxedOrderingMode=1`)** + 4-switch all-push collectives + precision-preserving `--online-mxfp8-scope kda-input` (full BF16 on attention, MoE/shared-expert, vision, and routing layers).

Both `main` and `gb202` point to this identical TP16/DCP8 C8 deployment (pinned tag: [`kimi-k31-dspark-tp16-dcp8-c8-kda-v6`](https://huggingface.co/local-inference-lab/kimi-k3.1-pro-dspark-flare/tree/kimi-k31-dspark-tp16-dcp8-c8-kda-v6)).

## Recommended Host Driver Setting (PCIe Relaxed Ordering)

For full throughput on multi-switch PCIe Gen5 fabrics, enable PCIe Relaxed Ordering in the NVIDIA kernel driver (`/etc/modprobe.d/nvidia-ro.conf`):

```bash
options nvidia NVreg_EnablePCIERelaxedOrderingMode=1
```

Verify active state with `grep EnablePCIERelaxedOrderingMode /proc/driver/nvidia/params` (expected `1`).

## Run

Allow about 1.55 TB for the installed core plus download working space. Build the native CLI from upstream `NVIDIA/hyperflare-inference` at or after `da752e07` (required for 107-graph `batch=6` support and `DispatchRing` commit-before-launch on 41K–49K-node prefill graphs) using Git, Rust 1.95 with Cargo, a C/C++ toolchain, CMake, `protoc`, and OpenSSL development headers (tested on CUDA 13.5 / driver `620.70.10` and CUDA 13.2 toolkit):

```bash
set -eu
git clone --filter=blob:none https://github.com/NVIDIA/hyperflare-inference.git flare-runtime
git -C flare-runtime checkout --detach da752e0786c25b1510cf59c0b5dc8d8734d7262d
cargo build --release --locked --manifest-path flare-runtime/flare-cli/Cargo.toml --target-dir "$PWD/flare-build"
curl -fLsS https://huggingface.co/local-inference-lab/kimi-k3.1-pro-dspark-flare/resolve/gb202/publisher.json -o kimi-dspark-publisher.json

ulimit -Sn 65536
unset NCCL_GRAPH_FILE
export CUDA_DEVICE_ORDER=PCI_BUS_ID
"$PWD/flare-build/release/flare" run local-inference-lab/kimi-k3.1-pro-dspark-flare \
  --publisher-keys "$PWD/kimi-dspark-publisher.json" \
  --gpus 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 \
  --max-concurrency 8 --mtp-draft-tokens 7 --kv-cache-limit memory \
  --embedding-table-storage ram \
  --host 0.0.0.0 --port 8016 --served-model-name Kimi-K3.1-Pro-DSpark
```

Flare automatically selects the `gb202` branch. Signed by **Local Inference Lab, Inc.** (`local-inference-lab`, publisher fingerprint `937c0143f6856d3ee8ad164f62e3d804bd825d7a8750d0accb9a5849f703a8c1`). On first launch Flare verifies the signature against `publisher.json`. Pass `--max-concurrency 4` or `--max-concurrency 1` to cap active requests below 8.

```bash
curl -fsS http://127.0.0.1:8016/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"Kimi-K3.1-Pro-DSpark","messages":[{"role":"user","content":"Explain what a KV cache stores in two sentences."}],"tool_choice":"none","max_tokens":128}'
```

## Verified Native Benchmarks (TP16/DCP8 C8, `prefill4096` Row-Shard BF16 `v6`, `RO=1`)

Measured on sixteen 96 GB RTX PRO 6000 Blackwell GPUs (`NVreg_EnablePCIERelaxedOrderingMode=1`, driver `620.70.10`, GDDR7 `16,365 MHz`, `99.61%` mean GPU utilization, `399.9 W` mean / `448.7 W` max power) with default unrestricted GPU memory:

| Metric | Result | Notes |
|---|---:|---|
| **8K uncached prefill (`7,517` tok, mean)** | **`4,716.8 tok/s`** (`1.59 s` TTFT) | **`+1.5%`** vs `v5` (`4,648.2 tok/s`) · 100% lossless BF16 |
| **16K uncached prefill (`14,927` tok, mean)** | **`4,752.6 tok/s`** (`3.14 s` TTFT) | **`+2.1%`** vs `v5` (`4,655.6 tok/s`) · peak **`4,791.0 tok/s`** |
| **32K uncached prefill (`29,557` tok, mean)** | **`4,825.8 tok/s`** (`6.12 s` TTFT) | **`+3.4%`** vs `v5` (`4,667.8 tok/s`) · **`+41.2%`** vs `v4` (`3,416.8 tok/s`) |
| **64K uncached prefill (`59,007` tok, mean)** | **`4,903.5 tok/s`** (`12.03 s` TTFT) | **`+2.4%`** vs `v5` (`4,790.7 tok/s`) · peak **`4,906.0 tok/s`** |
| **128K uncached prefill (`117,907` tok, mean)** | **`4,863.6 tok/s`** (`24.24 s` TTFT) | Flat scaling to 128K (`-0.8%` vs 64K) via 2-hop DCP8 push (`#63`) |
| **8-request concurrent decode (pooled, 3 seeds)** | **`517.12 tok/s`** (`64.64/req`) | Peak batch **`526.14 tok/s`** |
| **4-request concurrent decode (pooled, 3 seeds)** | **`375.67 tok/s`** (`93.92/req`) | **`+3.1%`** vs `v5` (`364.24 tok/s`) · **`+51.7%`** vs DCP8 C4 baseline (`247.70 tok/s`) · peak **`402.46 tok/s`** |
| **3-seed Rust C1 decode (mean)** | **`149.87 tok/s`** | Peak **`155.24 tok/s`** |
| **9-request coding C1 decode (pooled)** | **`160.85 tok/s`** | Peak **`188.72 tok/s`** |
| **KV capacity (pages / token slots / snapshots)** | **`2,161` / `2,212,864` / `108`** | `107` serving graphs (incl. `batch=6` + `prefill1024..4096` row-shard + `vision65536`) |

All quality and structural gates passed:
- **Peer groups:** TP16/DCP8, `page_tokens=1024`, `latent_planes=384`, `reader_groups=[[0..7], [8..15]]`
- **Query regression:** **16/16** (`1,344/1,344` prefix tokens matched)
- **8-request concurrent text:** **768/768** (`peak_active=8`)
- **4-request concurrent image (Vision TP16):** **4/4** (`red / blue / green / yellow`, `peak_active=4`)

Full raw measurements: [benchmarks/native.json](benchmarks/native.json) · [benchmarks/eight-request-decode.json](benchmarks/eight-request-decode.json) · [benchmarks/four-request-decode.json](benchmarks/four-request-decode.json) · [benchmarks/query-regression.json](benchmarks/query-regression.json) · [benchmarks/concurrent-text.json](benchmarks/concurrent-text.json) · [benchmarks/concurrent-image.json](benchmarks/concurrent-image.json)

## Key Optimizations & Architecture

- **100% Pure Upstream `main` Stack:** [`NVIDIA/hyperflare-inference@da752e07`](https://github.com/NVIDIA/hyperflare-inference/tree/da752e0786c25b1510cf59c0b5dc8d8734d7262d), [`local-inference-lab/hyperflare-recipes@b4307767`](https://github.com/local-inference-lab/hyperflare-recipes/tree/b43077677d7332f4dcef26c4354eec60f84e83fc), and [`local-inference-lab/flashinfer@5d2a7107`](https://github.com/local-inference-lab/flashinfer/tree/5d2a71079a2bab6bcbd1b49a060d0f3447bf37c0) ([Rebuild guide](rebuild/README.md) · [Source manifest](rebuild/source.json) · [Tracking issue #398](https://github.com/NVIDIA/hyperflare-inference/issues/398)).
- **Lossless BF16 `prefill1024..4096` `--row-shard-prefill` (`#62`, `#71`):** auxiliary-stream residual mix + `sm_local` gather chaining across MoE windows and KDA layer boundaries, keeping `ce_local` over compute-heavy GEMM/KDA windows.
- **Self-retiring `PCIeIslandRS` & Pipelined `ce_local` AG (`flashinfer#153`):** retires `assembled` before the final 6-peer rendezvous, eliminates redundant entry barriers, and overlaps `ce_local` all-gather output copies across steps 0–3.
- **2-Hop Switch-Aware DCP8 History Push (`hyperflare-recipes#63`):** posted-write (`MWr`) intra-switch + cross-switch push for both latent and planar FP8 index histories (zero extra VRAM, dynamic fallback above 131K), keeping prefill flat from 64K (`4,903.5 tok/s`) to 128K (`4,863.6 tok/s`).
- **Vision TP16 + Precision-Preserving `kda-input` MXFP8 (`107` graphs, `6,682` kernels):** full BF16 on attention, MoE/shared-expert, vision, and routing layers; NVFP4 draft head, FP8 Markov head.

## Verify

Signed core ID: `a0046b7e4a071bee59843b6e52328a9a329328e2034ec7878e2d15355a677224`. Checksums for all 1,569 serving files: [checksums.sha256](checksums.sha256).

```bash
core=$("$PWD/flare-build/release/flare" download local-inference-lab/kimi-k3.1-pro-dspark-flare \
  --offline --revision gb202 --tensor-parallel 16 --publisher-keys "$PWD/kimi-dspark-publisher.json")
"$PWD/flare-build/release/flare" inspect --json --publisher-keys "$PWD/kimi-dspark-publisher.json" "$core" \
  | python3 -c 'import json, sys; c = json.load(sys.stdin)["core"]; print(c["core_id"], c["signatures_verified"])'
```

[Model license](LICENSE) · [Flare notices](licenses/flare/NOTICE) · [FlashInfer notices](licenses/flashinfer/NOTICE)
