Skip to content

v0.5.0

Choose a tag to compare

@iMMIQ iMMIQ released this 03 Dec 01:34
· 4 commits to main since this release

Orinfer v0.5.0 delivers a major performance and architecture milestone for DeepSeek-V4.1 Flash-1017 W4A8 on 8× Ascend 910B3 (TP8, CANN 9.2) alongside decoupled async API serving, backend-split Rust workspace packaging, and a Rust 1.100.0 toolchain upgrade.

On the frozen 240s Mini-Weka replay (concurrency=16, seed=20261002), v0.5.0 nearly doubles end-to-end throughput over v0.4.6—climbing from 130 → 250 / 249 / 250 completed profiling requests (+92.3% vs. v0.4.6, +242.5% vs. v0.4.0 baseline 73) with 0 errors, cutting warmup wall time from 99.44 s → 46.47 s (−53.3%), and increasing committed decode output from 22,656 → 41,728 tokens (99.2% ACL Graph hit rate, 0 graph/prefix evictions).

Weight Format Notice (EP8-Balanced & INT8 FRACTAL_NZ W8 Shards): v0.5.0 preserves the unrotated activation-calibrated weight values introduced in v0.4.6 (SmoothQuant + 262K Act-Order Hessian-GPTQ + L15/L39 W8), applies lossless EP8 load-balanced expert placement across all 40 MoE layers (80 GPU W4 shards, weights/shared/model-common.safetensors, and vision.safetensors router biases), and repacks the 24 INT8 W8 shards (weights/gpu/rank-0{0..7}/layer-{15,39}-w8.safetensors and weights/dspark/rank-0{0..7}-layers-40-42.safetensors) into native Ascend FRACTAL_NZ layout. All 96 host Engram table shards (weights/host/*, ~206 GiB) plus weights/shared/embedding.safetensors and weights/dspark/{embedding,shared}.safetensors (99 shards / ~209 GiB total) remain byte-identical and can be hardlinked from v0.4.6 before downloading updated shards from immiq/DeepSeek-V4.1-Flash-1017-Orinfer-A2-W4A8 (main).

Highlights

Ascend 910B3 (A2, TP8, CANN 9.2) — ~250 Mini-Weka Kernels, M=6144 Prefill & Runtime Hardening

  • M=6144 Prefill & SP8 Overlap: Expands prefill capacity to M=6144 with circular SWA storage, disjoint workspace aliasing, FP32 compressor SP8 sharding, 8-rank sharded Layer-1 Engram H2D + HCCS AllGather, Layer-14 engram14 overlap, and Fork/Switch/Join stream overlaps.
  • Zero-TPipe Cube & Fused Vector Kernels: Introduces zero-TPipe L1→L0→Mmad pipelined Cube primitives (cube_gemm.h, indexer_fast.h, route_mask.h), 4-stage BF16 dense.projection, explicit-sync pipelined Cube QK+PV attention_fused.selected_int8 (with Wave 13 balanced_ctas=2 P[2] tuning), fused engram.gate_bf16, fused Indexer Key/Query RoPE+Quant+Partition, dual-output norm_quant_dual, and native INT8 FRACTAL_NZ grouped matmul support for L15/L39 and DSpark L40-L42.
  • Runtime, DSpark & Memory Reliability: Adds Granlund-Montgomery 64-bit FastMod Engram hashing, pre-faulted SplitPlanes pooling, same-bucket DSpark MTPVarlen slot reallocation, deferred/piggybacked prefix evictions, and hardened DSpark rollback, host prefix offload/restore, eviction metrics, and VMM/OOM guards.

API Server, Multi-Model Manager & Serving Stability

  • Decoupled Async Pipeline: Moves detokenization, O(N) incremental tool-call parsing, logprobs alignment, and SSE/JSON serialization off the GPU owner thread; adds unified http.rs (ApiError, constant-time Bearer auth, RequestId, lock-free Prometheus counters), bounded LRU Grammar/Schema caches, pooled async remote image prefetch, raw audio forwarding (fixing 24 MiB HTTP 413), and concurrent encoder micro-batching.
  • Lifecycle & Streaming Fixes: Fixes async EOS completion, prompt_tokens preservation in the async postprocessor, disconnect cancellation, response buffer scaling, and graceful SIGTERM drain.

Engine Architecture, Packaging, CUDA & Dependencies

  • Backend-Split Workspace & Faster Releases: Splits orinfer-engine into orinfer-engine-core, orinfer-cuda, orinfer-ascend, and a feature-gated facade (--no-default-features --features cuda|ascend); adds the single-CGU dist build profile, standalone orinfer-v0.5.0-source.tar.xz archive, deterministic parallel xz packaging, and tools/dev/linux-cc.sh to bypass CANN BiSheng ld.lld.
  • CUDA SM87 (Orin): Includes Flash-Next Orin prefill/decode kernel, NEON input, and lookup/graph runtime optimizations (119 Mini-Weka) and streaming QSA selection; CUDA execution packages are published separately from Jetson Orin.
  • Toolchain & 7-Day Dependency Audit: Upgrades pinned Rust toolchain from 1.98.1 → 1.100.0 and refreshes mature Cargo/Python/CI dependencies (444 releases verified under the 7-day maturity policy).

Release Assets & Execution Package Digest

This release packages the orinfer aarch64 engine binary, standalone source tarball, and the DeepSeek-V4.1 Ascend 910B execution package:

Asset Target Schema Digest
orinfer-v0.5.0-linux-aarch64.tar.xz Linux aarch64 (glibc >= 2.34) — Engine binary + offline tools
orinfer-v0.5.0-source.tar.xz Source archive (git archive) — Exact tagged revision
orinfer-exec-deepseek-v41-flash-1017-w4a8-ascend910b-v0.5.0.tar.xz Ascend 910B (CANN 9.2) 1 (shared-json-v1 + rope_f32_v1) 01b9852ebd2bfbc1a141443339c6d00ccfda1ec1293d650752c0903b59537a1b

Verification Summary

  • Frozen 240s Mini-Weka Replay (8× Ascend 910B3 TP8, concurrency=16, seed=20261002):
    • 250 / 249 / 250 completed profiling requests across paired prod-safe and post-merge runs (0 errors), warmup wall 46.47 s (46.57 s / 46.67 s), decode_tokens = 41,728 (41,975 / 41,951), prefill_tokens = 5,266,477, graph_hits = 3,693 (99.2%, 8 dynamic captures in 0.68 s, 0 graph evictions, 0 prefix evictions), 3.18 GiB resident device prefix cache (147 entries), 2.57–2.59 GiB/card free HBM.
    • +120 requests (+92.3%) vs. v0.4.6 (130 reqs, 99.44 s warmup) and +177 requests (+242.5%) vs. v0.4.0 baseline (73 reqs).
  • Quality & Native Throughput (8× Ascend 910B3, HCCL_DETERMINISTIC=strict, 1,556 held-out positions):
    • mean_nll = 1.675096 vs. baseline 1.671154 (ΔNLL = +0.003942, 95% CI [-0.002202, +0.012449], argmax_match = 94.67% / 1,473 / 1,556).
    • test-chat-b8 prefill 19,086.29 tok/s, tail2049 B1 prefill 18,403.86 tok/s, B8 decode 1,510.14 tok/s.
  • Workspace Checks & Release Integrity:
    • make check passed on Rust 1.100.0 (444 dependency ages verified, locked Cargo/uv checks, cargo fmt, ruff 0.17.6, cargo clippy --workspace --all-targets -D warnings, 800 Rust tests passed, 522 CPU Python tests across 103 modules, 15 plan coverage checks) plus cuda/ascend/gpu-profile feature clippy and make check-ascend-offline (250 Ascend offline modules).
    • tools/release/package.py validated orinfer 0.5.0 (aarch64 PIE ELF, GLIBC <= 2.34), compact A2 package installation (orinfer package install with rope_f32_v1 expansion across all 530 AOT kernel entries), SHA256SUMS, and GitHub Release upload/download SHA256 parity.