Instructions to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1 # Run inference directly in the terminal: llama cli -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1 # Run inference directly in the terminal: llama cli -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1 # Run inference directly in the terminal: ./llama-cli -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1 # Run inference directly in the terminal: ./build/bin/llama-cli -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
Use Docker
docker model run hf.co/MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
- LM Studio
- Jan
- vLLM
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
- Ollama
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with Ollama:
ollama run hf.co/MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
- Unsloth Studio
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF to start chatting
- Pi
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
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 MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
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 "MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with Docker Model Runner:
docker model run hf.co/MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
- Lemonade
How to use MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF:Q4_1
Run and chat with the model
lemonade run user.Qwen3.6-27B-MTP-TQ4_1S-GGUF-Q4_1
List all available models
lemonade list
Qwen3.6-27B-MTP TQ4_1S GGUF
This repository contains a TurboQuant/TQ4_1S GGUF quantization of Qwen/Qwen3.6-27B.
This GGUF will not work with original upstream
llama.cpp. It requires a TurboQuant-enabled build with TQ4_1S support, such asTheTom/llama-cpp-turboquant.
The source GGUF used for this quantization was Qwen3.6-27B-MTP-BF16.gguf. The final artifact keeps the MTP/next-token-prediction block in BF16 because quantizing that block was found to break MTP behavior.
File
| File | Size | SHA256 |
|---|---|---|
Qwen3.6-27B-MTP-TQ4_1S.gguf |
21,403,947,936 bytes | 1e9303f1e00daf4a85ad04fe9f31738526fb00bbafa944b0b68f2fba6aa4440e |
Quantization Policy
This model was quantized with a llama.cpp TurboQuant fork that supports TQ4_1S weight tensors.
Workflow:
- BF16 source GGUF to mixed Q8_0 source GGUF.
blk.64/nextn/ MTP tensors preserved as BF16 during the Q8_0 pass.- Final tensor-role-aware hybrid TQ4_1S pass from the mixed Q8_0 source.
Final tensor mix:
| Tensor type | Count | Notes |
|---|---|---|
| TQ4_1S | 180 | Middle-layer full-attention Q/K/V/O and FFN gate/up tensors |
| Q4_K | 60 | Middle-layer FFN down tensors |
| Q8_0 | 258 | Embeddings, output, SSM/Mamba tensors, protected boundary tensors |
| BF16 | 8 | blk.64 MTP-critical tensors |
| F32 | 360 | Norms and small scalar tensors |
Protected layout:
- Main text blocks:
blk.0throughblk.63 - MTP/nextn block:
blk.64 - Protected boundary blocks:
blk.0,blk.1,blk.62,blk.63 - Quantized middle blocks:
blk.2throughblk.61 blk.64is preserved for MTP correctness
The BF16-preserved blk.64 tensors are:
blk.64.attn_k.weight
blk.64.attn_output.weight
blk.64.attn_q.weight
blk.64.attn_v.weight
blk.64.ffn_down.weight
blk.64.ffn_gate.weight
blk.64.ffn_up.weight
blk.64.nextn.eh_proj.weight
The nextn norm tensors remain F32.
Compatibility
This GGUF uses TQ4_1S tensor type support from llama-cpp-turboquant. Standard upstream llama.cpp builds that do not know the TQ4_1S GGUF tensor type may fail to load this file.
Use a build with TQ4_1S weight support, such as the TurboQuant llama.cpp fork.
Example:
./llama-server \
-m Qwen3.6-27B-MTP-TQ4_1S.gguf \
-ngl 99 \
-c 131072 \
--cache-type-k q8_0 \
--cache-type-v turbo3
For a more conservative KV cache setting, use --cache-type-k q8_0 --cache-type-v q8_0.
Provenance
- Parent model: Qwen/Qwen3.6-27B
- Source format: BF16 GGUF with MTP tensors
- Quantizer: llama.cpp TurboQuant fork with TQ4_1S support
- Final GGUF:
Qwen3.6-27B-MTP-TQ4_1S.gguf
Notes
This is an experimental GGUF quantization. Validate quality and MTP behavior on your workload before production use.
- Downloads last month
- 167
4-bit
Model tree for MidnightPhreaker/Qwen3.6-27B-MTP-TQ4_1S-GGUF
Base model
Qwen/Qwen3.6-27B