Skip to content

v0.5.1

Latest

Choose a tag to compare

@iMMIQ iMMIQ released this 04 Dec 09:08

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_v1 codec limits to 524,288 positions (exact FP32 YaRN phase formula, bit-exact orinfer package install roundtrip).
    • Extended TileLang-Ascend topk.merge_tree to sources ∈ {16, 32, 64, 128} with a 3-level UB merge tree (84 KiB ≤ 192 KiB), replacing multi-stage decode topk.merge chains and handling 512K sparse-index TopK selection in one fused kernel.
  • PacketActive & Zero-Length Guards + 912 MiB/card Indexer Workspace Aliasing:
    • Added opt-in PacketActive (active_guard) guards to topk.merge_tree, topk.local, and candidate.select_blocks, plus a zero-length UB fast path in topk.merge_tree so padded tail rows (N % 8 != 0) and ACL Graph captures (active=0) never feed stale scratch into VMS4V2.
    • Safely aliased 5 non-overlapping indexer workspaces (912 MiB/card) into batch.prefill.w4.workspace, raising 8× 910B3 idle free HBM after prewarming all 435 ACL Graphs from 11.04 GiB/card (v0.5.1-rc1) to 11.94 GiB/card (+375 MiB/card more free HBM than v0.5.0 262K).
    • Shipped new compact 512K A2 execution package 8771922f0432f11ae66284c4cb412214457efd05ed409c69ccfb51b760073dba.
  • Pipelined Multi-Bank Host KV Offload & Active-Pressure Throttling:
    • Eliminated redundant memset(0) zero-writes in HostPool::bank via alloc_zeroed.
    • Pipelined multi-bank D2H offload in Session::download_bank_regions using 8 MiB double-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 in evict_for_pressure (idle offload remains uncapped), recovering +6.7 s of NPU compute time in 240 s high-concurrency serving while keeping --kv-offload-mib active.
  • Drop-In Weight Compatibility with v0.5.0:
    • Zero weight shard changes from v0.5.0 (EP8-balanced W4 + FRACTAL_NZ W8 + host Engram tables are 100% byte-identical).
    • To upgrade an existing v0.5.0 model directory, install the v0.5.1 execution package and update cache/model.json to "execution_package": "8771922f0432f11ae66284c4cb412214457efd05ed409c69ccfb51b760073dba" and "max_context": 524288.

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):
    • 250 completed profiling requests (0 errors) — matches v0.5.0 262K (250 reqs) and +7 reqs (+2.9%) over v0.5.1-rc1 (243 reqs).
    • 5,302,652 prefill tokens (+0.57% vs. v0.5.0), 42,215 decode tokens (+1.12% vs. v0.5.0), 229.56 s compute (95.1% NPU utilization), 99.75% ACL Graph hit rate (3,635 hits / 9 misses / 0 evictions / 0 dynamic captures), 44.01% DSpark acceptance, 46.57 s warmup.
  • Quality & DSpark Parity:
    • Held-out 1,556-position teacher-forced evaluation vs. Official MXFP4+FP8 (prod HCCL): mean_nll = 1.6690 (Official 1.6699, ΔNLL = -0.00087), mean KL = 0.0232, argmax_match = 95.50%, top3_cover = 99.49%; test-chat-b8 prefill 20,619 tok/s.
    • Vision smoke test: HTTP 200 ("Red").
    • orinfer package install roundtrip: all 4 524,288-row RoPE tables materialized bit-exact.
  • Live 512K & 16-Concurrency Serving:
    • 518K Cold / Warm Multi-Depth NIAH (517,929 prompt tokens, needles at 15K / 217K / 341K / 492K): cold 19.10 s (27,111 tok/s), 4/4 exact recall; warm prefix hit 2.62 s, exact recall.
    • >512K Boundary Check: 517,890 + 6,459 > 524,288 cleanly rejected with HTTP 400.
    • 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,016 tokens): 186.09 s (31,308 tok/s aggregate prefill), 16/16 HTTP 200 & 16/16 exact recall, 0 OOM / 0 errors, 0 graph evictions.

Concurrency Envelope on 8× 910B3 (64 GiB/card, 10.44 GiB Net KV HBM)

  • Unshared active concurrency: 32 at ≤64K, 28 at 128K, 19 at 256K, 14–15 at ~364K, 10–11 at 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 — Orinfer aarch64 dist 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 tag v0.5.1.
  • SHA256SUMS — SHA-256 checksums for all release archives.