Inkling 2 Mini
VRAM Calculator
Find out how much memory Inkling 2 Mini needs at your context length. Model the real attention layout and see what fits on your hardware.
Estimated memory required
21.78GiB
23.38412032 GB
Fits comfortably
RTX 5090 · 32 GB budget
8.61587968 GB headroom
- Model weights
- 20.0 GB
- Global KV 8 caches
- 1.073741824 GB
- SWA-1024 KV 40 caches
- 0.16777216 GB
- MTP KV
- 0.142606336 GB
- Runtime overhead
- 2.0 GB
Combine with other AI & infra estimates, see 12-month totals, and export a CFO-ready PDF/Markdown quote in BudgetHub.
Naive vs. hybrid KV
A full-attention baseline caches every token across all 48 layer passes. Inkling’s windowed layers keep up to 1,024 tokens each. Both figures use the same batch and KV precision and compare decoder KV only.
5.20093696 GB saved · 80.73% less decoder KV
Hardware fit matrix
Budgets use decimal GB. On Macs and Spark, the OS and GPU share memory. Choose Custom capacity to enter the memory your runtime can actually use.
| Device | Budget | 8K | 32K | 128K | 256K | 512K | 1M |
|---|
Fits comfortably means at least 10% of the budget is free. Tight fit means less than 10% is free. A negative balance exceeds the budget.
Memory by context length
Compare six context tiers with your current weights, cache settings, and target hardware.
| Context | Global KV | SWA KV | MTP KV | Total GiB | Total GB | Target fit |
|---|
How LoopVRAM calculates memory
Hybrid KV geometry
Keys and values use 2 × 8 KV heads × 128 dimensions = 2,048 elements per token per cache layer. That is 4,096 bytes in BF16/FP16, 2,048 in FP8, and 1,024 in Q4.
Global KV scales with the entire context. Sliding-window KV scales with the smaller of the context and 1,024 tokens. Both scale with concurrent sequences. The optional MTP KV uses the same selected precision and adds one global and two windowed layers.
Looped decoder
Global attention runs at layers 5, 11, 17, and 23. The other 20 layers use a sliding window. Layers 6–17 run three times, giving 48 layer passes with shared weights.
Per-Pass Conservative gives each pass its own cache. Physical-Shared models one KV allocation per physical layer. Verify which layout your runtime uses.
Weights and runtime
Inkling2LoopForConditionalGeneration has about 26.4B parameters and routes each token to 8 of 128 experts, with no shared experts. The decoder has a hidden size of 2,304, an expert intermediate size of 1,152, and a vocabulary of 201,024. The vision tower has 23 layers and a hidden size of 1,024.
The official weight budget uses the published ~20 GB checkpoint figure. Other formats are modeling estimates. Use Custom weights for measured residency, including any separate speculator weights you load. The MTP switch changes KV only.
Units and runtime assumptions
One GB is 1,000,000,000 bytes. One GiB is 1,073,741,824 bytes. The context limit is 1,048,576 tokens, including prompt and generated tokens (and image tokens for multimodal runs).
Adjust overhead for prefill, vision activations, allocator padding, quantization metadata, and other runtime buffers. Cache eviction, packed KV support, and weight-format compatibility depend on the inference engine and device.
FAQ
How much VRAM does Inkling 2 Mini need?
The official mixed NVFP4 + MXFP8 checkpoint is about 20 GB. With 32,768 tokens, one sequence, BF16 KV, per-pass allocation, MTP KV, and 2 GB of runtime overhead, LoopVRAM estimates 23.38 GB (21.78 GiB).
Can Inkling 2 Mini run on a 24 GB RTX 4090?
Some configurations can fit the memory budget, especially with compatible quantized weights and short contexts. Thinking Machines Lab recommends 32 GB or more for other GPUs and platforms. Check your runtime’s format support and use the memory actually available on your device.
Does Physical-Shared halve all memory?
It halves decoder KV in this model, from 8 global and 40 windowed caches to 4 global and 20 windowed caches. Weights, runtime overhead, and optional MTP KV stay the same. Use this allocation scenario when your runtime supports sharing.