How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-text-to-text", model="tepirale/gemma-4-12B-merge-coder40-agentic40-it20-task_arithmetic")
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("tepirale/gemma-4-12B-merge-coder40-agentic40-it20-task_arithmetic")
model = AutoModelForMultimodalLM.from_pretrained("tepirale/gemma-4-12B-merge-coder40-agentic40-it20-task_arithmetic", device_map="auto")
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]:]))
Quick Links

merged-gemma4-12b

This is a merge of pre-trained language models created using mergekit.

Merge Details

Merge Method

This model was merged using the Task Arithmetic merge method using google/gemma-4-12B-it as a base.

Models Merged

The following models were included in the merge:

Configuration

The following YAML configuration was used to produce this model:


merge_method: task_arithmetic
base_model: google/gemma-4-12B-it
dtype: bfloat16
parameters:
  normalize: true
models:
  - model: google/gemma-4-12B-it
    parameters:
      weight: 1.0 # Base limpia que mantiene la estructura gramatical
  - model: tepirale/gemma-4-12B-coder-fable5-composer2.5-v1-safetensors-yuxinlu1
    parameters:
      weight: 0.35 # Inyecta la habilidad de código puro
  - model: tepirale/gemma-4-12B-agentic-fable5-composer2.5-v2-3.5x-tau2-safetensors-yuxinlu1
    parameters:
      weight: 0.35 # Inyecta la lógica y uso de herramientas de agente
Downloads last month
31
Safetensors
Model size
12B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for tepirale/gemma-4-12B-merge-coder40-agentic40-it20-task_arithmetic

Paper for tepirale/gemma-4-12B-merge-coder40-agentic40-it20-task_arithmetic