Run this model with HF Jobs

Run brendanboyle/Inkling-2-Mini-Codex-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-Codex-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-Codex-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-Codex-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-Codex-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.
brendanboyle's picture
Release v0.1.0 with standalone MLX-LM and oMLX adapters
dbe026e verified
|
Raw History Blame Contribute Delete
3.74 kB
---
license: apache-2.0
library_name: mlx
base_model:
- harness-hub/Inkling-2-Mini-codex-adapted
- mlx-community/Inkling-2-Mini-4bit
- mlx-community/Inkling-2-Mini-oQ3e-mtp
base_model_relation: adapter
pipeline_tag: text-generation
tags:
- harness-adapter
- inkling2
- lora
- mlx
- omlx
- apple-silicon
- codex
---
# Inkling 2 Mini Codex adapter for MLX and oMLX
A standalone port of [Harness Hub's Codex LoRA](https://huggingface.co/harness-hub/Inkling-2-Mini-codex-adapted) for Inkling 2 Mini at reasoning effort **high**. The root of this repo holds the 53.5 MB MLX-LM adapter. The [oMLX folder](./omlx) holds the 108.2 MB packed adapter. Both preserve the 192 original float32 factors and the LoRA multiplier.
## Use with oMLX
Download the two files under `omlx/` and put them in their own folder inside an oMLX model directory. Use the tested [oQ3e MTP base](https://huggingface.co/mlx-community/Inkling-2-Mini-oQ3e-mtp/tree/5552e32ec7a50fa8e9b0bfe2002aab72f8b78975).
~~~sh
omlx_model_dir="$HOME/.omlx/models"
snapshot="$(hf download brendanboyle/Inkling-2-Mini-Codex-MLX --revision v0.1.0 \
omlx/adapter_config.json omlx/adapters.safetensors --quiet)"
adapter_dir="$omlx_model_dir/Inkling-2-Mini-Codex-oMLX"
mkdir -p "$adapter_dir"
cp "$snapshot/omlx/adapter_config.json" "$snapshot/omlx/adapters.safetensors" "$adapter_dir/"
~~~
Set `omlx_model_dir` to your configured model directory. Refresh discovery, then open the oQ3e base model's **Model Settings → Advanced** and select the adapter. Save and reload the model. The smoke test used oMLX 0.8.4 with Lightning MTP off. [oMLX adapter settings](https://github.com/jundot/omlx/pull/5449)
For Codex, use the oMLX OpenAI Responses endpoint at `/v1/responses`. The MLX-LM server command below exposes Chat Completions.
## Use with MLX-LM
An existing Inkling-capable MLX-LM server can use the two files at the repo root with `--adapter-path`. Set the chat template's `reasoning_effort` to `high`. The tested base was [Inkling 2 Mini 4bit](https://huggingface.co/mlx-community/Inkling-2-Mini-4bit/tree/9c0e2960609ba7cb40daf92c6f7bf8ed56e1dd62).
To reproduce the tested server, download this repo's `pyproject.toml` and `uv.lock` into the same directory and run these commands there.
~~~sh
uv sync --locked --extra apple
adapter_snapshot="$(uv run --no-sync hf download brendanboyle/Inkling-2-Mini-Codex-MLX \
--revision v0.1.0 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"}'
~~~
## Validation and provenance
The MLX-LM loader loaded 96 projections and all 192 tensors on the pinned 4-bit base. oMLX applied all 56 packed projections on oQ3e. Both servers returned the expected structured function call in a smoke test, using Chat Completions on MLX-LM and Responses on oMLX. These are serving compatibility checks. Harness-level results are on the upstream card. [Validation](validation.json) · [MLX-LM provenance](provenance.json) · [oMLX provenance](omlx/provenance.json)
To reproduce the conversions from the pinned PEFT files, run `uv run --no-sync python convert.py --source codex dist/adapter` and `uv run --no-sync python convert_omlx.py --source codex dist/omlx` from a checkout containing the converter scripts.
Harness Hub trained the original adapter and Thinking Machines Lab made the Inkling base. [License](LICENSE) · [Notice](NOTICE) · [Thinking Machines model use policy](https://thinkingmachines.ai/model-acceptable-use-policy/)