Ling-3.2-Air-NVFP4 for Flare (gb202 TP=1, Concurrency 16, Vision)

Signed Flare native multimodal runtime core for inclusionAI/Ling-3.2-Air, exported from timbuksu/Ling-3.2-Air-NVFP4-FLARE-src for single-GPU 96 GiB NVIDIA Blackwell (SM120 / gb202) serving with native image understanding (qwen3_moe_vit + centered 3D M-RoPE).

Flare serves precompiled CUDA kernels, CSF-compressed NVFP4/MXFP8 weights, BF16 vision weights, and captured CUDA graphs directly from Rust with no Python runtime and no runtime compilation. Transformers, vLLM, SGLang, and llama.cpp cannot load this package directly (use timbuksu/Ling-3.2-Air-NVFP4-FLARE-src for the Flare-format ModelOpt safetensors source checkpoint).

Quick Start

Interactive first run (downloads the gb202 revision, verifies the Ed25519 signature online against publisher.json, and prompts you to type timbuksu to accept the key and MIT license):

flare run timbuksu/Ling-3.2-Air-NVFP4-FLARE --gpus 0

Non-interactive / unattended startup (explicitly approving publisher timbuksu and its SHA-256 signing-key fingerprint):

flare run timbuksu/Ling-3.2-Air-NVFP4-FLARE \
  --gpus 0 \
  --dangerously-accept-publisher timbuksu \
  --dangerously-approve-key 05eccfc726b6877c0d7fdcefacd3fb041650754753fabc00aceb1526c9cf1e09

Running with Docker (linux/amd64)

Prebuilt serving container image (built from the ling-3.2-air-tp1-blackwell branch of timothysu/hyperflare-inference with no CUDA toolkit or Python inside the image; requires a Linux x86_64 host with an NVIDIA driver and NVIDIA Container Toolkit): ghcr.io/timothysu/hyperflare-inference:ling-3.2-air.

The container runs as UID/GID 10001:10001. Create a host cache directory owned by 10001:10001 so the downloaded core and publisher approval (--core-cache /cores --trust-store /cores/trust.toml) persist across container restarts:

mkdir -p "$HOME/flare-cores"
sudo chown 10001:10001 "$HOME/flare-cores"

docker run

docker run --rm --name flare-ling32 \
  --gpus 'device=0,capabilities=compute' \
  --ulimit memlock=-1:-1 \
  --stop-timeout 60 \
  -p 127.0.0.1:8000:8000 \
  --mount type=bind,src="$HOME/flare-cores",dst=/cores \
  ghcr.io/timothysu/hyperflare-inference:ling-3.2-air \
  run timbuksu/Ling-3.2-Air-NVFP4-FLARE \
  --core-cache /cores \
  --trust-store /cores/trust.toml \
  --gpus 0 --host 0.0.0.0 --port 8000 \
  --dangerously-accept-publisher timbuksu \
  --dangerously-approve-key 05eccfc726b6877c0d7fdcefacd3fb041650754753fabc00aceb1526c9cf1e09

Docker Compose (compose.yaml)

services:
  flare-ling32:
    image: ghcr.io/timothysu/hyperflare-inference:ling-3.2-air
    container_name: flare-ling32
    stop_grace_period: 60s
    ports:
      - "127.0.0.1:8000:8000"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - "${HOME}/flare-cores:/cores"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              device_ids: ["0"]
              capabilities: [compute]
    command:
      - run
      - timbuksu/Ling-3.2-Air-NVFP4-FLARE
      - --core-cache
      - /cores
      - --trust-store
      - /cores/trust.toml
      - --gpus
      - "0"
      - --host
      - 0.0.0.0
      - --port
      - "8000"
      - --dangerously-accept-publisher
      - timbuksu
      - --dangerously-approve-key
      - 05eccfc726b6877c0d7fdcefacd3fb041650754753fabc00aceb1526c9cf1e09

Start with docker compose up -d. If you enable disk prefix-cache offload inside Docker, supply an io_uring-permitting seccomp profile (selene-manager/deploy/seccomp-io-uring.json from the Flare repository) via --security-opt seccomp=... or security_opt: ["seccomp=..."].

Pass "chat_template_kwargs": {"enable_thinking": false} in /v1/chat/completions requests to skip <think>...</think> blocks for direct answers. Image inputs follow the OpenAI /v1/chat/completions image_url content-part format (data URLs or base64 PNG/JPEG/WebP).

Package Configuration

Setting Value
Target hardware Single NVIDIA SM120 / gb202 96 GiB GPU (TP=1)
Architecture 42-layer hybrid decoder (35 KDA + 7 head-wise Gated MLA, 2 dense MLPs + 40 512-expert MoE) + Layer-42 Gated MLA + MoE MTP + 27-layer qwen3_moe_vit vision tower and 2-layer MLP projector (3D M-RoPE)
Precision Calibrated GPTQ NVFP4 routed experts (W4A16 decode / W4A4 prefill, CSF-compressed scales) + MXFP8 dense/attention/shared projections + BF16 MLA kv_b_proj/g_proj, vision tower/projector, norms, embeddings, and target lm_head
Draft head MXFP8 Layer-42 MTP draft head (--draft-head-quantization mxfp8, exact BF16 target lm_head verification)
Speculation --mtp-only, widths 1..8 (up to 7 draft tokens per round, adaptive width selection), --speculative-token-capacity 64
Max context / prefill chunk 262,144 tokens (native 256K) / 4,096 tokens
Max concurrency 16 concurrent text requests, 4 concurrent vision slots (256 / 1,024 / 4,096 / 16,384 patch buckets, up to 4,194,304 pixels per image)
Clock-locked tuning Exported with --lock-gpu-clocks on SM120 (NVIDIA RTX PRO 6000 Blackwell Server Edition)
Sampling defaults temperature=1.0, top_p=0.95, top_k=20 (official inclusionAI/Ling-3.2-Air defaults)
Modalities Text and image (input_modalities: ["text", "image"])
Frontend Bailing V3 Jinja chat template (enable_thinking in {false, true}), <think>...</think> reasoning parser, GLM_ARGUMENT_TAGS XML tool parser

Prepared with Ignition using:

ignition export timbuksu/Ling-3.2-Air-NVFP4-FLARE-src \
  --gpus 0 \
  --max-concurrency 16 \
  --image-concurrency 4 \
  --prefill-chunk-size 4096 \
  --expert-scale-compression csf \
  --mtp-draft-tokens 7 \
  --mtp-only \
  --speculative-token-capacity 64 \
  --draft-head-quantization mxfp8 \
  --lock-gpu-clocks

Expected Memory & KV Cache Capacity (96 GiB SM120)

Measured directly under native flare run on a single 96 GiB NVIDIA RTX PRO 6000 Blackwell Server Edition (SM120):

  • Loaded GPU memory: 69.11 GiB (67.3 GiB weights with CSF + MXFP8 draft head + BF16 vision tower, 68.50 GiB fixed device allocation, 70 captured CUDA graphs including 4 vision patch buckets, 5,232 kernels)
  • Expected KV cache budget: 25.25 GiB (25.2 GiB allocated) β†’ 21,774 BF16 paged latent KV pages (2,787,072 KV tokens, 10.6Γ— the 262,144-token max context) + 308 shared KDA/MLA/MTP prefix-snapshot slots (memory-limited)

Measured Serving Throughput (flare run, SM120 96 GiB)

Measured on a single NVIDIA RTX PRO 6000 Blackwell Server Edition (600 W power limit, 96 GiB VRAM) under native flare run with official core sampling defaults (temperature=1.0, top_p=0.95, top_k=20, adaptive Layer-42 MTP verification). Single-request decode throughput reports streaming generation rate after TTFT; concurrent aggregate throughput reports total completion tokens divided by batch wall time across distinct prompts alongside mean per-user decode throughput.

Decode & Concurrent Workloads

Across the code, math, tool-call, vision, prefix-cache, and concurrent batch suite (5,797 verification rounds, 7,432 accepted draft tokens, 2.28 mean emitted tokens per round), measured Layer-42 MTP acceptance by depth was 84.49% (depth 1, 4,898 / 5,797), 52.95% (depth 2, 2,460 / 4,646), 23.02% (depth 3, 64 / 278), 6.86% (depth 4, 7 / 102), 2.82% (depth 5, 2 / 71), 1.67% (depth 6, 1 / 60), and 0.00% (depth 7, 0 / 38), with adaptive width selection concentrating offers at depths 1–2. On open-ended prose decode workloads (1,301 rounds, 1,094 accepted drafts), acceptance averaged 1.84 tokens per round (1.68–2.15 tok/round, 72.79% depth 1, 36.39% depth 2); combined across all workloads (7,098 rounds), mean emitted tokens per round was 2.20:

Workload Decode Throughput Notes
B=1 Rust B-tree (enable_thinking=False, 800 tok) 254.90 tok/s 3.18s total, 45.0 ms TTFT, 2.58 tok/round (93.5% d1)
B=1 Linux epoll C (enable_thinking=False, 800 tok) 242.20 tok/s 3.35s total, 45.6 ms TTFT, 2.40 tok/round (87.3% d1)
B=1 Technical essay prose (enable_thinking=False, 800 tok) 197.45 tok/s 4.09s total, 46.5 ms TTFT, 1.75 tok/round (73.6% d1)
B=1 Literary fiction prose (enable_thinking=False, 800 tok) 192.29 tok/s 4.20s total, 45.1 ms TTFT, 1.68 tok/round (68.1% d1)
B=1 Explanatory prose (enable_thinking=True, 800 tok) 215.66 tok/s 3.75s total, 45.5 ms TTFT, 2.15 tok/round (77.7% d1)
B=1 Math arithmetic (enable_thinking=True, 243 tok) 238.32 tok/s 42.9 ms TTFT, 2.21 tok/round (96.4% d1), <think> separated, exact 1637
B=1 Math proof (enable_thinking=True, 1,179 tok) 248.78 tok/s 42.9 ms TTFT, 2.47 tok/round (90.8% d1), <think> separated, finish_reason="stop"
B=1 Tool calling (get_weather XML, enable_thinking=False) 0.269s total Structured tool_calls JSON, finish_reason="tool_calls"
B=1 Vision (256Γ—256 PNG, enable_thinking=False, 21 tok) 223.81 tok/s 0.15s total, 56.5 ms TTFT, 114 prompt tok, 2.62 tok/round (100.0% d1), exact 4-quadrant colors
B=1 Multi-turn prefix cache reuse (1,360 β†’ 1,470 prompt tok) 190.24 tok/s TTFT 109.7 ms β†’ 58.1 ms, 1,352 cached tokens reused
B=2 concurrent (2 Γ— 256 tok, 512 tot tok, direct code) 347.62 tok/s agg 209.40 tok/s/user, 1.47s wall
B=4 concurrent (4 Γ— 256 tok, 1,024 tot tok, direct code) 497.32 tok/s agg 167.17 tok/s/user, 2.06s wall
B=8 concurrent (8 Γ— 256 tok, 2,048 tot tok, direct code) 599.66 tok/s agg 123.62 tok/s/user, 3.42s wall
B=16 concurrent (16 Γ— 256 tok, 4,096 tot tok, direct code) 809.72 tok/s agg 105.88 tok/s/user, 5.06s wall

Cold Prefill Scaling (B=1, 4K–128K)

Measured with unique non-repeating technical prompts (enable_thinking=False, 4,096-token prefill chunks; 0 cached tokens through 32K and 8 shared chat-header tokens at 64K and 128K). Prefill throughput equals prompt_tokens / TTFT. Every prompt verified exact end-of-context archive-code retrieval:

Context Prompt Tokens TTFT Prefill Throughput Verification
4K 4,140 248.9 ms 16,631.3 tok/s Exact end-of-prompt code
8K 8,256 573.1 ms 14,405.7 tok/s Exact end-of-prompt code
16K 16,785 1.54 s 10,914.6 tok/s Exact end-of-prompt code
32K 33,469 4.72 s 7,087.7 tok/s Exact end-of-prompt code
64K 66,909 15.30 s 4,373.8 tok/s Exact end-of-prompt code
128K 135,562 68.53 s 1,978.2 tok/s Exact end-of-prompt code

A separate needle-in-a-haystack check at 4,947 prompt tokens (8 shared chat-header tokens) retrieved the mid-context code (EMERALD-9472) in 381.2 ms TTFT (12,976.0 tok/s).

Quality & Functional Verification

Lockstep text evaluation of timbuksu/Ling-3.2-Air-NVFP4-FLARE-src against upstream block-128 FP8 inclusionAI/Ling-3.2-Air on 4 Γ— 512 = 2,048 disjoint tokens:

  • 42-layer target: KL = 0.05782, top1 = 95.21%, top5 = 99.56%, PPL = 2.934 vs. 2.864 (1.0245Γ—)
  • Layer-42 MTP: KL = 0.06165, top1 = 93.77%, top5 = 99.66%

Vision tower numerical verification on timbuksu/Ling-3.2-Air-NVFP4-FLARE-src (333 untouched BF16 tensors across 27 qwen3_moe_vit blocks + merger.norm + 2-layer linear_proj):

  • Prepared SM120 vision graph vs. FP32 reference: cosine similarity 0.999731 (0.999623 vs. BF16 reference; BF16-vs-FP32 reference accumulation floor 0.999864)

  • Live Flare qualification checks passed on this signed core: signature verification (timbuksu), <think> reasoning separation and exact 1637 arithmetic, full math proof completion, GLM_ARGUMENT_TAGS strict XML tool calling (get_weather with finish_reason="tool_calls"), qwen3_moe_vit multimodal vision (256Γ—256 synthetic PNG with exact 4-quadrant identification), mid-context needle retrieval (4,947 prompt tokens), cold prefill retrieval up to 135,562 prompt tokens, multi-turn prefix cache reuse (1,352 reused tokens), and concurrent serving up to B=16.

  • Untested / out of scope: Cold prefill above 135,562 tokens up to the 262,144-token maximum context was not benchmarked in this pass. Video inputs and multi-GPU (TP>1) deployments are not supported by this package.

License

MIT License (LICENSE), matching inclusionAI/Ling-3.2-Air.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for timbuksu/Ling-3.2-Air-NVFP4-FLARE

Quantized
(1)
this model