Instructions to use ukint-vs/Tess-4-27B-MLX-mixed_4_6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ukint-vs/Tess-4-27B-MLX-mixed_4_6 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("ukint-vs/Tess-4-27B-MLX-mixed_4_6") config = load_config("ukint-vs/Tess-4-27B-MLX-mixed_4_6") # 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 ukint-vs/Tess-4-27B-MLX-mixed_4_6 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ukint-vs/Tess-4-27B-MLX-mixed_4_6"
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": "ukint-vs/Tess-4-27B-MLX-mixed_4_6" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use ukint-vs/Tess-4-27B-MLX-mixed_4_6 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 "ukint-vs/Tess-4-27B-MLX-mixed_4_6"
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 ukint-vs/Tess-4-27B-MLX-mixed_4_6
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ukint-vs/Tess-4-27B-MLX-mixed_4_6 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "ukint-vs/Tess-4-27B-MLX-mixed_4_6"
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 "ukint-vs/Tess-4-27B-MLX-mixed_4_6" \ --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"
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": "ukint-vs/Tess-4-27B-MLX-mixed_4_6"
}
]
}
}
}Run Pi
# Start Pi in your project directory:
piTess-4-27B MLX mixed_4_6
This is an MLX conversion of migtissera/Tess-4-27B, a Qwen3.6-27B based Qwen3.5-family multimodal reasoning model.
Conversion
- Source model:
migtissera/Tess-4-27B - Source revision:
65e1463e388bd2e94afc33a7d376d501cebe71b2 - Format: MLX safetensors
- Quantization:
mixed_4_6 - Reported size: about 16 GB
- Reported average precision: 5.092 bits per weight
- Vision tower: kept unquantized by the mlx-vlm conversion predicate
The mixed quantization keeps embeddings, lm_head, selected v_proj, and selected down_proj layers at 6-bit while using 4-bit for most eligible language linear layers.
Requirements
Use a recent mlx-vlm that includes the Qwen3.5 norm sanitization fix from PR Blaizzy/mlx-vlm#1528. Older mlx-vlm builds can double-shift Qwen3.5 norm weights when loading converted MLX checkpoints, causing broken logits.
pip install -U mlx mlx-lm
pip install -U git+https://github.com/Blaizzy/mlx-vlm.git
Quickstart
from mlx_vlm.generate import generate
from mlx_vlm.utils import load
model_id = "ukint-vs/Tess-4-27B-MLX-mixed_4_6"
model, processor = load(model_id)
messages = [
{"role": "user", "content": "Explain the tradeoffs of LoRA vs full fine-tuning."}
]
prompt = processor.tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
response = generate(
model,
processor,
prompt,
max_tokens=512,
temp=0.6,
)
print(response.text)
For a concise answer without visible reasoning:
prompt = processor.tokenizer.apply_chat_template(
[{"role": "user", "content": "What is 2+2? Answer briefly."}],
tokenize=False,
add_generation_prompt=True,
enable_thinking=False,
)
Prompt Format
Tess-4 uses the Qwen3.5-family chat template with explicit thinking blocks:
<|im_start|>user
Your prompt here<|im_end|>
<|im_start|>assistant
<think>
... reasoning ...
</think>
... answer ...<|im_end|>
Prefer processor.tokenizer.apply_chat_template(...) instead of writing the template by hand.
Verification
The converted model was smoke-tested locally with greedy generation:
User: What is 2+2? Answer briefly.
Assistant: 4
Smoke-test stats on the conversion machine:
- Prompt tokens: 22
- Generated tokens: 2
- Peak memory: about 19.0 GB
Notes
This is a lossy quantized conversion intended for local Apple Silicon inference with MLX. For maximum fidelity, use the original BF16 checkpoint. For llama.cpp, LM Studio, or Ollama-style runtimes, see the upstream GGUF repo linked from the original model card.
Attribution
Tess-4-27B was created by Migel Tissera and is built on Qwen/Qwen3.6-27B. This conversion keeps the original Apache 2.0 license.
Original model card: migtissera/Tess-4-27B
- Downloads last month
- 5
4-bit
Model tree for ukint-vs/Tess-4-27B-MLX-mixed_4_6
Base model
Qwen/Qwen3.6-27B
Start the MLX server
# Install MLX LM: uv tool install mlx-lm# Start a local OpenAI-compatible server: mlx_lm.server --model "ukint-vs/Tess-4-27B-MLX-mixed_4_6"