Instructions to use sahilchachra/tess-4-27b-mxfp4-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use sahilchachra/tess-4-27b-mxfp4-mlx 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("sahilchachra/tess-4-27b-mxfp4-mlx") config = load_config("sahilchachra/tess-4-27b-mxfp4-mlx") # 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 sahilchachra/tess-4-27b-mxfp4-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "sahilchachra/tess-4-27b-mxfp4-mlx"
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": "sahilchachra/tess-4-27b-mxfp4-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use sahilchachra/tess-4-27b-mxfp4-mlx 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 "sahilchachra/tess-4-27b-mxfp4-mlx"
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 sahilchachra/tess-4-27b-mxfp4-mlx
Run Hermes
hermes
- OpenClaw new
How to use sahilchachra/tess-4-27b-mxfp4-mlx with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "sahilchachra/tess-4-27b-mxfp4-mlx"
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 "sahilchachra/tess-4-27b-mxfp4-mlx" \ --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"
tess-4-27b-mxfp4-mlx
MLX MX FP4 (micro-scaled 4-bit float) quantization of migtissera/Tess-4-27B, converted with mlx-vlm.
Tess-4-27B is a thinking-native, agentic 27B model built on Qwen/Qwen3.6-27B, post-trained on 64K-token long-context agentic traces plus a reasoning style distilled from a three-model teacher ensemble (Opus-4.8, GPT-5.5, GLM-5.2). It's multimodal (inherits Qwen3.6's vision tower — text and image input) and reasons via explicit <think>...</think> blocks before answering.
Architecture
| Base model | Tess-4-27B (Qwen3.5-VL / Qwen3_5ForConditionalGeneration arch, ~27B params, vision + video capable) |
| Quantization | MX FP4 (micro-scaled 4-bit float) |
| Bits per weight | 4.449 |
| Disk size | 14 GB (from ~52 GB bf16) |
| Format | MLX (safetensors) |
| Minimum unified memory | Runs comfortably on 24GB+ unified memory Macs. Smoke-tested on an Apple M4 Pro (24GB) — loads and generates coherent, on-topic output. |
Usage
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config
model_path = "sahilchachra/tess-4-27b-mxfp4-mlx"
model, processor = load(model_path, trust_remote_code=True)
config = load_config(model_path, trust_remote_code=True)
prompt = apply_chat_template(processor, config, "Explain the difference between TCP and UDP.", num_images=0)
out = generate(model, processor, prompt, image=None, max_tokens=1024, verbose=False)
print(out.text if hasattr(out, "text") else out)
For image input, pass an image path/URL and set num_images=1 in apply_chat_template, and pass the image to generate(..., image=<path_or_url>).
CLI:
mlx_vlm.generate --model sahilchachra/tess-4-27b-mxfp4-mlx \
--prompt "Explain the difference between TCP and UDP." \
--max-tokens 1024
This model uses the Qwen3.5-family chat template with explicit <think>...</think> reasoning blocks — allow a generous max_tokens budget (1024+) so generation doesn't cut off mid-thought.
Smoke test
Verified via mlx_vlm.generate (text-only, image=None) with the model's Qwen3.5-family chat template, on an Apple M4 Pro (24GB unified memory):
Prompt: "Explain the difference between TCP and UDP in two sentences."
Output: Here's a thinking process:
1. **Analyze User Input:**
- **Topic:** TCP vs UDP
- **Constraint:** Explain the difference in exactly two sentences.
2. **Identify Key Differences:**
- TCP (Transmission Control Protocol): Connection-oriented, reliable, guarantees delivery, ordered, error-checked, slower due to overhead.
- UDP ...
Prompt: "Write a haiku about the ocean at night."
Output: Thinking Process:
1. **Analyze the Request:**
- Topic: Ocean at night.
- Form: Haiku (5-7-5 syllable structure).
2. **Brainstorming Imagery & Keywords:**
- Visuals: Moon, stars, reflection, dark water, waves, foam, bioluminescence ...
Both outputs were truncated at max_tokens=80 mid-reasoning (this is a thinking-native model — allow a much larger max_tokens budget, e.g. 1024+, to reach the final <think>...</think> answer). Quantization preserves the model's signature deliberate, step-by-step reasoning style intact.
Other MLX variants
Credits
- Base model: migtissera/Tess-4-27B by Migel Tissera
- Quantization tooling: mlx-vlm
- Downloads last month
- 42
4-bit