Gemma-4-MoE-Agent-v1.4
gemma-4-E2B-it 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 |
|---|---|
README.md | 3836 B |
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 | 188 B |
gguf/gemma-agent-moe-Q4_K_M.gguf | 3.42 GB |
gguf/gemma-agent-moe-Q5_K_M.gguf | 3.62 GB |
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.
Training
- base model:
google/gemma-4-E2B-it - method: 4-bit QLoRA (nf4, double quant) on the named base
- data: 11,213 supervised records
- sequence length: 1024, effective batch 16
- epochs 1.0, learning rate 0.0001, 701 steps
- final loss 0.8941
- LoRA r=16, alpha=32, dropout=0.05
- hardware: NVIDIA A800 80GB PCIe, 0.5 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.
Training log
training-log.json in this repository is the chronological record: every
training, dataset, evaluation and publish event with its loss curve, round
accuracy and per-capability results. It is written by tools/posttrain/timeline.py
from the run records, not typed by hand, and the same file feeds the notes app.
How to run it
With llama.cpp and the smallest quant this release carries:
llama-server -m gguf/gemma-agent-moe-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-11-01 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.