Text Generation
MLX
Safetensors
English
Chinese
qwen3_5
mixed-precision
coding
tool-use
experimental
conversational
3-bit
Instructions to use Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast 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("Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast") 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 Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast"
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": "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast 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 "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast"
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 Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast"
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 "Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast" \ --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"
File size: 3,318 Bytes
d6ed80b d002e2f d6ed80b d002e2f d6ed80b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | ---
license: apache-2.0
library_name: mlx
pipeline_tag: text-generation
base_model: Jackrong/Qwopus3.8-27B-Coder-Flash
base_model_relation: quantized
language:
- en
- zh
tags:
- mlx
- mixed-precision
- qwen3_5
- coding
- tool-use
- experimental
inference: false
---
# Qwopus3.8-27B Coder Flash · MLX Fast
**16.59 GB weights · 5/8 executable coding smoke · 64K/128K retrieval, tools and cached coding passed.** Select Balanced for the higher local coding score, Fast for lower memory and faster decode.
3-bit/4-bit group-64 body. Full/recurrent attention at 4-bit; embeddings/head at 8-bit. Sensitivity-ranked MLP promotions. Both retain 96 BF16 recurrent gating projections, publisher tokenizer/template, BF16 vision and native MTP. [Exact precision recipe](quantization_recipe.json).
| Local replay | 64K | 128K |
|---|---:|---:|
| Prompt tokens | 61,441 | 126,976 |
| Cold turn | 194.00 s | 580.07 s |
| Cached coding decode | 82.4 tok/s | 63.7 tok/s |
M4 Max 40-core GPU / 64 GiB; Kapitsa 0.2.27 + DFlash2; one slot; disk cache off; greedy; thinking off. One run per context cell. The eight-task coding smoke missed CSV trailing empty fields, weighted interval scheduling and TTL-cache semantics. [Evaluation contract](evaluation_summary.json) · [Weight hashes](weights_manifest.json).
```bash
hf download Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Fast --local-dir ./qwopus-fast
hf download incoai/Qwen3.8-27B-DFlash2 --local-dir ./dflash2
kapitsa serve --private --local --model ./qwopus-fast \
--model-id qwopus-coder --context 131072 --slots 1 \
--dflash ./dflash2 --disk-cache 0
```
Use --context 65536 for 64K. Send temperature=0, top_p=1, top_k=0 and chat_template_kwargs={"enable_thinking":false} to /v1/chat/completions. Prompt and output share the limit. DFlash2 is separate.
**Structured JSON / vision.** With the request schemas, both models passed **8/8 original cases twice, 12/12 held-out cases and 8/8 with native MTP3**, graded as exact bare JSON. Apply the matching response_format from [structured_output_profiles.json](structured_output_profiles.json) for OCR, chart, spatial-array or two-image replies. The schemas constrain structure without supplying answers. This request profile fixes the previously observed fences and nested arrays. [Validation](structured_output_validation.json).
| Kapitsa 0.2.31 + DFlash2 | Balanced | Fast |
|---|---:|---:|
| Structured JSON decode | 128.1 tok/s | 165.6 tok/s |
| Code/prose decode | 90.2 tok/s | 108.0 tok/s |
Median of three repetitions on M4 Max / 64 GiB. Native MTP depths 1–3 and DFlash2 each matched plain greedy text on 4/4 short probes. Use --dflash none --spec 3 for native MTP or --spec 0 for plain decoding. [Earlier capability checks](capability_validation.json).
Experimental refusal-direction edit, strength 0.5 on attention outputs in layers 10–17. Refusal reduction and BF16 fidelity unverified. Text, still-image and short MTP checks only; long-context MTP untested.
Converted from pinned Apache-2.0 BF16 using streamed weights. [Jackrong source](https://huggingface.co/Jackrong/Qwopus3.8-27B-Coder-Flash/tree/c7d46e5dadf43ab838f2d594839805b2c2f6ccd3) · [Kapitsa v0.2.27](https://github.com/nace-ai/kapitsa/tree/v0.2.27) · [Other variant](https://huggingface.co/Shiftedx/Qwopus3.8-27B-Coder-Flash-MLX-Balanced).
|