Repository navigation
v0.5.0
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_NZW8 Shards):v0.5.0preserves the unrotated activation-calibrated weight values introduced inv0.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, andvision.safetensorsrouter biases), and repacks the 24 INT8 W8 shards (weights/gpu/rank-0{0..7}/layer-{15,39}-w8.safetensorsandweights/dspark/rank-0{0..7}-layers-40-42.safetensors) into native AscendFRACTAL_NZlayout. All 96 host Engram table shards (weights/host/*, ~206 GiB) plusweights/shared/embedding.safetensorsandweights/dspark/{embedding,shared}.safetensors(99 shards / ~209 GiB total) remain byte-identical and can be hardlinked fromv0.4.6before downloading updated shards fromimmiq/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=6144with circular SWA storage, disjoint workspace aliasing, FP32 compressor SP8 sharding, 8-rank sharded Layer-1 Engram H2D + HCCS AllGather, Layer-14engram14overlap, 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 BF16dense.projection, explicit-sync pipelined Cube QK+PVattention_fused.selected_int8(with Wave 13balanced_ctas=2P[2] tuning), fusedengram.gate_bf16, fused Indexer Key/Query RoPE+Quant+Partition, dual-outputnorm_quant_dual, and native INT8FRACTAL_NZgrouped matmul support forL15/L39and DSparkL40-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_tokenspreservation in the async postprocessor, disconnect cancellation, response buffer scaling, and gracefulSIGTERMdrain.
Engine Architecture, Packaging, CUDA & Dependencies
- Backend-Split Workspace & Faster Releases: Splits
orinfer-engineintoorinfer-engine-core,orinfer-cuda,orinfer-ascend, and a feature-gated facade (--no-default-features --features cuda|ascend); adds the single-CGUdistbuild profile, standaloneorinfer-v0.5.0-source.tar.xzarchive, deterministic parallelxzpackaging, andtools/dev/linux-cc.shto bypass CANN BiShengld.lld. - CUDA SM87 (Orin): Includes Flash-Next Orin prefill/decode kernel, NEON input, and lookup/graph runtime optimizations (
119Mini-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.0and refreshes mature Cargo/Python/CI dependencies (444releases 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 / 250completed profiling requests across paired prod-safe and post-merge runs (0errors), warmup wall46.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%,8dynamic captures in0.68 s,0graph evictions,0prefix evictions),3.18 GiBresident device prefix cache (147entries),2.57–2.59 GiB/card free HBM.+120requests (+92.3%) vs.v0.4.6(130reqs,99.44 swarmup) and+177requests (+242.5%) vs.v0.4.0baseline (73reqs).
- Quality & Native Throughput (8× Ascend 910B3,
HCCL_DETERMINISTIC=strict, 1,556 held-out positions):mean_nll = 1.675096vs. baseline1.671154(ΔNLL = +0.003942, 95% CI[-0.002202, +0.012449],argmax_match = 94.67%/1,473 / 1,556).test-chat-b8prefill19,086.29 tok/s,tail2049B1 prefill18,403.86 tok/s, B8 decode1,510.14 tok/s.
- Workspace Checks & Release Integrity:
make checkpassed on Rust1.100.0(444dependency ages verified, locked Cargo/uv checks,cargo fmt,ruff 0.17.6,cargo clippy --workspace --all-targets -D warnings,800Rust tests passed,522CPU Python tests across103modules,15plan coverage checks) pluscuda/ascend/gpu-profilefeature clippy andmake check-ascend-offline(250Ascend offline modules).tools/release/package.pyvalidatedorinfer 0.5.0(aarch64PIE ELF,GLIBC <= 2.34), compact A2 package installation (orinfer package installwithrope_f32_v1expansion across all530AOT kernel entries),SHA256SUMS, and GitHub Release upload/download SHA256 parity.