Instructions to use migtissera/Tess-4-27B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use migtissera/Tess-4-27B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="migtissera/Tess-4-27B-GGUF", filename="Tess-4-27B-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use migtissera/Tess-4-27B-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 migtissera/Tess-4-27B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf migtissera/Tess-4-27B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf migtissera/Tess-4-27B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf migtissera/Tess-4-27B-GGUF:Q4_K_M
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 migtissera/Tess-4-27B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf migtissera/Tess-4-27B-GGUF:Q4_K_M
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 migtissera/Tess-4-27B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf migtissera/Tess-4-27B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/migtissera/Tess-4-27B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use migtissera/Tess-4-27B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "migtissera/Tess-4-27B-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": "migtissera/Tess-4-27B-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/migtissera/Tess-4-27B-GGUF:Q4_K_M
- Ollama
How to use migtissera/Tess-4-27B-GGUF with Ollama:
ollama run hf.co/migtissera/Tess-4-27B-GGUF:Q4_K_M
- Unsloth Studio
How to use migtissera/Tess-4-27B-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 migtissera/Tess-4-27B-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 migtissera/Tess-4-27B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for migtissera/Tess-4-27B-GGUF to start chatting
- Pi
How to use migtissera/Tess-4-27B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf migtissera/Tess-4-27B-GGUF:Q4_K_M
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": "migtissera/Tess-4-27B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use migtissera/Tess-4-27B-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 migtissera/Tess-4-27B-GGUF:Q4_K_M
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 migtissera/Tess-4-27B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use migtissera/Tess-4-27B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf migtissera/Tess-4-27B-GGUF:Q4_K_M
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 "migtissera/Tess-4-27B-GGUF:Q4_K_M" \ --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 migtissera/Tess-4-27B-GGUF with Docker Model Runner:
docker model run hf.co/migtissera/Tess-4-27B-GGUF:Q4_K_M
- Lemonade
How to use migtissera/Tess-4-27B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull migtissera/Tess-4-27B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Tess-4-27B-GGUF-Q4_K_M
List all available models
lemonade list
Tess-4-27B · GGUF
GGUF quantizations of migtissera/Tess-4-27B — an agentic, reasoning-native 27B model that scales its deliberation to the difficulty of the task: tight on the easy calls, deep on the hard ones. Built on Qwen/Qwen3.6-27B.
👉 Full model card, capabilities, and details: migtissera/Tess-4-27B
Quants
| File | Format | ~Size | Notes |
|---|---|---|---|
Tess-4-27B-Q4_K_M.gguf |
Q4_K_M | 16.5 GB | smallest — great quality/size · most popular |
Tess-4-27B-Q6_K.gguf |
Q6_K | 22 GB | near-lossless |
Tess-4-27B-Q8_0.gguf |
Q8_0 | 28 GB | effectively lossless |
mmproj-Tess-4-27B-F16.gguf |
vision projector | 0.9 GB | pair with any text quant above for image input |
mtp-Tess-4-27B-Q8_0.gguf |
MTP head | 3.2 GB | speculative-decoding draft → faster generation (see below) |
mtp-Tess-4-27B-Q4_K_M.gguf |
MTP head | 2.0 GB | smaller MTP draft for tight VRAM |
Run it
Download a quant (add the vision projector if you want image input):
hf download migtissera/Tess-4-27B-GGUF \
Tess-4-27B-Q6_K.gguf mmproj-Tess-4-27B-F16.gguf \
--local-dir ./tess-4-27b
llama.cpp
# text
llama-cli -m Tess-4-27B-Q6_K.gguf --jinja \
-p "Refactor this function and explain your reasoning."
# image input (multimodal)
llama-mtmd-cli -m Tess-4-27B-Q6_K.gguf \
--mmproj mmproj-Tess-4-27B-F16.gguf \
--image photo.png -p "What's in this image?"
LM Studio / Ollama — load any text quant. For image input in LM Studio, keep mmproj-Tess-4-27B-F16.gguf in the same folder as the model and it's auto-detected. Use a recent llama.cpp runtime — older builds won't recognize the qwen35 architecture.
Faster inference (MTP)
Tess-4 ships a Multi-Token Prediction (MTP) head for speculative decoding: the head proposes the next token and the main model verifies it in the same forward pass, so you emit more than one token per pass — typically ~1.5–2× faster decoding on high-acceptance content (code, structured output). It's lossless — the main model verifies every token, so the output is identical whether MTP is on or off.
llama.cpp — add --mtp and it discovers the mtp- head in this repo automatically:
llama-cli -hf migtissera/Tess-4-27B-GGUF:Q4_K_M --mtp \
-p "Refactor this function and explain your reasoning."
For local files, select the head explicitly with -md (recent llama.cpp build):
llama-cli -m Tess-4-27B-Q4_K_M.gguf -md mtp-Tess-4-27B-Q8_0.gguf --mtp -p "..."
Pick the MTP quant to match your budget:
mtp-Tess-4-27B-Q8_0.gguf(3.2 GB) — higher draft accuracy → higher acceptance → more speedup (recommended).mtp-Tess-4-27B-Q4_K_M.gguf(2.0 GB) — smaller, for tight VRAM.
Keep one mtp- head alongside the model (or choose it with -md) so auto-discovery is unambiguous. LM Studio / Ollama auto-detect a same-folder mtp- head, just like the vision projector.
Using vLLM / SGLang? Reach for the full-precision BF16 model instead — MTP is already baked into that checkpoint (
mtp_num_hidden_layers: 1); just enable speculative decoding (num_speculative_tokens: 1). No separate file needed.
Prompt format
Tess-4 uses the Qwen3.5-family chat template with explicit <think> … </think> reasoning. Pass --jinja in llama.cpp (or apply the chat template in your client) so the model reasons privately before it answers.
Credits & license
Quantized from migtissera/Tess-4-27B, built on Qwen/Qwen3.6-27B by the Qwen team — full credit for an outstanding base model. Released under Apache 2.0.
Part of the Tess series by Migel Tissera.
- Downloads last month
- 26,048
4-bit
6-bit
8-bit
ollama run hf.co/migtissera/Tess-4-27B-GGUF: