How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
# Run inference directly in the terminal:
./llama-cli -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama-cli -hf RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
Use Docker
docker model run hf.co/RedTeamLab/Gemma-4-12B-Sol-Traces-v1:Q4_K_M
Quick Links

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