Instructions to use pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit"
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": "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit 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 "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit"
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 pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit"
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 "pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit" \ --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"
Aion 1.0 Instruct 2.3B (MLX 4-bit)
MLX 4-bit conversion of microsoft/Aion-1.0-Instruct-2.3B, a ~2.29B instruct model with 32K context from the Microsoft Windows Applied Sciences Group. Quantization is affine 4-bit with group size 64 (4.501 bpw, 1.20 GiB weights).
This is not the first community conversion. Other MLX and GGUF builds already exist, including Xylolabs/Aion-1.0-Instruct-2.3B-MLX-4bit and AtomicChat/Aion-1.0-Instruct-2.3B-GGUF. Those were not tested here.
License
MIT License, Copyright (c) Microsoft Corporation. The official LICENSE text is included in this repo. The bundled MLX port follows Microsoft's published modeling code and is also under MIT, with layout adapted from mlx-lm (MIT, Copyright Apple Inc.).
Credit to the Microsoft Windows Applied Sciences Group for Aion 1.0 Instruct 2.3B.
Using the bundled port
Stock mlx-lm 0.32.2 cannot load the aion_instruct model type. This repo bundles a small MLX port as aion_instruct.py (also at port/aion_instruct.py). The port was checked against Microsoft's PyTorch code, and the outputs matched (last-token top-1 match on prompts of 49, 53, and 2308 tokens; last-token cosine 0.99997, 0.99995, and 0.99988 in BF16 versus Microsoft's MPS reference).
config.json sets model_file to aion_instruct.py. Load with trust_remote_code=True so mlx-lm can import that file:
from mlx_lm import load, generate
model, tokenizer = load(
"pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit",
tokenizer_config={"trust_remote_code": True},
trust_remote_code=True,
)
messages = [{"role": "user", "content": "Hello"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=128))
Local speed on a 64GB M5 Pro Mac mini
Measured on 25 November 2026, macOS 27.0.1, mlx 0.32.4, mlx-lm 0.32.2. Temperature 0, 256 generated tokens, median of 3 runs after one warmup. Full results are in the dataset linked below.
| Prompt tokens | Generation tok/s | Peak memory (GiB) |
|---|---|---|
| 512 | 155.00 | 1.89 |
| 4096 | 147.66 | 2.40 |
| 32512 | 99.92 | 3.17 |
Peak memory is MLX's reported peak, in GiB (1024^3). A cross-check with mlx_lm.benchmark on random 512/256 prompts averaged 168.49 tok/s. On a 10-item sanity set this 4-bit build scored 9/10. A 32K needle test was 0/3.
Links
- Benchmark dataset: pratikgx/aion-1.0-instruct-2.3b-m5-pro-mac-mini-bench
- Field note: notes/2026-11-25-microsoft-aion-1.0-instruct-2.3b.md
- Base model: microsoft/Aion-1.0-Instruct-2.3B
Write-up on GitHub
How I ran this, what broke, and the scripts: Aion 1.0 Instruct 2.3B on a 64GB M5 Pro Mac mini. It's part of Local AI field notes, where I log every model I run on my Mac mini.
- Downloads last month
- 57
4-bit
Model tree for pratikgx/Aion-1.0-Instruct-2.3B-MLX-4bit
Base model
microsoft/Aion-1.0-Instruct-2.3B