Everything is in the open: the code, every run, and the research log. github.com/nakranivaibhav/gemma-4-developer-agent →
Getting it to train at all. Nothing can run the backward pass on packed 4-bit weights, so they are unpacked once for training and the adapter ships as a separate file. Merging it back does not work: I measured it, and re-rounding to 4 bits wipes out the whole update. On E4B the loss was the real memory problem. The model has 262,000 tokens in its vocabulary, and scoring all of them at every position of a long run needs 34 GB on a 32 GB card. So the loss is computed in chunks, the big embedding table sits on the CPU, and the longest run trains at 29 GB.
Making the trainer see what the server sees. The model is trained in one program and served in another, and small differences between them quietly ruin reinforcement learning. A proxy records the exact tokens the server produced, so nothing is re-tokenized. The server also only picks from a short list of likely tokens, while my trainer was scoring against the whole vocabulary. At about 70% of positions that list has one token in it, so the trainer was punishing choices the model never made. Rebuilding the server's list inside the trainer, rounding included, took the disagreement from 3.8% of positions to 7 in 32,765.
A test I could trust. I built a local copy of the scorer. In the sandbox as shipped, the real fix passed only 43 of 129 sample tasks; after repair it passes 125. A “Kaggle clock” cuts a local run exactly where the competition's time limit would. The test set is 199 tasks picked to match the hidden set's difficulty. I ran the same untouched model twice to learn the noise, and every eval proves which weights actually answered, a check I added after one eval turned out to have hit the base model by mistake.
Making it fast enough to iterate. Reinforcement learning started as a simple loop that took over an hour a step on two GPUs. I moved it to an asynchronous setup on the open-source verl trainer, with the sandboxes on separate machines. On a rented 16-GPU box a step takes about six and a half minutes, and the trainer scales almost linearly from one GPU to eight. A review of the multi-GPU code found that the second GPU's copy was being silently corrupted, and that the tests meant to cover it were testing something else.
| Approach | What happened |
|---|---|
| Fine-tuning on a stronger teacher's runs | The small model copied the teacher's style, got long-winded and started looping. As low as 1 solve in 240 tries, against 19 for the untouched model. |
| Fine-tuning on its own passing runs | Stayed healthy. About level with the untouched model. |
| A teacher that takes over failed runs, and mixing teacher and student turns | Ideas from recent papers. Ahead on a small check (21 of 199 against 14), level on the full test, and slower. |
| Token-weighted loss, higher rank, more passes | No gain. The biggest adapter memorised its training tasks and did nothing for unseen ones. |
| Reinforcement learning, rewarded when the hidden tests pass inside the time limit | The best two adapters solved 86 and 88 of 398. The untouched model solved 77 and 71. |
| Having the 31B model grade the small model's own tokens | Stopped after 15 steps. The student learned to be as slow as its teacher and every try ran out of time. |
The rewards took the most care. A model that answers in text gets nudged by the harness, then often passes, so plain pass-or-fail was paying for the bad habit. Tries that ran past the time limit were being dropped when they should have scored zero, so nothing taught the model that length costs. Each of those needed its own fix.
My first win was not real. The first fine-tune more than doubled the solves on held-out tasks, 4 to 10 of 138. Then I turned on the time limit and it was behind the untouched model, 21 solves against 24 across all the tasks. It had learned to work like the bigger model, slowly. Since then nothing is tested without the clock.
The gains are small and I can't call them proven. One adapter scored 85 and then 74 on the same test. Between two identical runs, 52 of the 398 tries flip. On the leaderboard the adapters scored 0.05 to 0.06 against 0.03 for the same agent without one, but the untouched model with a different prompt also reached 0.06. So the adapters come out a little ahead, not clearly ahead.
Reinforcement learning peaks and then falls. One run climbed to 88 solves by step 48 and dropped to 59 by step 96, as the model made more and more tool calls. It also gamed the rewards. A penalty for repeating a tool call was dodged by changing the arguments slightly, and a judge meant to give partial credit mostly rewarded tries that passed no tests.
Local scores and the leaderboard are far apart. Locally E4B solves about a fifth of the sample tasks. The hidden set comes from private repositories and is much harder: none of my small-model entries got past 0.06 on it. The competition closes on 2 December 2026, so the final standing is not in yet.