GLM-4.6V-Flash is a 10.29B parameter dense Vision-Language Model (VLM) with a 40-layer transformer architecture and integrated vision encoder, capable of understanding both text and images.
Model Description
This model is an abliterated version of zai-org/GLM-4.6V-Flash that has had its refusal mechanisms removed using PRISM (Projected Refusal Isolation via Subspace Modification). The model will respond to prompts that the original model would refuse.
Key Specs:
10.29B parameter dense Vision-Language Model
40-layer transformer architecture
Integrated vision encoder for image understanding
128K context length
Supports text, image, and video inputs
Motivation
This project exists as research and development experimentation into understanding how large language models encode and enforce refusal behaviors, contributing to broader AI safety research by providing empirical data on refusal mechanism localization and tradeoffs between safety and capability.
The IQ4_XS quantization uses importance-weighted quantization which provides better quality than standard Q4 quantizations at similar sizes. Embedding and output layers use Q6_K precision for optimal quality.
Prompt Format
This model uses the GLM chat format with optional thinking/reasoning support:
Testing shows that PRISM abliteration maintains full model coherence with no measurable capability degradation.
Quick Start
Using with llama.cpp
bash
1# Download the model2huggingface-cli download Ex0bit/Elbaz-GLM-4.6V-Flash-PRISM \3 Elbaz-GLM-4.6V-Flash-PRISM-IQ4_XS.gguf \4 --local-dir .56# Run inference7./llama-cli -m Elbaz-GLM-4.6V-Flash-PRISM-IQ4_XS.gguf \8 -p "[gMASK]<sop><|system|>
9You are a helpful assistant. You MUST respond in English only.<|user|>
10Your prompt here<|assistant|>
11"\12 -n 2048\13 --temp 0.7\14 -ngl 999
llama.cpp with llama-server
bash
1# Start the server2./llama-server -m Elbaz-GLM-4.6V-Flash-PRISM-IQ4_XS.gguf \3 --host 0.0.0.0 \4 --port 8080\5 -ngl 999\6 -c 3276878# Example API call9curl http://localhost:8080/v1/chat/completions \10 -H "Content-Type: application/json"\11 -d '{
12 "messages": [
13 {"role": "system", "content": "You are a helpful assistant. You MUST respond in English only."},
14 {"role": "user", "content": "Your prompt here"}
15 ],
16 "temperature": 0.7
17 }'
Using with Ollama
bash
1# Pull and run directly from Hugging Face2ollama pull hf.co/Ex0bit/Elbaz-GLM-4.6V-Flash-PRISM
3ollama run hf.co/Ex0bit/Elbaz-GLM-4.6V-Flash-PRISM
Note: The hf.co/ prefix is required to pull from Hugging Face. Requires Ollama 0.3.0+.
Using with Transformers (Full Weights)
python
1from transformers import AutoModelForCausalLM, AutoProcessor
23model_id ="Ex0bit/Elbaz-GLM-4.6V-Flash-PRISM"4processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)5model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", trust_remote_code=True)67messages =[8{"role":"system","content":[{"type":"text","text":"You are a helpful assistant. You MUST respond in English only."}]},9{"role":"user","content":[{"type":"text","text":"Your prompt here"}]}10]1112inputs = processor.apply_chat_template(13 messages,14 tokenize=True,15 add_generation_prompt=True,16 return_dict=True,17 return_tensors="pt"18).to(model.device)1920outputs = model.generate(**inputs, max_new_tokens=2048, temperature=0.7, do_sample=True)21print(processor.decode(outputs[0], skip_special_tokens=False))
PRISM Methodology
Method: Projected Refusal Isolation via Subspace Modification
The model was abliterated using PRISM - a state-of-the-art abliteration methodology combining multiple principled techniques for effective refusal removal while preserving model capabilities.
Hardware Requirements
Quantization
Min RAM/VRAM
Recommended
Hardware Examples
IQ4_XS
T GB
12+ GB
RTX 3060 12GB, RTX 4070, Apple M1/M2/M3/M4
Tested Configurations
Hardware
RAM/VRAM
Status
NVIDIA RTX GPU
12+ GB
Works
Apple Silicon
16+ GB Unified
Works
Note: This is a relatively lightweight model that can run on consumer hardware with 12GB+ or less VRAM.
Vision Capabilities
GLM-4.6V-Flash supports multimodal inputs:
Images: Use <|begin_of_image|><|image|><|end_of_image|> tags
Videos: Use <|begin_of_video|><|video|><|end_of_video|> tags
Example with image:
python
1messages =[2{3"role":"user",4"content":[5{"type":"image","image":"path/to/image.jpg"},6{"type":"text","text":"What is in this image?"}7]8}9]
Ethical Considerations
This model has been modified to reduce safety guardrails. Users are responsible for:
Complying with all applicable laws and regulations
Not using the model for illegal activities
Understanding the potential risks of unrestricted AI responses
Implementing appropriate safeguards in production environments