Instructions to use xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp 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("xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp") 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 xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-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 "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-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": "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-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 "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-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 xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-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 "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-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 "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-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"
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": "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp"
}
]
}
}
}Run Pi
# Start Pi in your project directory:
piQwopus3.8-27B-Coder-Flash โ MLX oQ5e-fp16-mtp (Multimodal Vision + MTP)
This is an Apple MLX enhanced oQ5 (oQ5e-fp16-mtp) quantization of Jackrong/Qwopus3.8-27B-Coder-Flash, prepared by xunlinkx using the oMLX quantization pipeline.
This model combines multimodal vision capabilities, multi-token prediction (MTP) speculative decoding, and FP16 target compute specifically tuned for native execution across all Apple Silicon generations (M1, M2, M3, M4, and newer).
Model Details
- Base Model:
Jackrong/Qwopus3.8-27B-Coder-Flash - Architecture:
Qwen3_5ForConditionalGeneration(qwen3_5multimodal with 27-block ViT visual encoder) - Parameters: ~27B dense foundation model
- Quantization: 5-bit enhanced mixed precision (
oQ5e) with affine quantization, group size 64, and strict importance-matrix (imatrix) calibration (128 samples, 512 sequence length). - Target Dtype (
fp16): Non-quantized weights, scales, biases, norms, and embeddings are preserved in FP16 (float16), providing peak hardware execution speed on Apple Silicon M1/M2 chips (which lack native BF16 arithmetic units) while running at full throughput on M3/M4/M5 hardware. - Vision Tower: Preserved intact in full FP16 precision (unquantized) to prevent degradation of OCR, spatial reasoning, diagram parsing, and code screenshot comprehension.
- Speculative Decoding (MTP): Preserves the official multi-token prediction draft heads (
mtp.*) in FP16 precision. When enabled in supported runtimes (oMLX, llama.cpp MTP draft), decoding achieves ~1.4xโ1.7x faster token throughput on coding and agentic reasoning tasks. - License: Apache-2.0 (inherited from the upstream base model).
Key Configurations
Modality & Tensors
- Multimodal Vision: Complete 27-block visual transformer encoder and merger weights preserved in
model.visual.*. - Multi-Token Prediction: Native auxiliary draft heads preserved in
mtp.*withmtp_num_hidden_layers: 1inconfig.json. - Layer Sensitivities: Critical attention projections (
v_proj,q_proj) and MLP down-projections on sensitive layers are boosted to 6-bit/8-bit to protect reasoning depth and indentation adherence.
Usage
With oMLX Server
Add to your ~/.omlx/model_settings.json:
{
"Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp": {
"mtp_enabled": true,
"mtp_num_draft_tokens": 3,
"temperature": 0.2,
"top_p": 0.95
}
}
Start serving:
omlx serve Jackrong/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp --port 8005
Direct Generation with MLX-LM
mlx_lm.generate \
--model Jackrong/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp \
--prompt "<|im_start|>user\nWrite a thread-safe LRU cache in Python with O(1) ops.<|im_end|>\n<|im_start|>assistant\n" \
--max-tokens 512 \
--temp 0.2
Attribution
Base checkpoint and coder-flash fine-tuning by Jackrong. Quantization and MLX packaging by xunlinkx using the oMLX cluster pipeline.
- Downloads last month
- 330
5-bit
Model tree for xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp
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 "xunlinkx/Qwopus3.8-27B-Coder-Flash-oQ5e-fp16-mtp"