Instructions to use staccs/Qwen3-32B-lecore-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use staccs/Qwen3-32B-lecore-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("staccs/Qwen3-32B-lecore-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use staccs/Qwen3-32B-lecore-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "staccs/Qwen3-32B-lecore-mlx"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "staccs/Qwen3-32B-lecore-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use staccs/Qwen3-32B-lecore-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "staccs/Qwen3-32B-lecore-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "staccs/Qwen3-32B-lecore-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "staccs/Qwen3-32B-lecore-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use staccs/Qwen3-32B-lecore-mlx with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "staccs/Qwen3-32B-lecore-mlx"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default staccs/Qwen3-32B-lecore-mlx
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use staccs/Qwen3-32B-lecore-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "staccs/Qwen3-32B-lecore-mlx"
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 "staccs/Qwen3-32B-lecore-mlx" \ --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"
Qwen3-32B-lecore-mlx
MLX mixed-precision quantization of Qwen/Qwen3-32B, with the bit width of every
linear layer picked by leCore Unicron requantize (per-tensor bits chosen by measurement), ported to GPU for this model size.
How the bits were chosen
- Each decoder linear tensor was quantized alone (MLX affine, group 64) at 2, 3 and 4 bits; the damage was measured as KL(fp16 || quantized) on next-token distributions over a calibration mix (3066 WikiText-2 train tokens, 1022 Python-source tokens, and leCore's structured probe: prose, code, SQL, markdown).
- Bits were assigned greedily: start at 4 bits everywhere, repeatedly take the downgrade with the least measured damage per byte saved until the predicted file size fit the budget. Embeddings 4-bit, lm_head 6-bit, group size 64.
- Converted with
mlx_lm.convertand a per-layerquant_predicate. Bit histogram (linear tensors): {'2': 177, '3': 190, '4': 81, '8': 0}.
Measured results (held-out: WikiText-2 test + a different Python-source slice, seq 512)
Perplexity was computed on the exact shipped weights (MLX tensors dequantized with mx.dequantize, run in bf16 on GPU).
"bpw" = integer bits + 0.5 for the bf16 scale/bias per group of 64.
| Model | Size (GB, weights) | bpw | WikiText-2 ppl (32704 tok) | Python-code ppl (8176 tok) |
|---|---|---|---|---|
| bf16 reference | โ | 16 | 9.7287 | 3.5031 |
| this repo (leCore Unicron mix) | 13.00 | 3.173 | 13.4162 | 4.5586 |
| stock MLX 3-bit, group 64 | 14.33 | 3.500 | 39.0780 | 7.4644 |
Benchmarks (lm-eval-harness 0.4.9, run on the shipped weights dequantized to bf16 on GPU)
MMLU 5-shot on the first 10 questions of each of the 57 subjects; GSM8K 5-shot on the first 100 test problems (greedy, 320 new tokens, no chat template). These are subsets, so expect about ยฑ2โ4 points of sampling noise.
| Model | MMLU (5-shot) | GSM8K strict | GSM8K flexible |
|---|---|---|---|
| leCore mix (this repo) | 80.0% | โ | โ |
Only measured numbers are reported. No downstream-task benchmarks were run. Short-context perplexity does not tell you everything about quality, so check outputs for your own use case.
Files in this repo
| file | size | what it is |
|---|---|---|
model-00001-of-00003.safetensors |
5.35 GB | quantized weights |
model-00002-of-00003.safetensors |
5.36 GB | quantized weights |
model-00003-of-00003.safetensors |
2.29 GB | quantized weights |
tokenizer.json |
11.4 MB | tokenizer |
vocab.json |
2.8 MB | config / tokenizer |
merges.txt |
1.7 MB | support file |
model.safetensors.index.json |
137.9 KB | config / tokenizer |
config.json |
97.5 KB | model config |
tokenizer_config.json |
5.4 KB | config / tokenizer |
chat_template.jinja |
4.2 KB | chat template |
added_tokens.json |
707 B | config / tokenizer |
Usage (Apple Silicon)
pip install -U mlx-lm
mlx_lm.generate --model staccs/Qwen3-32B-lecore-mlx --prompt "Hello" --max-tokens 256 --max-kv-size 8192
Weights are ~13.00 GB. On a 36 GB Mac you may need to raise the GPU wired-memory limit, e.g. sudo sysctl iogpu.wired_limit_mb=30000.
License
Base model: Qwen/Qwen3-32B, released by the Qwen team under the Apache License 2.0 (https://huggingface.co/Qwen/Qwen3-32B/blob/main/LICENSE). Only quantization was done here: no retraining.
Related builds
Same base model, other formats in the lecore set:
| repo | format | size |
|---|---|---|
| Qwen3-32B-lecore-19g-GGUF | GGUF (llama.cpp) | 38.40 GB |
| Qwen3-32B-lecore-19g-mlx | MLX (Apple Silicon) | 18.64 GB |
| Qwen3-32B-lecore-GGUF | GGUF (llama.cpp) | 32.88 GB |
| Qwen3-32B-lecore-hrr | gated-HRR gates | 4.4 MB |
- Downloads last month
- 256
3-bit
Model tree for staccs/Qwen3-32B-lecore-mlx
Base model
Qwen/Qwen3-32B