How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "Irfanuruchi/Qwen2.5-0.5B-Instruct-MLX-4bit"
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "mlx-lm": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "Irfanuruchi/Qwen2.5-0.5B-Instruct-MLX-4bit"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

Qwen2.5-0.5B-Instruct (MLX, 4-bit)

This repository contains an MLX-converted and 4-bit quantized version of Qwen/Qwen2.5-0.5B-Instruct.

  • No fine-tuning or training was performed
  • Format conversion + post-training quantization only
  • Recommended default for on-device usage

Usage

pip install -U mlx-lm
mlx_lm.generate \
  --model Irfanuruchi/Qwen2.5-0.5B-Instruct-MLX-4bit \
  --prompt "Write a helpful onboarding message for an iOS app in 3 bullet points."

Bench notes (MacBook Pro M3 Pro)

  • Prompt tokens: 45
  • Generation tokens: 100
  • Generation speed: ~292.9 tokens/sec
  • Peak memory: ~0.319 GB

Tooling

  • mlx-lm: 0.30.2
  • mlx: bundled with Apple MLX (no public version string)

Related models

Downloads last month
9
Safetensors
Model size
77.3M params
Tensor type
BF16
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Irfanuruchi/Qwen2.5-0.5B-Instruct-MLX-4bit

Quantized
(253)
this model