Instructions to use randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only 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("randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only") 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 randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only"
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": "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only 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 "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only"
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 randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only"
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 "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only" \ --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"
How to use from
PiConfigure 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": "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only"
}
]
}
}
}Run Pi
# Start Pi in your project directory:
piQuick Links
randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only
This is an MXFP4 MLX quantization of Qwen/Qwen3.8-27B for Apple Silicon inference.
Text-generation-only: all 333 vision weights in BF16 were removed.
MXFP4 vs 4Bit Quantization Comparison
| Parameter | MXFP4 |
4Bit |
|---|---|---|
| Quantization format | 4‑bit floating point with microscaling, group 32, shared exponent E8M0 | 4‑bit integer (INT4/NF4) |
| Tensor types | U8, U32, BF16 | BF16, U32 |
Parameter size (safetensors) |
~14.3 GB | ~15.13 GB |
| Total storage (all files) | ~14.32 GB | ~15.15 GB |
| Hardware support | Most efficient on GPUs with microscaling / FP8 tensor core support | Broad support, but often requires specialized INT4 kernels |
| Apple Silicon compatibility | Designed with hardware microscaling support in Apple Neural Engine / GPU | Works, but without specialized Neural Engine optimization |
| Inference speed | Higher on compatible hardware: FP path, lower dequantization overhead, higher throughput | Kernel‑dependent; usually lower or comparable at similar quality |
| Quality | Better preserves dynamic range, less degradation on outliers | Higher risk of accuracy loss on outliers at the same bitrate |
Key takeaways:
- Parameter size: The MXFP4 version has a smaller
safetensorsfootprint: ~14.3 GB vs ~15.13 GB for the 4-bit version. - Total storage: MXFP4 also occupies less total disk space: ~14.32 GB vs ~15.15 GB when summing all repository files.
- Vision weights removed: Both repositories are text-generation-only. All 333 vision weights in BF16 were removed to reduce size and focus inference on text generation.
- Performance: MXFP4 typically delivers higher inference throughput on hardware with microscaling/FP8 support, especially on Apple Silicon. The shared exponent per group of 32 elements reduces dequantization overhead and enables use of floating‑point tensor cores.
- Apple Silicon optimization: MXFP4 is designed with Apple Neural Engine / GPU microscaling support in mind, making it the recommended choice for MacBook.
- Quality: MXFP4 preserves dynamic range better, so generation quality can be higher at the same compression level.
Actual speed depends on the backend, GPU, batch size, and quantization implementation.
- Downloads last month
- 209
Model size
27B params
Tensor type
U32
·
BF16 ·
Hardware compatibility
Log In to add your hardware
4-bit
Model tree for randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only
Base model
Qwen/Qwen3.8-27B
Start the MLX server
# Install MLX LM: uv tool install mlx-lm# Start a local OpenAI-compatible server: mlx_lm.server --model "randmaru/Qwen3.8-27B-mlx-mxfp4-text-generation-only"