Run this model with HF Jobs
Run Rumiii/gemma-4-12B-AgentTracer on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Rumiii/gemma-4-12B-AgentTracer. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Rumiii/gemma-4-12B-AgentTracer on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Rumiii/gemma-4-12B-AgentTracer. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Rumiii/gemma-4-12B-AgentTracer. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Rumiii/gemma-4-12B-AgentTracer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rumiii/gemma-4-12B-AgentTracer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Rumiii/gemma-4-12B-AgentTracer") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Rumiii/gemma-4-12B-AgentTracer") model = AutoModelForMultimodalLM.from_pretrained("Rumiii/gemma-4-12B-AgentTracer", 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Rumiii/gemma-4-12B-AgentTracer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Rumiii/gemma-4-12B-AgentTracer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rumiii/gemma-4-12B-AgentTracer", "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/Rumiii/gemma-4-12B-AgentTracer
- SGLang
How to use Rumiii/gemma-4-12B-AgentTracer 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 "Rumiii/gemma-4-12B-AgentTracer" \ --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": "Rumiii/gemma-4-12B-AgentTracer", "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 "Rumiii/gemma-4-12B-AgentTracer" \ --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": "Rumiii/gemma-4-12B-AgentTracer", "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 Rumiii/gemma-4-12B-AgentTracer with Docker Model Runner:
docker model run hf.co/Rumiii/gemma-4-12B-AgentTracer
Gemma 4 12B AgentTracer
An agentic reasoning and tool-use model that thinks before it acts.
Gemma 4 12B AgentTracer is built on Google's Gemma 4 12B Unified architecture. It plans step by step, calls tools accurately across multi-turn conversations, knows when to abstain, and treats untrusted content as data, not commands.
This release is a final checkpoint, packaged as a full merged model and ready to use with transformers.
Highlights
- Thinks before acting: explicit reasoning before every tool call and final answer.
- Reliable tool calling: structured function calls chained across multiple turns.
- Honest abstention: asks or declines when a tool, identifier, or parameter is missing.
- Injection resistant: instructions hidden in tool outputs or pasted content are not followed.
- Multimodal backbone: text, image, and audio inputs with long-context support.
Capabilities
| Capability | What it does |
|---|---|
| Step-by-step thinking | Produces a reasoning trace (<|channel>thought ... <channel|>) before acting or answering. |
| Multi-turn tool use | Plans and chains tool calls while keeping intermediate context across turns. |
| Multi-hop synthesis | Connects evidence across several passages into one grounded answer. |
| Memory workflows | Reads and updates key-value, vector, and summary memory. |
| Calibrated abstention | Flags missing tools or details instead of inventing calls or results. |
| Prompt-injection defense | Protects system instructions and confidential context from untrusted text. |
| Clear identity | Introduces itself and explains what it can do in a friendly, concise way. |
Quickstart
Install the dependencies:
pip install -U transformers torch accelerate
Run inference with thinking mode enabled:
import torch
from transformers import AutoProcessor, AutoModelForMultimodalLM
MODEL_ID = "Rumiii/gemma-4-12B-AgentTracer"
processor = AutoProcessor.from_pretrained(MODEL_ID)
model = AutoModelForMultimodalLM.from_pretrained(
MODEL_ID,
dtype="auto",
device_map="auto",
)
messages = [
{
"role": "system",
"content": "You are Gemma 4 12B AgentTracer, an agentic reasoning and tool-use assistant.",
},
{
"role": "user",
"content": "Hi! Who are you and what can you help me with?",
},
]
inputs = processor.apply_chat_template(
messages,
tokenize=True,
return_dict=True,
return_tensors="pt",
add_generation_prompt=True,
enable_thinking=True,
).to(model.device)
input_len = inputs["input_ids"].shape[-1]
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=1024,
temperature=1.0,
top_p=0.95,
top_k=64,
)
print(processor.decode(outputs[0][input_len:], skip_special_tokens=False))
Tool Calling
Pass your tool schemas through the chat template:
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather for a city.",
"parameters": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"],
},
},
}
]
messages = [{"role": "user", "content": "What's the weather in Paris right now?"}]
inputs = processor.apply_chat_template(
messages,
tools=tools,
tokenize=True,
return_dict=True,
return_tensors="pt",
add_generation_prompt=True,
enable_thinking=True,
).to(model.device)
Run the returned tool call in your own code, append the result as a tool message, and generate again to get the final answer.
Recommended Settings
| Parameter | Value |
|---|---|
| Temperature | 1.0 |
| Top-p | 0.95 |
| Top-k | 64 |
Multi-turn rule: in conversation history, pass only the final visible assistant response. Omit earlier thought blocks between user turns, except inside an active tool-call turn.
Hardware
The model has about 12B parameters and loads in 16-bit precision on a single high-memory GPU (roughly 24 GB or more). Use device_map="auto" to spread it across available devices.
Intended Use
- Agentic assistants and autonomous workflows
- Multi-step research and question answering
- Structured API and function orchestration
- Tool-use pipelines that need explicit reasoning and safe abstention
Limitations
- Output quality depends on the quality of the tool schemas and retrieved context you provide.
- Validate tool arguments and outputs before running any action with side effects.
- Thinking mode increases output length and latency.
License
Released under the Apache 2.0 license, consistent with google/gemma-4-12B-it.
Citation
@misc{gemma4_12b_agenttracer,
title = {Gemma 4 12B AgentTracer},
author = {Rumiii},
year = {2026},
howpublished = {\url{https://huggingface.co/Rumiii/gemma-4-12B-AgentTracer}}
}
- Downloads last month
- 55
