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("gpustack/Inkling-2-Mini-MLX-5bit-dynamic")
config = load_config("gpustack/Inkling-2-Mini-MLX-5bit-dynamic")

# 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)

gpustack/Inkling-2-Mini-MLX-5bit-dynamic

An MLX-native mixed-precision affine (group_size = 64) 5-bit dynamic quantization of thinkingmachines/Inkling-2-Mini (inkling2_loop) for Apple Silicon (mlx-vlm >= 0.8.1), preserving the full BF16 vision tower (vision_tower.*) and bundling a blockwise-FP8 quantized incoai/Inkling-2-Mini-DFlash2 drafter under speculator/.

Original Models & License

Role Original Model Original License
Target Model thinkingmachines/Inkling-2-Mini Apache-2.0
Speculative Drafter (speculator/) incoai/Inkling-2-Mini-DFlash2 Apache-2.0

Quantization Details (5-bit dynamic, ~17.88 GiB weights, 5 Shards)

All quantized tensors use standard MLX affine packing (mode = "affine", group_size = 64) in mlx-vlm >= 0.8.1 layout (language_model.model.*, split mlp.switch_mlp.{gate_proj,up_proj,down_proj}) with per-module precision overrides in config.json:

Precision Modules Override Count
8-bit (Q8G64) Embeddings, lm_head, and attention projections (wq_du, wk_dv, wv_dv, wo_ud, wr_du, gate_attn) 146
5-bit (Q5G64) MoE routed expert projections (switch_mlp.{gate_proj,up_proj,down_proj}) base
BF16 (preserved) vision_tower.*, norms, routers, loop controllers, and short convolutions preserved
Speculator (speculator/) Bundled FP8 Inkling-2-Mini-DFlash2 drafter —

Usage with MLX (mlx-vlm >= 0.8.1)

pip install -U "mlx-vlm>=0.8.1"

# Text generation
python -m mlx_vlm generate \
  --model gpustack/Inkling-2-Mini-MLX-5bit-dynamic \
  --max-tokens 256 \
  --prompt "Write a Python Fibonacci function."

# Multimodal vision
python -m mlx_vlm generate \
  --model gpustack/Inkling-2-Mini-MLX-5bit-dynamic \
  --max-tokens 256 \
  --prompt "Describe this image." \
  --image <path-to-image>
Downloads last month
-
Safetensors
Model size
26B params
Tensor type
U32
·
BF16
·
F32
·
MLX
Hardware compatibility
Log In to add your hardware

5-bit

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

Model tree for gpustack/Inkling-2-Mini-MLX-5bit-dynamic

Quantized
(16)
this model

Collection including gpustack/Inkling-2-Mini-MLX-5bit-dynamic