Skip to content
Projekte

eugene-kamenev/Infernix-dgx-spark-gb10

Auf GitHub ansehen

Über uns

Inference engine for Qwen models on DGX Spark and compatible devices. Qwen3.8-Flash-Next 100+t/s. Single device only.

KI und maschinelles Lernen

So werden diese Zahlen gemessen

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.

Gemessener Sternzuwachs

in 24h
+8
in 7 days
Verlauf wird gesammelt
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Infernix

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_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.
  • 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

Dockerfile is 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

Engineering & Architecture

Credits

  • Infernix (Wallawalla47) — base engine, .infernix v3 container, hybrid prefix cache, and Qwen3.8-Flash-Next
  • NInfer (Neroued) — original C++/CUDA engine and artifact architecture
  • Strata (Niko1221) — single-GPU Qwen3.8-Flash-Next execution
  • IST-DASLab (llmq), HyperQuant, Four Over Six, the Qwen team, and NVIDIA

Ähnliche Projekte entdecken

Wird geladen…