Run this model with HF Jobs

Run brendanboyle/Inkling-2-Mini-Pi-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/brendanboyle/Inkling-2-Mini-Pi-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/brendanboyle/Inkling-2-Mini-Pi-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/brendanboyle/Inkling-2-Mini-Pi-MLX. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/brendanboyle/Inkling-2-Mini-Pi-MLX. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Inkling 2 Mini Pi adapter for MLX

A standalone port of Harness Hub’s Inkling 2 Mini Pi LoRA for text and tool calls at high reasoning effort. The release includes a 53.5 MB MLX-LM variant and a 108.2 MB oMLX variant. Both preserve all 192 float32 LoRA factors across 96 source projections and apply at runtime to the corresponding Inkling base.

Other Harness Hub Inkling checkpoints have their own ports. Codex, high effort · Hermes Agent, high effort · Pi preview, no reasoning

Use with oMLX

Use the files in omlx/ with Inkling 2 Mini oQ3e MTP. The two files go in their own folder inside an oMLX model directory. Set omlx_model_dir to the directory configured in your oMLX server.

omlx_model_dir="$HOME/.omlx/models"
adapter_snapshot="$(hf download brendanboyle/Inkling-2-Mini-Pi-MLX \
  --revision v0.2.0 omlx/adapter_config.json omlx/adapters.safetensors --quiet)"
adapter_dir="$omlx_model_dir/Inkling-2-Mini-Pi-oMLX"
mkdir -p "$adapter_dir"
cp "$adapter_snapshot/omlx/adapter_config.json" \
  "$adapter_snapshot/omlx/adapters.safetensors" "$adapter_dir/"

Refresh model discovery if needed. Open the oQ3e base model’s Model Settings → Advanced, select Inkling-2-Mini-Pi-oMLX as the LoRA adapter, save, and reload the model. In Pi, keep the existing oMLX endpoint and base model ID and select high thinking. For the same setup as the smoke tests, keep Lightning MTP off. oMLX LoRA settings

oMLX 0.8.2 and 0.8.4 each applied all 56 packed projections and passed all three Pi file-tool tasks with the adapter. On 0.8.4, the bare base also passed all three. These short tests check compatibility at a fixed budget. oMLX validation

Add the MLX-LM LoRA to an existing server

If you already run Inkling 2 Mini with Pi and your server can load MLX-LM LoRAs, download only the two adapter files. The pinned runtime setup below is for starting a new MLX-LM server.

hf download brendanboyle/Inkling-2-Mini-Pi-MLX \
  --revision v0.1.0 adapter_config.json adapters.safetensors \
  --local-dir ./Inkling-2-Mini-Pi-LoRA

For an existing mlx_lm.server, add --adapter-path ./Inkling-2-Mini-Pi-LoRA to its launch command and restart it. Keep Pi at high reasoning effort. You can keep the same Pi provider settings when the server URL and model ID stay the same.

Set up MLX-LM and Pi from scratch

Use Apple Silicon, Python 3.12, uv, and Pi. The locked MLX-LM revision combines the model loader from MLX-LM PR #2086 and the tool parser from MLX-LM PR #2115. Run one model workload at a time. Check memory_pressure -Q, active trainers, and loaded models in local inference servers before starting.

Run these commands from the project directory.

uv sync --locked --extra apple
adapter_snapshot="$(uv run --no-sync hf download brendanboyle/Inkling-2-Mini-Pi-MLX \
  adapter_config.json adapters.safetensors --quiet)"
base_snapshot="$(uv run --no-sync hf download mlx-community/Inkling-2-Mini-4bit \
  --revision 9c0e2960609ba7cb40daf92c6f7bf8ed56e1dd62 --quiet)"

uv run --no-sync mlx_lm.server --model "$base_snapshot" \
  --adapter-path "$adapter_snapshot" --port 8097 \
  --chat-template-args '{"reasoning_effort":"high"}' --max-tokens 2048

Add the provider to Pi’s models.json. Use default_model so MLX-LM resolves the base and adapter passed on the server command line.

{
  "providers": {
    "inkling-mlx": {
      "baseUrl": "http://127.0.0.1:8097/v1",
      "api": "openai-completions",
      "apiKey": "local",
      "models": [{
        "id": "default_model",
        "reasoning": true,
        "contextWindow": 8192,
        "maxTokens": 2048,
        "compat": {"supportsReasoningEffort": true, "supportsUsageInStreaming": true}
      }]
    }
  }
}

Select the model in Pi and use /thinking high. The server command and provider example use small local smoke-test budgets.

Conversion and validation

convert_omlx.py packs the sliding-window Q, K, and V factors into a rank-96 input projection and pads the full-attention projections with zeros for outputs outside the source LoRA. It checks every original factor bit for bit and compares the resulting updates in float64. oMLX provenance

uv sync --locked
uv run --no-sync python convert_omlx.py dist/omlx

convert.py fetches the pinned PEFT revision, verifies source checksums, transposes each LoRA factor into the MLX layout, and serializes the result. It checks that all factors match bit for bit and that both formats give identical float64 outputs on three probe rows per projection. provenance.json records the inputs and output checksums.

uv run --no-sync python convert.py dist/Inkling-2-Mini-Pi-MLX
uv run --no-sync python verify_mlx.py dist/Inkling-2-Mini-Pi-MLX

All 96 projections and 192 factors loaded bit for bit on a CPU fixture and on the real pinned 4-bit base. Add --base "$base_snapshot" to repeat the full load check. Run the full load separately from the server.

Pi smoke comparison

evaluate_pi.py exercises three verifiable file tasks with Pi. On an M4 Max, both arms completed all three at high effort and temperature 0. Each task ran once per arm with a 120-second timeout and a 2,048-token limit per request. Wall time excludes model loading. Per-task measurements

Arm Passed Generated tokens Tool calls Wall time
Inkling 2 Mini 4-bit 3/3 662 6 21.84 s
Inkling 2 Mini 4-bit + Pi LoRA 3/3 638 6 26.44 s

These three tasks establish that Pi can use the converted adapter for file tools. Broader performance at the upstream evaluation budgets remains unmeasured.

# Run while the adapter server is running.
uv run --no-sync python evaluate_pi.py --arm adapter --output runs/adapter

# Stop the adapter server. Start the same server command without --adapter-path.
uv run --no-sync python evaluate_pi.py --arm base --output runs/base

Attribution

Harness Hub trained the original adapter and Thinking Machines Lab made the base model. This port uses Apache 2.0 with the upstream attributions in NOTICE. See the Thinking Machines Lab model use policy.

Downloads last month

-

Downloads are not tracked for this model. How to track
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 brendanboyle/Inkling-2-Mini-Pi-MLX