How to use from
MLX LM
Generate or start a chat session
# Install MLX LM
uv tool install mlx-lm
# Interactive chat REPL
mlx_lm.chat --model "Irfanuruchi/Qwen2.5-0.5B-Instruct-MLX-4bit"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "Irfanuruchi/Qwen2.5-0.5B-Instruct-MLX-4bit"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "Irfanuruchi/Qwen2.5-0.5B-Instruct-MLX-4bit",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
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