How to use from the
Use from the
MLX library
# Make sure mlx-vlm is installed
# pip install --upgrade mlx-vlm

from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config

# Load the model
model, processor = load("OsaurusAI/Inkling-2-Mini-JANGHT4.2")
config = load_config("OsaurusAI/Inkling-2-Mini-JANGHT4.2")

# Prepare input
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
prompt = "Describe this image."

# Apply chat template
formatted_prompt = apply_chat_template(
    processor, config, prompt, num_images=1
)

# Generate output
output = generate(model, processor, formatted_prompt, image)
print(output)

Osaurus AI

Runtime: Osaurus 1.0.12 or newer.

OsaurusAI/Inkling-2-Mini-JANGHT4.2

Inkling-2-Mini in 14.7 GB with 96.9% top-1 agreement with the original release (median KL 0.0019). The original checkpoint is 20.2 GB.

This is a JANGHT bundle of thinkingmachines/Inkling-2-Mini: a 26.4B-parameter multimodal Mixture-of-Experts model with 3.4B active parameters. It has 24 decoder layers; the middle 12 run three times with shared weights, so every token makes 48 layer passes. Each token is routed to 8 of 128 experts per layer.

JANGHT chooses a format for every expert projection group (each layer's gate/up pair and its down projection) by measured sensitivity:

  • The original NVFP4 experts, byte for byte: 35 of the 72 expert projections, mostly in the looped layers, keep the release's own weights, with no error added.
  • JANGT trellis codes (2.5 and 3 bits, Hadamard-128 rotation): 20 projections. At equal size they leave 15-20 % less error than a 3-bit codebook on gate/up projections (3-6 % less on down projections).
  • JANGH codebook (2, 3 and 4 bits, Hadamard-32 rotation): 17 projections, mostly in the layers before and after the loop.

Calibration ran mostly on Inkling-2-Mini's own outputs: 5.6M tokens, most of them its own answers and reasoning, on agentic tool loops, coding, math, terminal sessions, science, multilingual, creative and encyclopedic prompts, plus 320 image conversations. Each projection's sensitivity was measured one projection at a time against the original model, with expert routing frozen so a single router flip cannot dominate the measurement.

  • Experts (24.5B of the 26.4B parameters): 3.80 bits per weight on average.
  • Attention projections, embeddings and lm_head: affine 8-bit (group size 64). Keeping attention in BF16 measured +0.0001 median KL better, not worth 0.6 GB.
  • Router, norms, attention sinks, loop message gates, short convolutions: unchanged (fp32 / BF16 as released).
  • Vision encoder and the model's own drafter (DSpark): included unchanged (BF16).
  • Size: 14.65 GB of model shards. 4.25 bits per weight over the whole model (the drafter is not counted).

Quality vs the original model

Scored on 319,344 positions in 283 held-out conversations (243 text, 40 with images), against the original release (its own NVFP4 / MXFP8 experts, full-precision activations) with top-128 KL. Most conversations are Inkling-2-Mini's own answers at every reasoning effort, and only the model's generated tokens are scored. None were used for calibration.

size median KL ↓ mean KL ↓ p99 KL ↓ top-1 ↑ NLL change ↓
original experts + BF16 attention (measurement floor) 17.4 GB 0.00043 0.0018 0.020 98.40% +0.0010
original experts + 8-bit attention 16.8 GB 0.00054 0.0021 0.022 98.27% +0.0014
Inkling-2-Mini-JANGHT4.2 14.7 GB 0.0019 0.0070 0.071 96.88% +0.0057
Inkling-2-Mini-JANGH2 10.2 GB 0.019 0.054 0.50 91.3% +0.052

The JANGH2 row was measured on the text-only version of this test set.

By domain (median KL · top-1; floor = original experts + 8-bit attention):

domain positions JANGHT4.2 floor
terminal 4,985 0.00019 · 98.6% 0.00008 · 99.0%
reasoning / math 47,390 0.00016 · 98.4% 0.00005 · 99.1%
coding 21,821 0.00054 · 97.7% 0.00019 · 98.7%
images 7,322 0.00034 · 97.5% 0.00008 · 98.8%
science 30,733 0.00099 · 97.4% 0.00029 · 98.5%
agentic tool loops 13,474 0.00133 · 97.3% 0.00048 · 98.3%
long context 4,120 0.00096 · 96.8% 0.00042 · 97.7%
multilingual 52,199 0.0024 · 96.4% 0.00055 · 98.2%
creative writing 75,810 0.0033 · 96.2% 0.00093 · 97.8%
encyclopedic 61,490 0.0034 · 96.2% 0.00093 · 97.9%

By reasoning effort (median KL · top-1): max 0.0010 · 97.8%, xhigh 0.0015 · 97.3%, high 0.0012 · 97.4%, medium 0.0026 · 96.4%, low 0.0012 · 96.6%, minimal 0.0022 · 96.4%, none 0.0020 · 96.5%.

Turn structure, tool calls and reasoning

At every structural decision in the held-out conversations, the bundle's top choice matches the original model's actual choice exactly as often as the original's own top choice does:

  • Opening a segment: 234/234 reasoning openings, 219/219 answer openings, 8/8 tool-call openings.
  • End of turn: 222/222.
  • Closing reasoning: 79.9% of the 224 closes (the original model: 79.5%; the conversations were sampled at temperature 1.0, so not every close is the most likely token).

Generation checks (the original model scores the same unless noted):

  • 13 fixed prompts with known answers (word problems, primes, divisors, probability, two coding tasks, a tool call and an answer from a tool result, Korean, a poem), reasoning effort none to max: greedy 13/13, sampled at temperature 1.0 with three seeds 39/39.
  • 40 images with known answers (colours, counting shapes, OCR in English / Korean / Chinese / accented text, code and terminal screenshots): 40/40 (the original: 39/40, one count off by one).

Speed

Decode in Osaurus on an M5 Ultra (128 tokens, median of 3): 92 tok/s, vs 83 tok/s for the original checkpoint and 105 tok/s for the 10.2 GB JANGH2. The model's own drafter (DSpark) works unchanged: 2.8 tokens per verify round on average (2.85 with the original weights).

Serving contract

  • Reasoning: Inkling-2-Mini always reasons before it answers. The chat template adds no generation prompt: the model opens its own turn with a reasoning segment, then the answer or a tool call. Reasoning effort is a template setting (reasoning_effort: none, minimal, low, medium, high, xhigh, max, or a number from 0 to 0.99; default 0.9).
  • Tool calls: JSON ({"name": ..., "args": {...}}) in the model's own tool-call segment; tool results go back as tool messages.
  • Sampling: temperature 1.0, no top-p or top-k (generation_config.json).
  • EOS: <|content_model_end_sampling|>.
  • Context: up to 1M tokens per the original card. Sliding-window layers keep at most 1,024 tokens of KV; only the full-attention layers (5 and 23, and 11 and 17 once per loop pass) keep a growing KV cache.
  • Images: the vision encoder is included unchanged and scored above.

What's in the bundle

Per projection, config.json["quantization"] names the format: {"mode": "nvfp4"} (the original bytes, with the per-expert global scale), {"mode": "jangt", "kbits": K} (trellis, with the jangt header) or {"mode": "jangtq2", "bits": b, "rotation": "hadamard32"} (codebook, with the jangtq header). jang_config.json records the plan, the evaluation above and the generation checks. SHA256SUMS covers every file.

Original model: thinkingmachines/Inkling-2-Mini (Apache-2.0). Quantized by Jinho Jang (eric@osaurus.ai).

Downloads last month
-
Safetensors
Model size
15B params
Tensor type
U32
·
F32
·
I32
·
BF16
·
F16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for OsaurusAI/Inkling-2-Mini-JANGHT4.2

Quantized
(256)
this model