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 "michaellin/Qwen2.5-Coder-7B-4bit-mlx-dwq-lr1e-7"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "michaellin/Qwen2.5-Coder-7B-4bit-mlx-dwq-lr1e-7"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "michaellin/Qwen2.5-Coder-7B-4bit-mlx-dwq-lr1e-7",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

This model was generated using DWQ quantization to bring the quality of the 4bit quantization closer to 8bit without increasing in size. This was done using mlx-lm version 0.26.3, using --bits 4 --learning-rate 1e-7 --batch-size 1 --group-size 16.

Downloads last month
7
Safetensors
Model size
1B 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 michaellin/Qwen2.5-Coder-7B-4bit-mlx-dwq-lr1e-7

Base model

Qwen/Qwen2.5-7B
Quantized
(1)
this model