Image-Text-to-Text
MLX
Safetensors
qwen3_5
qwen3.5
heretic
uncensored
reasoning
multimodal
vision
mlx-vlm
8-bit precision
quantized
conversational
Instructions to use andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit 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("andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit") config = load_config("andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit") # 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 andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit"
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": "andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit 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 "andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit"
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 andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit
Run Hermes
hermes
Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM (8-bit)
MLX-VLM 8-bit quantized conversion of Jackrong/Qwen3.5-2B-Claude-4.6-Opus-Reasoning-Distilled with heretic abliteration applied to remove refusal/censorship behavior.
Features
- Reasoning: Claude Opus 4.6 reasoning distilled with
<think>chain-of-thought tags - Uncensored: Heretic abliteration removes refusal directions from all 24 transformer layers
- Multimodal: Full vision support (24-layer ViT, 1024 hidden, patch 16) preserved
- MLX-VLM: Optimized for Apple Silicon inference via mlx-vlm
- 8-bit quantized: 2.5 GB (40% smaller than fp16)
Architecture
Qwen3.5-2B hybrid architecture:
- 24 decoder layers (23 GatedDeltaNet linear attention + 1 full self-attention)
- 2048 hidden size, 6144 intermediate size
- Vision tower: 24-layer ViT with 1024 hidden size
Abliteration Details
Custom abliteration applied using directional ablation (Arditi et al. 2024):
- 256 harmful + 256 harmless prompt residuals collected
- Refusal direction computed per layer as normalized mean difference
- Direction removed from attention output projections and
mlp.down_proj - Scale: 1.0
Usage
from mlx_vlm import load, generate
model, processor = load("andrevp/Qwen3.5-2B-Distilled-OPUS-Heretic-MLX-VLM-8bit")
# Text-only
prompt = processor.apply_chat_template(
[{"role": "user", "content": "Explain quantum entanglement step by step."}],
add_generation_prompt=True
)
result = generate(model, processor, prompt, max_tokens=500)
# With image
prompt = "<|im_start|>user\n<|vision_start|><|image_pad|><|vision_end|>Describe this image.<|im_end|>\n<|im_start|>assistant\n"
result = generate(model, processor, prompt, image=["path/to/image.jpg"], max_tokens=200)
Other Versions
- Downloads last month
- 23
Model size
0.9B params
Tensor type
BF16
·
U32 ·
Hardware compatibility
Log In to add your hardware
8-bit