Instructions to use ekovshilovsky/Qwen3.5-27B-TQ8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ekovshilovsky/Qwen3.5-27B-TQ8 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("ekovshilovsky/Qwen3.5-27B-TQ8") config = load_config("ekovshilovsky/Qwen3.5-27B-TQ8") # 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 ekovshilovsky/Qwen3.5-27B-TQ8 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ekovshilovsky/Qwen3.5-27B-TQ8"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ekovshilovsky/Qwen3.5-27B-TQ8" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ekovshilovsky/Qwen3.5-27B-TQ8 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 "ekovshilovsky/Qwen3.5-27B-TQ8"
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 ekovshilovsky/Qwen3.5-27B-TQ8
Run Hermes
hermes
Qwen3.5-27B-TQ8
TurboQuant-compressed version of Qwen/Qwen3.5-27B for near-lossless inference on Apple Silicon.
Compressed with turboquant-mlx-core using the TurboQuant algorithm (Zandieh et al., ICLR 2026).
Quality
| Metric | Value |
|---|---|
| fp16 PPL | 1.45 |
| TQ8 PPL | 1.46 |
| PPL delta | 0.18% |
| Compression | 56% of original size |
Qwen3.5-27B is a hybrid architecture (full attention + linear attention + Mamba SSM) that quantizes exceptionally well due to its inherently compressible linear attention layers.
Quantization Config
| Property | Value |
|---|---|
| Method | TurboQuant 4+4 residual (8 effective bits) |
| Rotation | Walsh-Hadamard with hash-based signs |
| Codebooks | Per-layer Lloyd-Max fitted |
| Sensitive layers | First/last 4 at fp16 |
| Block size | Adaptive (largest power-of-2 dividing in_features) |
Usage
# Serve via SwiftLM (dequants to BF16 on first load, cached for subsequent runs)
SwiftLM --model ekovshilovsky/Qwen3.5-27B-TQ8 --port 5413
# Dequant to fp16 for use with any MLX/HuggingFace loader
tq-dequant ./Qwen3.5-27B-TQ8 ./Qwen3.5-27B-fp16
Hardware Requirements
- Apple Silicon Mac (M1 Pro+ recommended)
- 64 GB unified memory minimum (29 GB model + KV cache + overhead)
- macOS 14+
Original Model
This is a quantized version of Qwen/Qwen3.5-27B by Alibaba Cloud. The original model is released under the Apache 2.0 License. All original model terms and conditions apply.
Quantization
Quantization performed by Eugene Kovshilovsky using turboquant-mlx-core (MIT License).
- Downloads last month
- 13
4-bit
Model tree for ekovshilovsky/Qwen3.5-27B-TQ8
Base model
Qwen/Qwen3.5-27B