Inkling-2-Mini Jetson Nano Flare (Ternary QAD + Q4_0 Vision + DSpark)
Flare-only runtime core (experimental preview). This repository provides a prepared Hyperflare (Flare / Helios) runtime core for NVIDIA Jetson Orin (
SM87/ga10b). It bundles pre-packed weights, compiled SM87 CUDA kernels, and captured CUDA graphs for native Rust serving directly over the CUDA Driver API (libcuda.so.1), with no Python interpreter, PyTorch,libcudart, or runtime compilation.Why this is Flare-only: On an 8 GB Jetson Orin Nano, physical unified memory is
8,192 MiBtotal (~7,654 MiBfree CUDA memory onjetson-orin-slim), and the loaded multimodal + DSpark core consumes~6.37 GiB(~6,518 MiB) before continuation state and KV cache. Python serving frameworks such as vLLM, SGLang, and Transformers cannot fit this model on an 8 GB Orin Nano because their Python, PyTorch,libcudart, and allocator overhead alone exceeds the remaining unified-memory headroom. There are no plans for non-Flare formats (GGUF, vLLM, SGLang, or Transformers).
Model provenance
- Base model —
thinkingmachines/Inkling-2-Mini(Apache 2.0): Multimodal looped Mixture-of-Experts (MoE) model with 24 physical layers executing 48 logical layer visits (layers0..5, three looped passes across layers6..17with rank-64 cross-pass message gating, and layers18..23), 128 routed experts (top-8 per token), hybrid local sliding-window attention (1,024-token window across 40 local visits) and global attention (8 global visits) with relative position bias and short convolutions (kernel_size=4), a200,058-token valid vocabulary, a 23-layer Vision Transformer (20×20native patches merged2×2into40×40token cells), and a 3-layer DSpark block-8 speculative drafter with a rank-256 recurrent Markov head. - Quantization-Aware Distillation (QAD) — not post-training quantization (PTQ):
The ternary MoE experts were trained via Quantization-Aware Distillation
(QAD) against the full-precision teacher model rather than produced by
post-training quantization. Expert weights are trained in a 128-wide
Walsh–Hadamard (
fwht_128) basis and stored in the packed group-128 ternary ({-1, 0, +1})block_ptq1_0binary layout (28bytes per 128-weight block,1.75bits/weight). Attention projections, token embeddings, the language-model head, the 3-layer DSpark drafter, and the 23-layer vision encoder + spatial merger are quantized toQ4_0. - Flare
ga10bruntime core (this repository,ga10brevision): Prepared on Jetson AGX Orin (SM87, JetPack 7.2.2 / CUDA 13.2) usinglocal-inference-lab/hyperflare-jetson-recipes. The device virtual address window sits at0xc00000000 + 48 GiB(48–96 GiB), fitting within the~101 GiBCUDA VMM address ceiling on 8 GB Jetson Orin Nano as well as 32 GB / 64 GB Jetson AGX Orin.
Included capabilities
This prepared core retains the complete Inkling-2-Mini feature set within a
~6.37 GiB fixed GPU footprint:
- Multimodal vision (
Q4_023-layer ViT +2×2spatial merger): All 140 linear projections in the vision backbone and4096 → 4096 → 2304spatial merger are packed toQ4_0, reducing vision weights from607.03 MiB(BF16) to174.34 MiB(~0.995mean cosine similarity against the BF16 PyTorch vision reference). Uses Helios's unresized padded-grid image frontend (40×40px token cells, class-token layout) and nativehead_dim=64SM87 FlashAttention-2 ragged self-attention inside a single zero-fragmentation capturedvision4096graph. Supports images up to4,096native patches (1,024vision tokens, e.g.1280×1280,1600×960, or1920×840) and up to4images /2,048vision tokens per request (9.0 MiBfeature arena). - 7-token DSpark speculative decoding (
Q4_0): Includes the 3-layer block-8 DSpark drafter with its rank-256 recurrent Markov head and target-layer hidden taps[5, 23, 41, 48]. Captured verification graphs cover adaptive widths1, 2, 4, 8(up to7draft tokens per round) with exact short-convolution rollback and commit for rejected tokens. - Packed
K4V8KV cache and fixed-size local continuation state: Global attention (8 trunk visits + 3 DSpark draft layers) uses packed 4-bit INT4 group-16 keys with FP8 E4M3 values at128tokens/page (2.15 MiB/page). The 40 local sliding-window (1,024-token) attention rings and48×4short-convolution histories live in fixed74.30 MiBcontinuation rows, so KV page growth scales only with the global attention layers. - Structured reasoning and JSON tool calling (
TMLv0): Uses Helios's nativeTMLv0prompt renderer and output parser with structured thinking blocks (<|content_thinking|>...<|end_message|>, controlled viareasoning_effort) andTML_JSONtool calling.
Prepared core specifications
| Property | Value |
|---|---|
| Target architecture / revision | NVIDIA Jetson Orin (SM87 / ga10b), single GPU (tp1) |
| Served model name | Inkling-2-Mini |
| Fixed loaded footprint | ~6.37 GiB (6,427 MiB weights, 58 MiB shared CUDA graph capture pool, 19.8 MiB I/O, 9.6 MiB disposable) |
| Captured graphs / kernels | 10 graphs (prefill128, vision4096, speculative1x{1,2,4,8}, resume1, init1, restore1, snapshot1); 318 kernels in 156 modules |
| Vision tower | Q4_0 23-layer ViT + 2×2 merger (174.34 MiB), up to 4,096 patches/image (1,024 tokens), 2,048 tokens / 4 images per request |
| KV cache geometry | Packed K4V8 (INT4 group-16 K + FP8 E4M3 V), 128 tokens/page (2.15 MiB/page across 8 global trunk + 3 draft layers) |
| Continuation state | 74.30 MiB per active row / snapshot (40 local K4V8 sliding-window rings, 48×4 sconv histories, partial pages, DSpark RNN state) |
| Max concurrency | 1 |
| Prefill chunk size | 128 tokens |
| Speculative decoding | Q4_0 DSpark block-8 drafter, adaptive verification widths 1, 2, 4, 8 (up to 7 drafts/round) |
| Sampling defaults | temperature=1.0, top_p=1.0, top_k=-1, TMLv0 reasoning + TML_JSON tools |
| Qualified hardware | Jetson AGX Orin 64 GB, Jetson Orin Nano Super 8 GB (with jetson-orin-slim image) |
1. Use the jetson-orin-slim image on 8 GB Jetson Orin Nano
The loaded multimodal + DSpark core occupies ~6.37 GiB (~6,518 MiB) plus
~74.3 MiB for the active continuation row before KV cache pages are allocated.
On an 8 GB Jetson Orin Nano Super, a stock JetPack 7.2.2 installation does
not leave enough unified memory for reliable serving or meaningful KV cache
headroom once weights, CUDA driver graph state, and OS overhead are resident.
For the best experience on an 8 GB Jetson Orin Nano Super, configure the board
with local-inference-lab/jetson-orin-slim
(JetPack 7.2.2 / Jetson Linux R39.2.2):
- Trimmed QSPI firmware carveouts, custom
16 MiBOP-TEE, and896 KiBheadless UEFI (+458.8 MiBMemTotal) - Stripped
20 MBheadless Linux 6.8 kernel andswitch_rootinitrd fix (Unevictable: 0 kB,+29.4 MiBreclaimed) nvgpucompression-buffer (comptag_mem_deduct) trim andnvmappage-pool drain on boot
Together these yield 7,940.6 MiB MemTotal, ~7,748 MiB MemAvailable,
and ~7,653.8 MiB (7.47 GiB) free CUDA Driver API memory (7,640 MiB
live cuMemAlloc_v2 verified), leaving roughly ~1 GiB of KV cache
headroom alongside full Q4_0 vision and 7-token DSpark speculative decoding.
On Jetson AGX Orin (32 GB / 64 GB), the slim image is not required.
2. Install flare (flare-linux-arm64.tgz)
Install flare (v0.5.1 or later) from
NVIDIA/hyperflare-inference Releases:
sudo apt-get update
sudo apt-get install -y libibverbs1 ibverbs-providers
curl -fLO https://github.com/NVIDIA/hyperflare-inference/releases/latest/download/flare-linux-arm64.tgz
tar -xzf flare-linux-arm64.tgz
sudo install -m 0755 flare/flare /usr/local/bin/flare
flare --version
JetPack 7.2.2 runs Ubuntu 24.04 (glibc >= 2.39), which matches the prebuilt
flare-linux-arm64.tgz binary directly. To build from source instead:
cargo build --locked --release --manifest-path flare-cli/Cargo.toml --bin flare
3. Download and run
On a Jetson Orin, flare automatically selects the ga10b revision.
Jetson Orin Nano Super (8 GB, with jetson-orin-slim)
Drop Linux page caches immediately before launch so unified memory exposes the
full free pool to CUDA, then launch with an explicit negative --memory-limit
margin (-64m for safety margin, or -32m / -16m for maximum KV cache):
sudo sh -c 'sync && echo 3 > /proc/sys/vm/drop_caches'
flare run local-inference-lab/Inkling-2-Mini-Jetson-Nano-Flare \
--revision ga10b \
--host 0.0.0.0 \
--port 8000 \
--memory-limit -64m
Jetson AGX Orin (32 GB / 64 GB)
flare run local-inference-lab/Inkling-2-Mini-Jetson-Nano-Flare \
--revision ga10b \
--host 127.0.0.1 \
--port 8000
On first run, Flare displays the publisher identity (local-inference-lab) and
prompts to accept execution. To pre-download without starting the server, run
flare download local-inference-lab/Inkling-2-Mini-Jetson-Nano-Flare --revision ga10b.
Query the OpenAI-compatible API
Text generation (with optional reasoning_effort):
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "Inkling-2-Mini",
"messages": [{"role": "user", "content": "Explain in two sentences how CUDA graphs reduce CPU launch overhead."}],
"max_tokens": 256,
"reasoning_effort": "low"
}'
Multimodal vision query (PNG / JPEG / WebP data URI or URL, up to 4,096
native 20×20 patches per image):
IMG_B64=$(base64 -w0 image.png)
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d "{
\"model\": \"Inkling-2-Mini\",
\"messages\": [{
\"role\": \"user\",
\"content\": [
{\"type\": \"image_url\", \"image_url\": {\"url\": \"data:image/png;base64,${IMG_B64}\"}},
{\"type\": \"text\", \"text\": \"Describe this image and read any text shown.\"}
]
}],
\"max_tokens\": 256,
\"reasoning_effort\": \"low\"
}"
Stop Flare with Ctrl-C or SIGTERM so in-flight CUDA graph replay drains
cleanly before releasing GPU memory.
Reproduction and source
- Runtime:
NVIDIA/hyperflare-inference - Jetson recipe & SM87 kernels:
local-inference-lab/hyperflare-jetson-recipes - 8 GB Jetson Orin Nano slim image:
local-inference-lab/jetson-orin-slim
License
Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini).
Model tree for local-inference-lab/Inkling-2-Mini-Jetson-Nano-Flare
Base model
thinkingmachines/Inkling-2-Mini