Instructions to use jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct 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("jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct") 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 jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct"
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": "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct 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 "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct"
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 jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct"
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 "jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct" \ --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.8-27B UD-Q3_K_XL โ MLX GPTQ-direct (native MLX, 3-bit dynamic)
Native-MLX port of unsloth's UD-Q3_K_XL dynamic quantization for
Qwen/Qwen3.8-27B. Instead of converting GGUF weights, this build runs the
quantizer search natively in MLX's affine format (group size 64) and writes
final MLX weights directly โ no GGUF round-trip, no mlx_lm.convert
re-quantization step.
Perplexity (wikitext-2-raw first 32k tokens, 512-token windows, greedy NLL โ
identical math to llama-perplexity):
| Build | PPL โ |
|---|---|
| unsloth UD-Q3_K_XL GGUF in llama.cpp | 6.896 |
| this model (GPTQ-direct) | 8.090 |
| MLX imatrix-weighted (no GPTQ) | 8.136 |
| MLX plain RTN (same bit map) | 8.169 |
Best published native-MLX Q3 for this model family to our knowledge. Full methodology and history: ud2mlx repo.
Method
- Bit map taken from unsloth's
Qwen3.8-27B-UD-Q3_K_XL.gguf(per-tensor bits, unsloth's dynamic layer selection). - Importance weighting from unsloth's published imatrix (per-column activation energies from their calibration set).
- GPTQ with real activation Hessians captured on 128ร512 = 65,536 calibration tokens (wikitext-2-train-raw) โ full-rank for every input dim up to I=17408. Sequential error feedback through each block.
- Per-group affine parameters are fixed before feedback (importance- weighted candidate search with margin headroom), so the emitted weights are exactly what the feedback pass produced โ zero re-binning loss.
embed_tokensandlm_headhave no block-input Hessian โ RTN with the same affine search (uniform importance). lm_head at 5 bits.
14 GB, 498 quantized tensors, group size 64, avg ~4.4 bits on quantized modules (2-bit MLP-heavy early layers up to 8-bit norms/router).
Usage
pip install mlx-lm
mlx_lm.generate --model jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct \
--prompt "Explain quantum tunneling" --max-tokens 256
Works with any MLX runtime that loads mlx-lm models (oMLX, etc.).
Limitations
- Affine vs IQ-codebook gap. MLX's quantized matmul only supports uniform affine grids; unsloth's โค3-bit GGUFs use non-linear IQ codebooks (E8-lattice / super-block formats). At 3 bits this costs ~+1.2 PPL vs the GGUF; at 2 bits the gap widens to ~+1.95 (details). This is a runtime-kernel limitation of MLX, not a property of the weights.
- Embed/lm_head are RTN, not GPTQ (no activation Hessians available at those positions in the current capture harness).
- Text-only. The visual tower of the base checkpoint is not included.
- Eval scope: perplexity measured on wikitext-2 only, 32k tokens. Downstream task quality (coding, math, multilingual) is not yet characterized; low-bit dynamic quants typically degrade non-uniformly.
- Not for further training โ quantized weights are frozen codes; use the fp16 base for fine-tuning.
- Quality can vary by prompt/domain; the late-window PPL drift visible in sequential evals suggests domain sensitivity typical of low-bit quants.
Calibration data
- GPTQ Hessians: wikitext-2-train-raw, first 65,536 tokens.
- Importance weighting: unsloth's published
imatrix_unsloth.gguf(their calibration mixture).
Credits
- unsloth โ dynamic bit maps + imatrix
- mlx-lm โ MLX runtime
- Pipeline: jclyons52/ud2mlx
Built 2026-08-28. Base model license inherited from Qwen/Qwen3.8-27B.
- Downloads last month
- 61
Quantized
Model tree for jclyons52/Qwen3.8-27B-UD-Q3_K_XL-MLX-gptq-direct
Base model
Qwen/Qwen3.8-27B