How to use from
OpenClaw
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 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 "Irfanuruchi/Qwen2.5-0.5B-Instruct-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"
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