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("Shiftedx/Inkling-2-Mini-MTPLX-Native-Experts-Mixed")
config = load_config("Shiftedx/Inkling-2-Mini-MTPLX-Native-Experts-Mixed")

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

Inkling-2-Mini-MTPLX-Native-Experts-Mixed

Field Value
Source Inkling 2 Mini · b85c3cf
Weight size 18.19 GB / 16.94 GiB
Routed experts Native NVFP4, layers 0–19 · native MXFP8, layers 20–23
Dense quant Group-64 affine: 4-bit attention and embeddings · 8-bit head
BF16 Five retained attention output projections · all 422 vision tensors
Draft Original DSpark, bundled
Runtime tested MTPLX 2.13.2 · M4 Max 64 GiB · greedy · 4K window · nine short requests
Target-only decode / end-to-end 64.1 / 58.7 tok/s
DSpark decode / end-to-end 73.2 / 64.5 tok/s
Greedy API output parity 9/9 vs target-only
Full Shiftedx Bench Pending
hf download Shiftedx/Inkling-2-Mini-MTPLX-Native-Experts-Mixed --local-dir ./inkling-mini
mtplx serve --model ./inkling-mini --generation-mode mtp --context-window 4096
Downloads last month
82
Safetensors
Model size
27B params
Tensor type
F32
·
U32
·
BF16
·
U8
·
F8_E4M3
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for Shiftedx/Inkling-2-Mini-MTPLX-Native-Experts-Mixed

Quantized
(281)
this model