gemma-4-E2B-it-agent-posttrain-v1.2
A Gemma 4 E2B instruct model post-trained to emit one machine-readable tool call per turn against a fixed surface of ten simulated tools. It answers with an action object, the runtime parses it, and the tool result is fed back as an observation.
This is a research artifact for a single harness. It is not a general chat model and it should not be used where an unparsed reply would be acted on.
What is in the repository
| path | size |
|---|---|
adapter/adapter_config.json | 1178 B |
adapter/adapter_model.safetensors | 96.7 MB |
adapter/tokenizer.json | 32.2 MB |
adapter/tokenizer_config.json | 3837 B |
gguf/SHA256SUMS | 738 B |
gguf/gemma-agent-Q2_K.gguf | 2.98 GB |
gguf/gemma-agent-Q3_K_M.gguf | 3.19 GB |
gguf/gemma-agent-Q4_K_M.gguf | 3.42 GB |
gguf/gemma-agent-Q5_K_M.gguf | 3.62 GB |
gguf/gemma-agent-Q6_K.gguf | 3.83 GB |
gguf/gemma-agent-Q8_0.gguf | 4.95 GB |
merged-bf16/chat_template.jinja | 18569 B |
merged-bf16/config.json | 4538 B |
merged-bf16/generation_config.json | 204 B |
merged-bf16/merge_record.json | 300 B |
merged-bf16/model.safetensors | 10.21 GB |
merged-bf16/tokenizer.json | 32.2 MB |
merged-bf16/tokenizer_config.json | 3837 B |
merged-bf16 is the model in Transformers form, adapter is the LoRA adapter, and gguf holds the quantized files for llama.cpp. The checkpoint directories are omitted from this table for length and are present in the repository.
The repository holds one version at a time and the files above are the current one. This repository carries no tag, so main is the only address for its weights: a later upload replaces the files above rather than adding beside them.
Training
- base model:
/workspace/posttrain/base/merged-bf16 - method: 4-bit QLoRA (nf4, double quant), continued from v1.1 merged weights
- data: 272 supervised records
- sequence length: 768, effective batch 8
- epochs 4.0, learning rate 0.0001, 136 steps
- final loss 0.1105
- LoRA r=16, alpha=32, dropout=0.05
- hardware: NVIDIA GeForce RTX 4090, 0.2 h
The chat template is applied with enable_thinking=False. This release's card carries no token-length record, so the loss cannot be checked against the completion length from it; the recipe masks the prompt explicitly rather than relying on the data shape.
Build lineage
This repository publishes gguf/gemma-agent-Q4_K_M.gguf with digest caf059fa4128. No local file hashes to it, so the build is named from the declared release table (v1.2), not from a byte match.
| what | value |
|---|---|
| build served | v1.2 |
gguf/gemma-agent-Q4_K_M.gguf | caf059fa4128dac276b34ee943b81dc1cf78d943732e923e14e65b63360c0b0f |
| rows / steps / final loss | 272 / 136 / 0.1105 |
| training hardware | RTX 4090 |
| facts read from | the model card in the v1.2 repository; no training record for this run exists on this machine |
| local file with this digest | none |
| measured cells on this build | 0 |
No recorded harness run has loaded this quant, so this card states no capability score for it. Every number below belongs to a different build, and reading them as results for these weights would attribute one build's measurement to another.
| build | quant sha256 | recorded cells |
|---|---|---|
| repair-v1 | f09b13a88465 | 17 |
| sft-41k | d17fcdda9948 | 4 |
The alias in a run record names the harness, not the weights: gemma-agent-v1.2-gpu is repair-v1, gemma-agent-v1.2 is repair-v1, gemma-agent-Q4_K_M is sft-41k, so those rounds are counted against that build rather than this repository.
Evaluation
No harness run on record has loaded the gguf/gemma-agent-Q4_K_M.gguf of this repository (caf059fa4128). This card therefore reports no round accuracy for these weights, and the numbers published for earlier builds do not transfer to them.
Quant digests by repository, as the Hub reports them today:
| repository | gguf/gemma-agent-Q4_K_M.gguf |
|---|---|
| v1.3 | 79685e759656 |
| v1.2 | caf059fa4128 |
| v1.1 | f09b13a88465 |
How to run it
With llama.cpp and the Q4 file:
llama-server -m gguf/gemma-agent-Q4_K_M.gguf --port 8080 --ctx-size 4096
The model expects the system prompt the harness sends: the offered tools as a
menu, then the instruction to reply with exactly one JSON object such as
{"action": "tool", "tool": "read_file", "args": {"path": "notes.txt"}}.
tools-pair-builder in the source repository builds that prompt and measures the
reply without executing anything.
Limitations
- Trained on one tool surface. A tool that is not in the menu is not in the model.
- Supervised fine-tuning only. No preference stage was run, and the measured failures are wrong-tool and wrong-value choices on tools whose descriptions look alike, which is exactly the failure a preference stage addresses.
- English only, short tasks, one call per turn.
- Observations during training were fixtures. The model never saw a real shell output, so it can be confidently wrong about what a command returned.
- Quantized files are lossy relative to
merged-bf16; evaluate the quant you intend to deploy, not the one that looks best in this table.
License
The base model is Google Gemma and this derivative carries the Gemma Terms of Use. Review them before redistribution or commercial deployment.
Card rendered 2026-10-21 from the records in
the source repository: training_record.json, publish_manifest.json and the
benchmark run directory. Numbers in this card are copied from those files, not
restated from memory.