Views
No views yet

bc1qsvfduzj9fjs9fugpc52yver3f2g8fp7xjxecdvconfig.json schema (Gemma4UnifiedForConditionalGeneration, model_type: gemma4_unified) match the base model exactly — this checkpoint loads anywhere the original loads.google/gemma-4-12B-it| Property | Value |
|---|---|
| Architecture | Gemma4UnifiedForConditionalGeneration (model_type: gemma4_unified) |
| Total Parameters | ~11.95B (dense) |
| Decoder Layers | 48 |
| Hidden Size | 3840 |
| Attention | 16 heads / 8 KV heads, hybrid sliding-window (1024) + global (full) attention, p-RoPE |
| Vocabulary | 262,144 |
| Context Length | up to 256K tokens |
| Modalities | Text, Image, Audio (encoder-free / unified) |
| File | Description | Size |
|---|---|---|
model.safetensors | BF16 weights (48 decoder layers, unified multimodal) | ~23.9 GB |
config.json | Unified multimodal config (Gemma4UnifiedForConditionalGeneration) | — |
processor_config.json | Multimodal processor config | — |
tokenizer.json, tokenizer_config.json, chat_template.jinja, generation_config.json | Standard | — |
1from transformers import AutoProcessor, AutoModelForMultimodalLM
2
3repo = "OpenYourMind/gemma-4-12B-it-abliterated-uncensored"
4
5processor = AutoProcessor.from_pretrained(repo)
6model = AutoModelForMultimodalLM.from_pretrained(
7 repo, dtype="bfloat16", device_map="auto",
8)
9
10messages = [
11 {"role": "system", "content": "You are a helpful assistant."},
12 {"role": "user", "content": [
13 {"type": "image", "url": "path/to/image.jpg"},
14 {"type": "text", "text": "Describe this image in detail."},
15 ]},
16]
17inputs = processor.apply_chat_template(
18 messages, add_generation_prompt=True, tokenize=True,
19 return_tensors="pt", return_dict=True, enable_thinking=False,
20).to(model.device)
21input_len = inputs["input_ids"].shape[-1]
22
23out = model.generate(**inputs, max_new_tokens=512)
24print(processor.decode(out[0][input_len:], skip_special_tokens=True))transformers (the version that ships the Gemma 4 unified classes).temperature=1.0, top_p=0.95, top_k=64 (the values shipped in generation_config.json).enable_thinking=True in apply_chat_template; the processor's parse_response separates the reasoning block from the final answer. Do not feed previous-turn thoughts back into multi-turn history.