countdown-rl-gemma4-e4b-v2-zeroshot-s0-cont
LoRA adapter (r = 16, alpha = 32) for google/gemma-4-E4B (text decoder), trained with GRPO on the Countdown numbers game with a Python tool in
the loop: recipe v2, zero-shot prompt, seed 0, +100 steps. The policy writes <think>, may run <python> (its stdout comes back in <output>), and
answers in <answer>. Training code, configs, logs and the write-up: the accompanying repository
(configs/experiments/gemma4-e4b-v2-zeroshot-s0-cont/, REPORT.md, EXPERIMENTS.md).
holdout3 (1,000 problems generated after all model decisions, greedy, 768 tokens, two code rounds): 68.1% pass@1 (easy 89.5%, medium 52.7%, hard 55.0%).
Trained with the r1zero_tool prompt; evaluate with the same prompt, since the policies are prompt-specific.
Bucket run ids: g4v2z0long (step 100).
The adapter targets the text decoder of Gemma-4-E4B, extracted from the multimodal checkpoint. Create it first (logits match the full model exactly with eager attention), and use --attn eager:
uv run python scripts/prepare_gemma4_text.py --model google/gemma-4-E4B --out models/gemma-4-E4B-text
Usage
hf download prada5023/countdown-rl-gemma4-e4b-v2-zeroshot-s0-cont --local-dir adapters/gemma4-e4b-v2-zeroshot-s0-cont
uv run countdown-eval --model models/gemma-4-E4B-text --adapter adapters/gemma4-e4b-v2-zeroshot-s0-cont --eval-file data/holdout3.jsonl \
--prompt-style r1zero_tool --max-new-tokens 768 --max-rounds 2 --attn eager