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.

Screenshot 2026-11-28 at 11.02.37 PM

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
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 Rumiii/gemma-4-12B-AgentTracer

Finetuned
(357)
this model