How to use from the
Use from the
MLX library
# 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("TheCluster/GLM-4.6V-Flash-Heretic-MLX-mxfp4")
config = load_config("TheCluster/GLM-4.6V-Flash-Heretic-MLX-mxfp4")

# 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)

GLM-4.6V-Flash Heretic MLX mxfp4

This is a decensored version of zai-org/GLM-4.6V-Flash, made using Heretic v1.1.0

Performance

Metric This model Original model (zai-org/GLM-4.6V-Flash)
KL divergence 0.0000 0 (by definition)
Refusals 63/100 100/100

Abliteration parameters

Parameter Value
direction_index 22.89
attn.o_proj.max_weight 1.45
attn.o_proj.max_weight_position 28.07
attn.o_proj.min_weight 1.40
attn.o_proj.min_weight_distance 13.38
mlp.down_proj.max_weight 1.19
mlp.down_proj.max_weight_position 24.88
mlp.down_proj.min_weight 0.82
mlp.down_proj.min_weight_distance 10.68

Source

This model was converted to MLX format from AiAsistent/GLM-4.6V-Flash-heretic using mlx-vlm version 0.3.12.

Downloads last month
103
Safetensors
Model size
10B params
Tensor type
U32
·
F16
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for TheCluster/GLM-4.6V-Flash-Heretic-MLX-mxfp4

Quantized
(3)
this model

Collection including TheCluster/GLM-4.6V-Flash-Heretic-MLX-mxfp4