Instructions to use tfjack/Qwen3.8-27B-oQ4e-fp16-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use tfjack/Qwen3.8-27B-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("tfjack/Qwen3.8-27B-oQ4e-fp16-mtp") config = load_config("tfjack/Qwen3.8-27B-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 tfjack/Qwen3.8-27B-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 "tfjack/Qwen3.8-27B-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": "tfjack/Qwen3.8-27B-oQ4e-fp16-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use tfjack/Qwen3.8-27B-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 "tfjack/Qwen3.8-27B-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 tfjack/Qwen3.8-27B-oQ4e-fp16-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use tfjack/Qwen3.8-27B-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 "tfjack/Qwen3.8-27B-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 "tfjack/Qwen3.8-27B-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-oQ4e-fp16-mtp
This is an oQe (Enhanced Quantization) build of Qwen/Qwen3.8-27B, converted and optimized for Apple Silicon using oMLX.
It is a multimodal (vision-language) model — the vision tower is preserved at float16, unchanged, so image and video understanding remain fully intact alongside the quantized language model.
Card generation: This model card was drafted with the assistance of an AI coding interface. All technical content — quantization details, sampling parameters, output-length guidance, and the citation — is reproduced from the official
Qwen/Qwen3.8-27Bmodel card and the quantization configuration.
Quantization Details
- Base Model:
Qwen/Qwen3.8-27B - Quant Scheme: oQe enhanced — imatrix-enhanced dynamic mixed-precision with sensitivity-driven bit allocation
- Effective Bits-per-Weight: ~4.9 bpw (oQ4e)
- Output File Size: 16.66 GiB (17.89 GB)
- Context Length: 262,144 tokens natively; up to 1,000,000 with YaRN (RoPE) scaling
- Non-Quantized Precision:
float16(chosen for ~20% faster prefill on M1/M2; M3 and newer default to bfloat16, which is natively supported at full speed) - Vision Encoder: Preserved at
float32 - MTP Support: Preserved (Multi-Token Prediction heads intact)
- Format: MLX
safetensors(compatible with oMLX,mlx-lm, and LM Studio MLX runtime)
Compatibility & Runtimes
This model works out-of-the-box on Apple Silicon with:
- oMLX Engine: Native support for MTP draft heads and SSD-tiered KV prompt caching.
mlx-lm/mlx-vlm: Standard Apple Silicon python runtime (usemlx-vlmfor image input).- LM Studio: Load via the native MLX engine (
mlx-engine).
Recommended Usage (from the Base Model Card)
Because this is a quantization of Qwen/Qwen3.8-27B, the base model's own recommended settings apply directly to this quant. These settings come from the base model's official Best Practices and are recommended for optimal performance:
Recommended Sampling Parameters
| Mode | temperature | top_p | top_k | min_p | presence_penalty | repetition_penalty |
|---|---|---|---|---|---|---|
| Thinking | 1.0 | 0.95 | 20 | 0.0 | 0.0 | 1.0 |
| Instruct (non-thinking) | 0.7 | 0.80 | 20 | 0.0 | 1.5 | 1.0 |
Thinking mode is on by default; reasoning depth can be tuned with reasoning_effort (default xhigh; also medium and low). For supported frameworks, presence_penalty can be raised up to 2 to reduce repetition.
Output Length
The base model recommends allocating sufficient output length for agentic tasks. For frameworks that support separate token limits for reasoning and final output, it suggests (within the 1M context length): Reasoning Content — 262,144 tokens, Final Response — 131,072 tokens.
Local runtimes (oMLX,
mlx-lm/mlx-vlm, LM Studio) expose a singlemax_tokenslimit that covers both reasoning and the final answer, so these budgets cannot be set separately. On Apple Silicon the native context window is 262,144 tokens; the 1M extension requires RoPE (YaRN) scaling, which is supported by serving frameworks like vLLM/SGLang/TokenSpeed but is not exposed in oMLX itself.
Citation
If you use this quantization, please cite the base model:
@misc{qwen38,
title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
url = {https://qwen.ai/blog?id=qwen3.8},
author = {{Qwen Team}},
month = {August},
year = {2026}
}
- Downloads last month
- -
4-bit
Model tree for tfjack/Qwen3.8-27B-oQ4e-fp16-mtp
Base model
Qwen/Qwen3.8-27B