Inkling 2 Mini — 6bit

MLX export of thinkingmachines/Inkling-2-Mini with AFFINE 6-bit weights, group size 64. Supports text and image input, with text output. The bundled DSpark draft is included.

Derived from the native quantized release. Thinking Machines publishes mixed NVFP4/MXFP8 expert weights. These were dequantized to an intermediate BF16 reconstruction; each additional quant was made directly from that same reconstruction. This is not an original pre-quantization BF16 checkpoint. Higher bit counts cannot restore precision lost in the source, and requantization may add error. The native precision export is also available.

All 72 expert projections and supported attention, embedding and output-head modules are quantized (250 modules total). The vision tower, routers, loop controllers/queries, convolution tensors and normalization parameters remain floating point. Protected FP32 tensors are preserved.

Target weights: 21.863 GB in 5 shards. Original DSpark draft: 0.636 GB. Additional memory is needed for inference and caches. The 24 physical decoder layers execute 48 visits through the middle loop.

Runtime

Validated on Apple M5 Max with MLX-VLM 0.8.1 at the pinned revision, MLX 0.32.4 and Transformers 5.16.1:

python -m pip install --upgrade "mlx==0.32.4" "transformers==5.16.1" \
  "git+https://github.com/Neywa-Labs/mlx-vlm.git@91b37cd5c5d02282d1101e6d1fcfd199636a912c"

Text and image generation

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

model_id = "nativ-community/Inkling-2-Mini-6bit"
model, processor = load(model_id)
prompt = apply_chat_template(
    processor, model.config, "What is 17 multiplied by 19?",
    reasoning_effort="none",
)
result = generate(
    model, processor, prompt,
    max_tokens=160, temperature=0, prefill_step_size=128,
)
print(result.text)

prompt = apply_chat_template(
    processor, model.config, "Describe this image.",
    num_images=1, reasoning_effort="none",
)
result = generate(
    model, processor, prompt, image=["image.png"],
    max_tokens=160, temperature=0, prefill_step_size=128,
)
print(result.text)

Reasoning may still appear when reasoning_effort="none". Preserve message tokens to distinguish reasoning from the final answer; stripping all special tokens concatenates them.

For the bundled speculative draft:

from mlx_vlm.speculative.drafters import load_drafter

draft, kind = load_drafter(model_id)
result = generate(
    model, processor, prompt, image=["image.png"],
    draft_model=draft, draft_kind=kind,
    max_tokens=160, temperature=0, prefill_step_size=128,
)
print(result.text)

Use a text-only prompt and omit image for text-only draft generation.

Validation

Validated on 2026-11-30. Strict reload, complete shard/index coverage and the saved quantization settings passed. 889 unchanged tensors match the reference bytes, shapes and dtypes exactly, including protected FP32 parameters. The original draft SHA-256 matches the source. Small inference checks correctly answered 17 × 19 = 323, identified a red circle, and completed arithmetic with the bundled draft.

These are conversion-integrity and basic functionality checks, not an accuracy benchmark, full-context test or claim of numerical parity with the original runtime. MLX-VLM uses floating-point activations rather than the reference activation quantization. Audio input is not supported here.

See validation.json, conversion.json and checksums.json.

Reproduce

Source revision: c9d028302cd0f035fdf8e7e91f089a4ce94d2195. Implementation revision: 91b37cd5c5d02282d1101e6d1fcfd199636a912c.

Download convert_from_native.py and run it with the pinned runtime:

python convert_from_native.py --output reconstructed-bf16

python -m mlx_vlm convert \
  --hf-path reconstructed-bf16 --mlx-path Inkling-2-Mini-6bit \
  --dtype bfloat16 -q --q-mode affine --q-bits 6 --q-group-size 64

For quantized exports, copy the original mtp.safetensors and tokenizer/processor sidecars from reconstructed-bf16 into the final directory after conversion. Keep source_hf_quant_config.json as provenance only; its filename intentionally differs from the loader's native quantization metadata so it is not applied to these derived weights.

Original model and weights by Thinking Machines Lab. Distributed under Apache 2.0; see LICENSE and the upstream model card.

Downloads last month
40
Safetensors
Model size
26B params
Tensor type
U32
·
F32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

6-bit

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

Model tree for nativ-community/Inkling-2-Mini-6bit

Quantized
(434)
this model