Instructions to use Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX 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("Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX") config = load_config("Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX") # 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 Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX"
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": "Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX 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 "Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX"
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 Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX"
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 "Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX" \ --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 Abliterated MXFP4 Vision MTPLX
This is the MTPLX 2.0.1 wrapper for the Tess-4-27B abliterated MXFP4 vision MLX artifact. It includes the standard MLX/VLM body, the BF16 vision tower, and a native MTP sidecar for MTPLX speculative decoding.
Use the paired standard MLX repo when you want stock MLX-VLM or LM Studio compatibility without MTPLX.
Source
- Base model:
migtissera/Tess-4-27B - Source revision:
ab2110bec1702f27a62f48f7e8929683a613c51d - Paired standard repo:
Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MLX - License: Apache-2.0
- Chat format: Qwen chat template with
<think>reasoning blocks
Contents
- Runtime format: MLX plus MTPLX metadata
- Quantization: MXFP4, 4-bit, group size 32
- Vision tower: BF16 vision tensors grafted from the source model
- Vision tensor count: 333
- MTP sidecar:
mtp.safetensors - MTP tensor count: 15
- MTPLX version used for validation: 2.0.1
MTPLX Validation
mtplx inspect --require-mtp passed locally after contract cleanup. The artifact is marked as native MTPLX-compatible.
Tune summary on Apple M4 Max, 64 GB unified memory, fans on auto:
| Mode | Decode tok/s | Multiplier vs AR | Acceptance |
|---|---|---|---|
| AR | 28.09 | 1.00x | n/a |
| D1 | 46.28 | 1.65x | 0.979 |
| D2 | 50.68 | 1.80x | 0.970, 0.954 |
| D3 | 42.20 | 1.50x | 0.869, 0.717, 0.593 |
Recommended MTPLX depth: 2.
Abliteration Notes
The selected candidate used residual-direction weight orthogonalization against a Tess-specific refusal direction.
| Setting | Value |
|---|---|
| Strength | 2.5 |
| Targets | attention, dense_down |
| Edited modules | 128 |
| Direction scope | global |
| Preserve column norm | true |
Heldout screen, no code execution:
| Variant | Refusal rate | Benign refusal rate | Utility pass rate | Avg generation tok/s |
|---|---|---|---|---|
| Parent MXFP4 | 1.00 | 0.00 | 1.00 | 23.91 |
| Selected strength 2.5 | 0.00 | 0.00 | 1.00 | 24.22 |
| Strength 3.0 trial | 0.00 | 0.00 | 0.50 | 26.20 |
Strength 2.5 was selected because the 3.0 trial harmed utility in the heldout screen.
Vision Validation
mlx_vlm.generate smoke passed locally after the vision graft. The smoke image was described as:
A close-up of a white ceramic mug with a black handle, filled with dark coffee and topped with a swirl of foam.
BenchLocal Light Screen
| Pack | Pass / Total | Score | Failed IDs |
|---|---|---|---|
| toolcall-15 | 11/15 | 73% | TC-03, TC-07, TC-11, TC-12 |
| instructfollow-15 | 14/15 | 93% | IF-14 |
| Total | 25/30 | 83% |
Important caveat: this was a non-canonical quick run with thinking disabled, max_tokens=2048, and timeout_per_case=90. It is a fast quality screen, not directly comparable to the upstream model-card full BenchLocal score of 122/150 for Tess-4-27B Q8.
Usage
Inspect:
mtplx inspect --require-mtp Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX
Serve with the validated depth:
mtplx serve \
--model Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MTPLX \
--generation-mode mtp \
--load-mtp \
--depth 2 \
--profile sustained \
--reasoning off
For stock MLX-VLM or LM Studio usage, prefer Shiftedx/Tess-4-27B-Abliterated-MXFP4-Vision-MLX.
Limitations
- MTPLX speed numbers are local to the validation host and prompt mix.
- Vision was validated with MLX-VLM locally. Always run a small smoke test in the exact app/runtime you plan to use.
- This is an ablated research artifact, not a safety guarantee. Evaluate behavior before deployment.
- Downloads last month
- 94
4-bit