Instructions to use NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp") config = load_config("NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp"
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": "NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp 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 "NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp"
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 NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp"
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 "NapYang/Qwen3.8-27B-pi-oQ4e-fp16-mtp" \ --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-pi-oQ4e-fp16-mtp
This model is a 4-bit quantization of bytkim/Qwen3.8-27B-pi, quantized using oQ (oMLX v0.7.3) with the improved oQe structure.
A mixed-precision MLX checkpoint of the Qwen3.8-27B-pi coding model鈥攁 27B dense vision-language model built on the Qwen3.5 architecture, with a hybrid layout of Gated DeltaNet and Gated Attention layers, image and video understanding and a 262,144-token native context. It includes the language model, the vision encoder and the multi-token prediction (MTP) head.
This FP16 build stores the quantization scales and biases and the remaining unquantized tensors in FP16 instead of BF16, and keeps the vision encoder in FP32.
The effective average is 4.840 bits/weight for the language backbone and 5.310 bits/weight for the complete checkpoint.
Benchmark
| Benchmark | Score | Hardware | Notes |
|---|---|---|---|
| MBPP | 87.0% (87/100) | M2 Max (30c) 32GB | 100 of 500 questions, seed 42, thinking enabled, MTP on |
| HumanEval | 93.0% (93/100) | M2 Max (30c) 32GB | 100 of 164 questions, seed 42, thinking enabled, MTP on |
MBPP: 89/100 answers completed within the token limit; of those completed answers, 97.8% are correct (87/89). 11/100 hit the token limit.
HumanEval: 97/100 answers completed within the token limit; of those completed answers, 95.9% are correct (93/97). 3/100 hit the token limit.
Full results: MBPP 路 HumanEval
Quantization and Bit Distribution
Quantized with oMLX 0.7.3 using oQ4e, which allocates bits by measured layer sensitivity, then rounds each group with an importance matrix and a weighted least-squares refit of its scale and bias. Per-layer bit assignments follow Jundot/Qwen3.8-27B-oQ4e-fp16-mtp (same architecture).
| Storage format | Logical weights | Share of total | Tensor storage | Effective bits/weight |
|---|---|---|---|---|
| Affine 4-bit, group 64 | 19.393B | 69.807% | 10.160 GiB | 4.50 |
| Affine 5-bit, group 64 | 6.579B | 23.680% | 4.212 GiB | 5.50 |
| Affine 6-bit, group 64 | 1.282B | 4.615% | 0.970 GiB | 6.50 |
| Affine 8-bit, group 64 | 0.011B | 0.041% | 0.011 GiB | 8.50 |
| FP16 | 0.055B | 0.198% | 0.103 GiB | 16.00 |
| FP32 | 0.461B | 1.658% | 1.716 GiB | 32.00 |
| Total | 27.781B | 100% | 17.172 GiB | 5.310 |
Storage Breakdown
| Component | Logical weights | Storage |
|---|---|---|
| Language backbone | 26.896B | 16.272 GB / 15.155 GiB |
| Vision encoder | 0.461B | 1.843 GB / 1.716 GiB |
| MTP head | 0.425B | 0.323 GB / 0.301 GiB |
| Total | 27.781B | 18.439 GB / 17.172 GiB |
License
Apache-2.0, following the source model.
- Downloads last month
- 216
4-bit