Repository navigation
Orinfer v0.5.1 unlocks a 512K (524,288 tokens) context window for DeepSeek-V4.1 Flash-1017 W4A8 on 8× Ascend 910B3 (TP8, CANN 9.2) while matching v0.5.0's 250-request Mini-Weka throughput, increasing idle free HBM by +375 MiB/card over v0.5.0 (11.94 GiB/card vs. 11.57 GiB/card), and preserving 100% drop-in weight compatibility with v0.5.0.
Highlights
- 512K Context Unlocked (
262,144 → 524,288):- Raised Ascend plan validation, batch planning, and
rope_f32_v1codec limits to524,288positions (exact FP32 YaRN phase formula, bit-exactorinfer package installroundtrip). - Extended TileLang-Ascend
topk.merge_treetosources ∈ {16, 32, 64, 128}with a 3-level UB merge tree (84 KiB ≤ 192 KiB), replacing multi-stage decodetopk.mergechains and handling 512K sparse-index TopK selection in one fused kernel.
- Raised Ascend plan validation, batch planning, and
PacketActive& Zero-Length Guards +912 MiB/cardIndexer Workspace Aliasing:- Added opt-in
PacketActive(active_guard) guards totopk.merge_tree,topk.local, andcandidate.select_blocks, plus a zero-length UB fast path intopk.merge_treeso padded tail rows (N % 8 != 0) and ACL Graph captures (active=0) never feed stale scratch intoVMS4V2. - Safely aliased 5 non-overlapping indexer workspaces (
912 MiB/card) intobatch.prefill.w4.workspace, raising 8× 910B3 idle free HBM after prewarming all 435 ACL Graphs from11.04 GiB/card(v0.5.1-rc1) to11.94 GiB/card(+375 MiB/cardmore free HBM thanv0.5.0262K). - Shipped new compact 512K A2 execution package
8771922f0432f11ae66284c4cb412214457efd05ed409c69ccfb51b760073dba.
- Added opt-in
- Pipelined Multi-Bank Host KV Offload & Active-Pressure Throttling:
- Eliminated redundant
memset(0)zero-writes inHostPool::bankviaalloc_zeroed. - Pipelined multi-bank D2H offload in
Session::download_bank_regionsusing8 MiBdouble-buffered pinned slabs instead of synchronous per-2 MiB-page waits. - Added an adaptive
≤0.5%active-serving duty-cycle cap on synchronous pressure offloads inevict_for_pressure(idle offload remains uncapped), recovering+6.7 sof NPU compute time in 240 s high-concurrency serving while keeping--kv-offload-mibactive.
- Eliminated redundant
- Drop-In Weight Compatibility with
v0.5.0:- Zero weight shard changes from
v0.5.0(EP8-balanced W4 +FRACTAL_NZW8 + host Engram tables are 100% byte-identical). - To upgrade an existing
v0.5.0model directory, install thev0.5.1execution package and updatecache/model.jsonto"execution_package": "8771922f0432f11ae66284c4cb412214457efd05ed409c69ccfb51b760073dba"and"max_context": 524288.
- Zero weight shard changes from
8× Ascend 910B3 Verification Summary
- Frozen 240 s Mini-Weka Replay (
concurrency=16,--mtp-drafts auto,--graph full,--prefix-cache-mib 8192,--kv-offload-mib 262144,seed=20261002):250completed profiling requests (0errors) — matchesv0.5.0262K (250reqs) and+7reqs (+2.9%) overv0.5.1-rc1(243reqs).5,302,652prefill tokens (+0.57%vs.v0.5.0),42,215decode tokens (+1.12%vs.v0.5.0),229.56 scompute (95.1%NPU utilization),99.75%ACL Graph hit rate (3,635hits /9misses /0evictions /0dynamic captures),44.01%DSpark acceptance,46.57 swarmup.
- Quality & DSpark Parity:
- Held-out 1,556-position teacher-forced evaluation vs. Official MXFP4+FP8 (prod HCCL):
mean_nll = 1.6690(Official1.6699,ΔNLL = -0.00087),mean KL = 0.0232,argmax_match = 95.50%,top3_cover = 99.49%;test-chat-b8prefill20,619 tok/s. - Vision smoke test: HTTP
200("Red"). orinfer package installroundtrip: all 4524,288-row RoPE tables materialized bit-exact.
- Held-out 1,556-position teacher-forced evaluation vs. Official MXFP4+FP8 (prod HCCL):
- Live 512K & 16-Concurrency Serving:
- 518K Cold / Warm Multi-Depth NIAH (
517,929prompt tokens, needles at15K / 217K / 341K / 492K): cold19.10 s(27,111 tok/s), 4/4 exact recall; warm prefix hit2.62 s, exact recall. - >512K Boundary Check:
517,890 + 6,459 > 524,288cleanly rejected with HTTP400. - 16-Concurrency Shared 414K Prefix:
5.98 s, 16/16 HTTP 200 & 16/16 exact recall. - 16-Concurrency Mixed (
2×361K + 4×64K + 10×8K):34.15 s, 16/16 HTTP 200 & 16/16 exact recall. - 16-Concurrency Unshared Ultra-Long (
16×~364K,5,826,016tokens):186.09 s(31,308 tok/saggregate prefill), 16/16 HTTP 200 & 16/16 exact recall,0OOM /0errors,0graph evictions.
- 518K Cold / Warm Multi-Depth NIAH (
Concurrency Envelope on 8× 910B3 (64 GiB/card, 10.44 GiB Net KV HBM)
- Unshared active concurrency:
32at ≤64K,28at 128K,19at 256K,14–15at ~364K,10–11at full 512K (984 MiB/req/card; excess requests queue cleanly without OOM). - Shared 512K prefix concurrency: up to the full
32-slot active cap via VMM 2 MiB page sharing.
Assets
orinfer-v0.5.1-linux-aarch64.tar.xz— Orinferaarch64dist binary (v0.5.1), docs, and offline build tools.orinfer-exec-deepseek-v41-flash-1017-w4a8-ascend910b-v0.5.1.tar.xz— Compact 512K A2 W4A8 execution package (8771922f0432f11ae66284c4cb412214457efd05ed409c69ccfb51b760073dba).orinfer-v0.5.1-source.tar.xz— Exact source snapshot at tagv0.5.1.SHA256SUMS— SHA-256 checksums for all release archives.