Instructions to use nativ-community/Inkling-2-Mini-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use nativ-community/Inkling-2-Mini-6bit with MLX:
# 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("nativ-community/Inkling-2-Mini-6bit") config = load_config("nativ-community/Inkling-2-Mini-6bit") # 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) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use nativ-community/Inkling-2-Mini-6bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nativ-community/Inkling-2-Mini-6bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "nativ-community/Inkling-2-Mini-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use nativ-community/Inkling-2-Mini-6bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nativ-community/Inkling-2-Mini-6bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default nativ-community/Inkling-2-Mini-6bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use nativ-community/Inkling-2-Mini-6bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "nativ-community/Inkling-2-Mini-6bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "nativ-community/Inkling-2-Mini-6bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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
6-bit
Model tree for nativ-community/Inkling-2-Mini-6bit
Base model
thinkingmachines/Inkling-2-Mini