eugene-kamenev/Infernix-dgx-spark-gb10
소개
Inference engine for Qwen models on DGX Spark and compatible devices. Qwen3.8-Flash-Next 100+t/s. Single device only.
AI 및 머신러닝What you can do
- Native sm_121a Execution: Retuned CUDA kernels (NVFP4 A4 TMA, 1:1 FP32 Tensor Core accumulation, 24 MiB L2 CTA rasterization) with unified-memory MoE residency and streaming Per-Layer Embedding (PLE) n-gram tables.
- OpenAI & Anthropic HTTP Server: /v1/chat/completions, /v1/responses, /v1/messages, and /v1/decide with streaming, reasoning controls, tolerant tool-call recovery, and constrained decoding (JSON Schema, regex, GBNF, choice grammars).
- Multimodal Vision: Built-in vision encoder support via --vision.
- Speculative Decoding: Multi-Token Prediction (--spec mtp) and n-gram copy drafting.
측정된 스타 증가
- in 24h
- +8
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalInfernix
A from-scratch C++20/CUDA single-GPU inference engine retuned for the NVIDIA DGX Spark (NVIDIA GB10, sm_121a, 128 GB unified LPDDR5X, 64-bit Linux aarch64), based on Infernix and NInfer.
Features
- Native
sm_121aExecution: Retuned CUDA kernels (NVFP4 A4TMA,1:1FP32 Tensor Core accumulation, 24 MiB L2 CTA rasterization) with unified-memory MoE residency and streaming Per-Layer Embedding (PLE) n-gram tables. - OpenAI & Anthropic HTTP Server:
/v1/chat/completions,/v1/responses,/v1/messages, and/v1/decidewith streaming, reasoning controls, tolerant tool-call recovery, and constrained decoding (JSON Schema, regex, GBNF, choice grammars). - Multimodal Vision: Built-in vision encoder support via
--vision. - Speculative Decoding: Multi-Token Prediction (
--spec mtp) and n-gram copy drafting. - Hybrid Prefix Cache & Quantized KV: Content-addressed 64-token KV + GDN/conv state snapshots across GPU, host RAM, and disk, with 7 KV cache formats (
bf16,fp8,int8,k8v4,nvfp4,k4v2,vq2).
Supported Models
| Model | Architecture | Artifact / Download | Notes |
|---|---|---|---|
| Qwen3.8-Flash-Next | Qwen4ExpForCausalLM |
eugene-kamenev/Qwen3.8-Flash-Next-NVIDIA-FP4-Local-Infernix-FastQ | FastQ-RHT16 (69.999 GiB), --vision, --expert-a4-activations, PLE n-gram volume, MTP. |
| Inkling 2 Mini | — | wallawalla47/Inkling-2-Mini-Infernix | Pre-converted .infernix artifact. |
| Qwen3.5 / Qwen3.6 / Qwen3.8 | Qwen3_5ForCausalLM, Qwen3_5MoeForCausalLM |
huggingface.co/wallawalla47 | Dense and MoE checkpoints. |
Other .infernix artifacts for Qwen3.5, Qwen3.6, and Qwen3.8 can be found at https://huggingface.co/wallawalla47.
Quick Start
Prerequisites
Ubuntu 24.04 LTS (aarch64), CUDA 13.0, GCC 13.3:
sudo apt-get update && sudo apt-get install -y \
build-essential cmake ninja-build pkg-config \
libavformat-dev libavcodec-dev libavutil-dev libswscale-dev \
libcurl4-openssl-dev
Build
cmake -B build-native -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=121a
ninja -C build-native -j "$(nproc)" infernix-serve infernix_bench
Dockerfileis untested; native host builds are recommended.
Run
Start the server with any .infernix artifact:
./build-native/apps/infernix-serve /path/to/model.infernix \
--chat-template tools/chat_templates/qwen3_8.jinja \
--host 0.0.0.0 --port 8000
Or launch the Qwen3.8-Flash-Next (FastQ-RHT16) preset via tools/run_server.sh:
./tools/run_server.sh fastq
See Qwen3.8-Flash-Next Guide and HTTP Serving for concurrency queueing (--pending-timeout-ms, --max-pending-requests), PLE cache sizing (--ngram-cache-mib), and INFERNIX_DRAFT_EXPERT_PRUNE.
Performance Snapshot (NVIDIA GB10)
Measured on Qwen3.8-Flash-Next (FastQ-RHT16, int8 KV cache, 68.8 GiB GPU weights, ~14–16s startup):
| Benchmark | Result |
|---|---|
llama-benchy (pp2048 tg128 @ d0, c1 / c2 / c4) |
107.2 / 155.1 / 220.0 tok/s |
Greedy decode (c1, real prompts, MTP) |
101.6–122.5 tok/s (76.9–82.0% acceptance) |
262K NIAH Gate (2048 needles) |
PASS (2048/2048) at 163.4–365.6 tok/s |
tool-eval-bench (HC4-W4Dense) |
99 / 100 (68 passed, 0 partial, 1 failed) |
Documentation
Notice: Correct documentation for DGX Spark is in progress. Join the Discord channel if you have a question.
User Guides
- CLI Guide
- HTTP Serving & API Reference
- Qwen3.8-Flash-Next Guide
- Weight Conversion Guide
- Perplexity & Quality Evaluation
Engineering & Architecture
- Performance Overview
- GB10 Optimization Roadmap
- Engine Architecture
- Numerical Acceptance Policy
- Documentation Map
Credits
- Infernix (Wallawalla47) — base engine,
.infernixv3 container, hybrid prefix cache, andQwen3.8-Flash-Next - NInfer (Neroued) — original C++/CUDA engine and artifact architecture
- Strata (Niko1221) — single-GPU
Qwen3.8-Flash-Nextexecution - IST-DASLab (
llmq), HyperQuant, Four Over Six, the Qwen team, and NVIDIA
관련 프로젝트 살펴보기
불러오는 중…