How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="RedTeamLab/Gemma-4-12B-Sol-Traces-v1",
	filename="",
)
llm.create_chat_completion(
	messages = "No input example has been defined for this model task."
)

Gemma-4-12B-Sol-Traces-v1

Agentic tool-use LLM fine-tuned from unsloth/gemma-4-12B-it using LoRA.
Trained on 25,000 verified coding-agent trajectories with the same Sol Traces methodology as the 26B variant, but on a smaller, faster base model.

Training Details

Parameter Value
Base model unsloth/gemma-4-12B-it (12B unified)
Fine-tuning LoRA (r=16, alpha=16, dropout=0)
Dataset 21,174 train / 1,324 val (gemma-4-native-tools format)
Dataset provenance GPT-5.6-Sol trajectories (original-synthetic, 32,560 attempts → 25,000 accepted)
Epochs 1
Learning rate 1e-4, cosine scheduler with 3% warmup
Batch size 8 (2 × 4 gradient accumulation)
Max sequence 8,192 tokens
GPU Modal H100 80GB
Training time ~3h
Final train loss 0.080
Validation loss 0.0258
Peak VRAM 46.7 GiB / 80 GiB

Files

File Size Description
gemma-4-12b-sol-traces-v1-f16.gguf 22.2 GB Full bf16 merged model
training_stats.json Full training metrics

Usage (llama.cpp)

llama-cli \
  -m gemma-4-12b-sol-traces-v1-f16.gguf \
  -ngl 99 \
  --prompt "List the files in the repository matching *.py"

Data Generation

Trajectories generated by GPT-5.6-Sol (OpenAI) running as a repository coding agent through OpenCode CLI. Each trajectory captures a full agent session: code search, file reading, command execution, patch application, and verification — across 85+ repository families in Python, TypeScript, Rust, Go, Java, C++, and more.

Downloads last month
-
GGUF
Model size
12B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support