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.
Instructions to use brendanboyle/Inkling-2-Mini-Codex-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use brendanboyle/Inkling-2-Mini-Codex-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("brendanboyle/Inkling-2-Mini-Codex-MLX") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use brendanboyle/Inkling-2-Mini-Codex-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "brendanboyle/Inkling-2-Mini-Codex-MLX" --prompt "Once upon a time"
- Atomic Chat
File size: 3,735 Bytes
dbe026e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | ---
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/)
|