Instructions to use WaveCut/gemma-4-26B-A4B-it-heretic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WaveCut/gemma-4-26B-A4B-it-heretic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="WaveCut/gemma-4-26B-A4B-it-heretic") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("WaveCut/gemma-4-26B-A4B-it-heretic") model = AutoModelForMultimodalLM.from_pretrained("WaveCut/gemma-4-26B-A4B-it-heretic") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WaveCut/gemma-4-26B-A4B-it-heretic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WaveCut/gemma-4-26B-A4B-it-heretic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WaveCut/gemma-4-26B-A4B-it-heretic", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/WaveCut/gemma-4-26B-A4B-it-heretic
- SGLang
How to use WaveCut/gemma-4-26B-A4B-it-heretic with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "WaveCut/gemma-4-26B-A4B-it-heretic" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WaveCut/gemma-4-26B-A4B-it-heretic", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "WaveCut/gemma-4-26B-A4B-it-heretic" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WaveCut/gemma-4-26B-A4B-it-heretic", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use WaveCut/gemma-4-26B-A4B-it-heretic with Docker Model Runner:
docker model run hf.co/WaveCut/gemma-4-26B-A4B-it-heretic
Gemma 4 26B A4B IT Heretic
Public mirror of the BF16 Heretic checkpoint originally released as
coder3101/gemma-4-26B-A4B-it-heretic
at commit e6d09d5c434a5e91326ce9d779786a91e7aaae35.
Post-process metadata
The checkpoint was produced from
google/gemma-4-26B-A4B-it
with Heretic 1.2.0 using Arbitrary-Rank Ablation with row-norm preservation.
| Parameter | Value |
|---|---|
start_layer_index |
10 |
end_layer_index |
30 |
preserve_good_behavior_weight |
0.5480 |
steer_bad_behavior_weight |
0.0009 |
overcorrect_relative_weight |
0.5868 |
neighbor_count |
14 |
Reported by the original post-process run:
| Metric | Heretic | Google source |
|---|---|---|
| KL divergence | 0.0499 | 0 |
| Refusals | 11/100 | 100/100 |
2026-07-16 metadata refresh
Google's current source revision is
01e5b3ee840d3a9e0b0b493c593e85398a30ef75. Its two BF16 weight shards have
the same LFS SHA256 values as the initial release revision
47b6801b24d15ff9bcd8c96dfaea0be9ed3a0301:
1127684971bbca40465435a5cad69d67ad603bf5e61c6dfd5561fae4a3bcfdb3aab47033e1e8a492ef8e581efae1cf36478d0433567e7729b3c1728bc8970db7
Because the source weights did not change, rerunning Heretic would transform the same tensors. This mirror keeps the already verified Heretic weights and refreshes the chat template, tokenizer metadata, and processor metadata from Google's current revision. The refresh includes fixes for tool-call turns, thinking history, null arguments, and multimodal tool responses.
Loading
from transformers import AutoModelForMultimodalLM, AutoProcessor
model_id = "WaveCut/gemma-4-26B-A4B-it-heretic"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id,
dtype="auto",
device_map="auto",
)
This is a third-party post-processed checkpoint. It is not affiliated with or endorsed by Google. Review the Apache 2.0 license and Gemma license link above before redistribution or deployment.
- Downloads last month
- 87