Instructions to use TokenAI-zer/Swift-Qwen3.8-27b-oQ8-mtp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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("TokenAI-zer/Swift-Qwen3.8-27b-oQ8-mtp") config = load_config("TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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 TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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 "TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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": "TokenAI-zer/Swift-Qwen3.8-27b-oQ8-mtp" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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 "TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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 TokenAI-zer/Swift-Qwen3.8-27b-oQ8-mtp
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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 "TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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 "TokenAI-zer/Swift-Qwen3.8-27b-oQ8-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"
Swift-Qwen3.8-27b-oQ8-mtp
Unofficial 8-bit MLX quantization of ukisai/Swift-Qwen3.8-27b for Apple Silicon. The MTP head is retained. This is an MLX safetensors repository, not GGUF or PyTorch.
The source model and its license belong to UkisAI. I am not affiliated with UkisAI. See License and attribution before using or redistributing these weights.
This variant
| Property | Value |
|---|---|
| Quantization | 8-bit affine, group size 64 |
| Weight size | 27.94 GiB (30.00 GB) across 6 safetensors shards |
| Whole model directory | 27.96 GiB (30.02 GB) |
| Architecture | Qwen3_5ForConditionalGeneration, with vision tower |
| Context limit in config | 262,144 tokens; usable context depends on available memory |
| MTP | 1 hidden layer and 29 tensors in the weight index |
These values come from the shipped config.json, model.safetensors.index.json and local files. The quantization_config has a uniform 8-bit setting; unlike the oQ4 and oQ6 variants, it contains no module-specific bit overrides. Quantization is lossy, and this variant has no published post-quantization benchmark results.
Pick a variant
| oQ4-mtp | oQ6-mtp | oQ8-mtp | |
|---|---|---|---|
| Weights on disk | 15.81 GiB (16.97 GB), 4 shards | 22.09 GiB (23.72 GB), 5 shards | 27.94 GiB (30.00 GB), 6 shards |
| Weight precision | mixed 4/5-bit | mixed 6/8-bit | uniform 8-bit |
| Quantization | affine, group size 64 | affine, group size 64 | affine, group size 64 |
| Choose when | prioritize memory headroom | balance size and weight precision | prioritize weight precision and have more memory |
All three retain the MTP head. Task-level accuracy and speed after quantization have not been measured here. Runtime memory also depends on context length and KV cache.
Use with oMLX
Download the repository into the oMLX model directory:
hf download TokenAI-zer/Swift-Qwen3.8-27b-oQ8-mtp --local-dir ~/.omlx/models/Swift-Qwen3.8-27b-oQ8-mtp
omlx serve --model-dir ~/.omlx/models --port 8000
The model ID is Swift-Qwen3.8-27b-oQ8-mtp. In oMLX, enable the MTP speculative head to use the included MTP weights. Without that setting, the model can still run but the extra head does not accelerate decoding.
The architecture is multimodal. Use an MLX runtime with Qwen3.5 vision support. The 262k context value is an architecture limit, not a memory guarantee.
Sampling
The shipped generation_config.json comes from the upstream checkpoint. Start with its settings for thinking mode: temperature 1.0, top_p 0.95, top_k 20 and repetition_penalty 1.0. Adjust for your task after checking output quality.
License and attribution
The upstream model identifies its license as Swift Open License v1.0. Its published terms apply to this derivative quantization; this repository does not grant a separate license to the upstream weights. See LICENSE-NOTICE.md for attribution and upstream links.
Citation
@misc{swift-qwen3.8-27b-oq8-mtp,
title = {Swift-Qwen3.8-27b-oQ8-mtp: 8-bit MLX quantization with MTP head},
author = {TokenAI-zer},
year = {2026},
url = {https://huggingface.co/TokenAI-zer/Swift-Qwen3.8-27b-oQ8-mtp},
note = {Unofficial quantization of ukisai/Swift-Qwen3.8-27b}
}
- Downloads last month
- 167
8-bit