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 "majentik/Qwen2.5-1.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 "majentik/Qwen2.5-1.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-1.5B-Instruct-MLX-4bit

Plain affine 4-bit (group-size 32) MLX quantization of Qwen/Qwen2.5-1.5B-Instruct. This is the baseline sibling of the DWQ pack — for higher quality at the same size and bit-width, use the DWQ variant (perplexity 9.45 vs 9.86 here).

Variants

Variant Size Status
Qwen2.5-1.5B-Instruct-MLX-8bit 1.5 GB teacher
Qwen2.5-1.5B-Instruct-MLX-4bit 0.93 GB this repo — plain affine 4-bit (gs32)
Qwen2.5-1.5B-Instruct-MLX-4bit-DWQ 0.93 GB DWQ (recommended)

Reproduce

python -m mlx_lm convert --hf-path Qwen/Qwen2.5-1.5B-Instruct \
  --mlx-path Qwen2.5-1.5B-Instruct-MLX-4bit -q --q-bits 4 --q-group-size 32

Group-size 32 per docs/quantization-policy.md rule 1 (doubles tunable scale/bias params at low bit width).

Usage

pip install mlx-lm
python -m mlx_lm generate --model majentik/Qwen2.5-1.5B-Instruct-MLX-4bit \
  --prompt "The capital of France is"

License

Apache-2.0, inherited from the base model Qwen/Qwen2.5-1.5B-Instruct.

Downloads last month
13
Safetensors
Model size
2B params
Tensor type
U32
·
BF16
·
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 majentik/Qwen2.5-1.5B-Instruct-MLX-4bit

Quantized
(272)
this model

Collection including majentik/Qwen2.5-1.5B-Instruct-MLX-4bit