← Back
research /

Turning math problems into training environments for a small reasoning model

My 3B reasoning model often found the right answer and then kept checking until it ran out of tokens. I built verifiable math environments to teach it when to stop, and its score on recent AIME and HMMT problems went from 24% to 42%.

Hundreds of thin lines fan out from a single point on the left. Gold lines end in small glowing points, and pale lines fray out before a faint vertical line on the right.

Math has one big advantage over most things you might want a language model to get better at. You can check the answer. If a model says the answer is 70 and the answer really is 70, it gets a point. No human grader, no second model judging the first one, just a computer algebra system saying yes or no.

That idea has a name now, reinforcement learning with verifiable rewards, and it’s behind a lot of the recent jump in reasoning models. I wanted to try it myself on hardware I could actually get. The project is called MathMidas. The name comes from CodeMidas, which turns existing code into training environments by running reference programs to build the tests. MathMidas does the same for math. Public problem sets and small algebra programs go in, and checkable environments come out.

The model I trained is VibeThinker-3B, a small model that already reasons very well when you let it think for as long as it wants. I didn’t try to beat its best scores. With the compute I had, that was never going to happen. I asked a narrower question. Can it solve more problems when it only gets 8,192 tokens to think?

A quick word on tokens, since they come up everywhere in this post. A token is a chunk of text, usually a short word or part of a longer one, and language models read and write everything in tokens. 8,192 tokens is roughly 6,000 words, or about a dozen pages of scribbled working.

That sounds like plenty, but VibeThinker is a reasoning model. Before it answers, it writes out its thinking inside a <think> block, trying approaches, checking itself and backtracking. Models like this were trained to think for a very long time, often 10,000 to 100,000 tokens. VibeThinker’s own RL training used a 64K window. If the budget runs out before it closes the thinking block, there’s no final answer, and that counts as wrong. At 3 billion parameters it’s also small, so one GPU can train it, which is why I picked it.

It can. My first run worked and then I lost the checkpoint. The second run trained for 128 batches on one GPU, and on five recent AIME and HMMT competitions the model went from 24% to 42% with 8K tokens to think, and from 43% to 68% with 16K. This post goes through all of it in order.

What the problems look like

The final test uses problems from two competitions. AIME is the American Invitational Mathematics Examination, the step after the AMC for strong high school students in the US. Every answer is a whole number from 0 to 999, which makes it easy to check automatically. HMMT is the Harvard-MIT Mathematics Tournament. Its answers can be fractions or expressions, but each is still a single exact value. Here’s the first problem from AIME 2025.

Find the sum of all integer bases b>9b > 9 for which 17b17_b is a divisor of 97b97_b.

In base bb, 17b17_b means b+7b + 7 and 97b97_b means 9b+79b + 7. Since 9b+7=9(b+7)−569b + 7 = 9(b + 7) - 56, the question becomes which values of b+7b + 7 divide 56. With b>9b > 9, that leaves b+7=28b + 7 = 28 or 5656, so bb is 21 or 49, and the answer is 70. A good student does it in a few minutes. The trained model’s answer starts like this.

We need to find integer bases b>9 such that the number represented by “17” in base b divides the number represented by “97” in base b. That is, interpret “17_b” = 1*b + 7 = b + 7. And “97_b” = 9*b + 7. We need b > 9 because digits 9 and 7 must be valid digits…

It got there in 1,156 tokens. That’s an easy one. Most problems in these sets take thousands of tokens, and the later ones are hard enough that the model often doesn’t finish within 8K at all.

How it learns

The learning method is GRPO (Group Relative Policy Optimization). For each problem the model writes several answers, four in my case. A verifier marks each one right or wrong. Answers that did better than the group average become more likely, and answers that did worse become less likely.

Ai=ri−1G∑j=1GrjA_i = r_i - \frac{1}{G}\sum_{j=1}^{G} r_j

Here rir_i is 1 if answer ii is correct and 0 if it isn’t, and GG is the group size. AiA_i is called the advantage, and you can read it as how hard that answer gets pushed up or down. If three of four answers are right, the right ones get a small push up and the wrong one gets a bigger push down. If all four are right, or all four are wrong, every answer gets an advantage of zero and the problem teaches nothing. That detail matters a lot later.

How GRPO turns right and wrong answers into learning. Top, a problem the model solves 3 times out of 4. The rewards are 1, 1, 1 and 0, the average is 0.75, so each right answer gets a push of plus 0.25 and the wrong one gets minus 0.75. Bottom, a problem it solves 4 times out of 4. Every reward is 1, the average is 1, so every push is zero and the problem teaches nothing.
The same rule on two problems. Each attempt is compared with its own group, so the model only learns from problems where its attempts disagree.

The usual recipe also divides by the standard deviation of the group. I left that out, following the Dr. GRPO argument that it gives too much weight to problems that are nearly solved or nearly hopeless.

On top of that I used MGPO, the weighting from the VibeThinker report. It looks at how often the model solves a problem, p^\hat p, and gives the most weight to problems it solves about half the time.

w=exp⁡(−λ⋅DKL(p^ ∥ 0.5))w = \exp\left(-\lambda \cdot D_{\mathrm{KL}}\left(\hat p \,\|\, 0.5\right)\right)

A problem the model gets right 2 times out of 4 has full weight. One it gets right 4 times out of 4 has no signal anyway. The idea is to spend the learning on problems right at the edge of what the model can do.

The rest is the standard toolkit for keeping this stable. There’s a clipped update like PPO, with the asymmetric “clip higher” range and the dynamic sampling from DAPO, and answers that hit the token limit are left out of the loss instead of being punished. That last one is easy to get wrong. If you punish every answer that runs out of room, the model learns to stop thinking early, and the VibeThinker report found that hurts long reasoning later on.

Building the problems

Most of the work went into what I call the Forge, the part that decides which problems are worth training on. A problem is only useful if the answer key is right, the verifier can check it, the model can’t guess it, and the model sometimes solves it and sometimes doesn’t.

The raw material is three public problem sets, DAPO-Math, DeepScaleR and DeepMath-103K, plus problems I generate myself. There are nine generator families, things like linear recurrences, power sums of polynomial roots and modular square root counts. Each family has two independent solvers, usually a closed form from SymPy and a brute force or numeric one, and a problem only gets emitted when both agree. Here’s one that made it into the pool.

Let r1,r2,r3r_1, r_2, r_3 be the roots of the polynomial x3+4x−1x^3 + 4x - 1. Compute r17+r27+r37r_1^7 + r_2^7 + r_3^7.

The answer is 112. One solver gets it from Newton’s identities and the other computes the three roots numerically and adds up their seventh powers.

Every candidate then goes through a few filters.

  • The answer key has to pass the verifier in several equivalent forms (12\frac{1}{2}, 0.50.5, 1/2), and obviously wrong answers like x+1x+1 or an empty box have to fail. If the checker can’t tell right from wrong on its own key, the problem goes.
  • Near duplicates of benchmark problems get removed with 13-gram matching. AIME24, AMC23 and MATH-500 are excluded entirely so they stay usable for testing.
  • A guess probe forces the model to answer immediately, with no reasoning at all, right after The final answer is \boxed{. Anything it can guess that way gets dropped.
  • Problems where the raw data disagreed with itself (the same problem with two different answers) got quarantined. That was 8 rows out of 15,403.

Finally the base model tries each surviving problem twice at the training budget. That’s the expensive step, and it’s also the one step where speed doesn’t matter much, since it’s only generation and every answer can be cached. So I ran it on free Kaggle GPUs, split into four chunks that each pick up where they left off when a session ends. Profiling 4,152 problems took 43.8 million generated tokens.

Of 4,152 profiled problems, 2,276 were solved in both attempts, 511 were solved once, 1,348 were solved in neither and 17 failed a validity check.
Two attempts is a rough measure of difficulty, but it was enough to sort problems into useful groups.

The interesting group is the one in the middle. Those 511 problems are where the model is unreliable, which is exactly where GRPO has something to learn from, and all of them became the training pool. The group that failed both times was mostly a budget problem rather than a skill problem. 86% of those answers hit the 8,192 token limit before finishing. The model was probably on its way to an answer and ran out of room.

Here’s a sample of what ended up in the pool.

Source In pool Example Answer
DAPO-Math 159 A cyclic quadrilateral ABCDABCD has AB=136AB = 136, BC=80BC = 80, CD=150CD = 150, DA=102DA = 102. Find the diameter of its circumscribed circle. 170
DeepScaleR 128 Let α\alpha and β\beta be acute angles with cos⁡α=17\cos\alpha = \frac{1}{7} and sin⁡(α+β)=5314\sin(\alpha + \beta) = \frac{5\sqrt{3}}{14}. Find β\beta. π3\frac{\pi}{3}
DeepMath 129 Evaluate lim⁡x→∞x2∫0xet3−x3 dt\lim_{x\to\infty} x^2 \int_0^x e^{t^3 - x^3}\,dt. 13\frac{1}{3}
Generated, digit sums 17 How many integers nn with 1≤n≤33051 \le n \le 3305 have digits summing to 9? 155
Generated, square roots mod mm 18 How many integers xx with 1≤x≤2961 \le x \le 296 satisfy x2≡9(mod81)x^2 \equiv 9 \pmod{81}? 22
Generated, recurrences 15 A sequence has a0=0a_0 = 0, a1=2a_1 = 2 and an=3an−1+3an−2a_n = 3a_{n-1} + 3a_{n-2}. Find a9a_9. 70632

The generated problems make up 95 of the 511, spread over nine families. A fun detail is that 35 of the DAPO problems are in Chinese, including the quadrilateral one above, which I translated here. The verifier only compares final answers, so the language of the problem doesn’t matter to it.

None of these are as hard as late AIME problems, but that’s not the point. The pool only keeps problems this particular model solves about half the time. Most of their answers ran 4,000 to 8,000 tokens, and 285 of the 511 averaged over 7,000, so the budget was tight for almost all of them.

A separate set of 100 problems was held out before training started.

Checking the steps, not only the answer

A final-answer reward has a known weak spot. A model can make an arithmetic slip, get lucky and still land on the right answer, and GRPO will happily reward the whole thing, slip included.

So the verifier also reads the reasoning. It pulls out closed arithmetic claims like 12×7=8412 \times 7 = 84 or 34+16=1112\frac{3}{4} + \frac{1}{6} = \frac{11}{12} and checks each one exactly with SymPy. The extractor is strict on purpose. It skips anything with a variable, a function like sin⁡30\sin 30, a factorial or a percent sign, because wrongly calling a correct step false would punish good reasoning, which is worse than missing a mistake.

When a claim is false, the loss treats it differently depending on whether the answer was right. In a correct answer, the tokens of the false claim get no reward, so the lucky slip isn’t reinforced. In a wrong answer, they get 1.5 times the penalty, and the rest of the answer gets a little less so the total stays the same. Self-corrections like “wait, 7 × 8 is 56, not 54” are left alone. Only the false claim itself is affected. This follows the token-level penalty idea from MiMo.

First try, two free GPUs

I started training on Kaggle too, with the same two free T4s, 16 GB each. They’re old, and almost everything that makes LLM training fast today doesn’t work on them. There’s no bf16, no FlashAttention 2, and vLLM’s LoRA kernels crash in fp16 on them.

Each of those needed a workaround. Full fine-tuning a 3B model needs around 48 GB just for the optimizer, so I trained a rank 32 LoRA on every linear layer. LoRA keeps the original weights W0W_0 frozen and learns two thin matrices BB and AA whose product gets added on top, so only a small fraction of the parameters actually train. LoRA has been reported to match full fine-tuning for RL, which made that an easy call. To get around the vLLM crash, I wrote a small extension that reads the original weights from disk and writes W0+sBAW_0 + sBA straight into vLLM’s memory after every update, so the sampler always runs the latest model without any LoRA kernels. One GPU generated answers while the other trained on the previous batch.

It ran. It was also hopelessly slow. One batch of 8 problems with 8 attempts each took 38 minutes, and a full 12 hour Kaggle session got through 17 batches. Accuracy over those 17 batches went from 49% to 52%, which with 64 answers per batch is just noise.

Generation speed during training. Two Kaggle T4s produced about 187 tokens per second, 38 minutes per batch of 64 answers. One RTX PRO 6000 Blackwell produced about 1,378 tokens per second, 2.2 minutes per batch of 32 answers.
Almost all of the time goes into generating answers. Training on them is the cheap part.

Moving to a bigger GPU

So I moved training to Colab with one RTX PRO 6000 Blackwell, 96 GB. Generation got about 7 times faster per token. With bf16 and enough memory to keep everything on one card, a batch took 2.2 minutes instead of 38.

My first run there trained for 75 batches in 2.8 hours. On its training problems, the share of attempts it solved went from 58% to 84%. It was working. Then I tried to use it.

Then I lost the checkpoint

The plan was to freeze the step 75 model as a parent and train three variants from it. When I went to load it, the folder said step 75 and the files inside weren’t there. The only thing left was a half-written temporary folder from step 16.

What happened, as far as I can reconstruct it, came down to how I was saving. The trainer wrote each checkpoint to a temporary folder on the mounted Google Drive and then renamed it. It also deleted older checkpoints automatically to save space. Renaming and deleting folders on a mounted Drive isn’t reliable, and Colab warns about exactly this. The Colab machine was gone by the time I noticed, and with it the only full copy. The training metrics all survived. Metrics aren’t weights though.

Saving works completely differently now. Each checkpoint is staged on the local disk, hashed, packed into one archive and uploaded through the Drive API, and the upload only counts once the server confirms the size and checksum. Nothing on Drive gets renamed or deleted automatically anymore. Before any long run, a short smoke test has to resume from a downloaded archive. If the resume pointer is missing or broken, training stops instead of silently starting over from step zero.

It’s a boring fix for a boring failure, and it cost me my first trained model.

Second run

So I started over from the published base model, in a fresh workspace, with the new saving code and the new problem pool. I froze everything before training. That meant the pool, the held-out set, the model version and the length of the run, so nothing could quietly change afterwards. This time it was 128 batches. Training took 5.4 hours and 23.2 million generated tokens, the model saw 463 different problems across 1,024 draws, and every checkpoint made it to Drive.

The share of training attempts solved rises from about 50% in the first batches to about 85% by batch 128. The share of answers cut off at 8,192 tokens falls from about 41% to 6%. Average answer length falls from about 6,400 tokens to 4,600.
Each dot is one batch of 32 attempts on problems drawn from the training pool. The line is the average of the last 12 batches, starting from batch 5, and the dashed line is the average of the first 10.
Stage A, second run First 10 batches Last 10 batches
Attempts solved 53% 86%
Answers cut off at 8K tokens 41% 7%
Average answer length 6,444 tokens 4,631 tokens
Problems where all 4 attempts were right 19% 65%

The two curves are really one story. Most of the gain in accuracy came from fewer answers running out of room. The model didn’t suddenly learn new math in five hours. It learned to get to the point inside the budget it was given. That was the thing I hoped was learnable at this scale, so I was happy with it.

The last row is the catch. When all four attempts are right, the problem gives zero signal, so as the model improves, more and more of each batch teaches it nothing. By the end almost two thirds of the problems were in that state. A run much longer than this would need harder problems or more attempts per problem to keep learning at the same rate.

I have to be careful about what these numbers mean. They’re measured on problems from the training pool, many of which the model had already seen. They show the training worked, not that the model got better at math in general. That needs problems it has never seen, which comes next.

One curve didn’t move.

The share of extracted arithmetic claims that the checker refuted stays around 8% to 13% throughout training, with a lot of noise from batch to batch.
About one in ten checkable arithmetic steps was flagged as wrong at the start, and about one in ten was still flagged at the end.

At first I read that as the penalty being too weak. Then I went through the claims themselves. The pipeline saves an audit sample of 300 rows, and in it the checker had flagged 21 claims as false. By my count, only 4 of those were real mistakes. Two were small rounding slips in decimals, and the model caught the other two itself on the very next word.

j=3: -17+24+42+36 =83? Wait

That’s the good case. The sum is 85, the checker flags it, and the model already doubts it.

The other 17 were the checker’s fault. 10 of them were thousands separators. The model wrote this, which is correct.

a7 = 4*3499 + 826 = 13,996 + 826 = 14,822 OK.

The extractor doesn’t understand the comma in 13,996, so it read the claim as 996+826=14996 + 826 = 14 and marked it false. The remaining 7 were notation it didn’t know how to read, like a list of squares modulo 9 written as 5^2=25=9 or 6^2=0, or an approximate chain like 28*55=1540/6≈256.

So the arithmetic curve is mostly measuring checker noise, and most of the time the step penalty was pushing down correct arithmetic. It’s a small weight next to the final-answer reward, which is probably why training worked anyway, but it’s a real bug. The fix is to normalize thousands separators and skip modular and approximate notation before checking. I’ll rerun the audit with that before I trust this signal again.

Testing on real competition problems

Before training anything, I froze five benchmarks the model never saw during training, the same AIME and HMMT sets from the start of this post. These were AIME 2025, AIME 2026, HMMT February 2025, HMMT November 2025 and 30 of the 33 HMMT February 2026 problems. That’s 150 competition problems in total. I also fixed the main score in advance, which is the average accuracy across the five sets at 8K tokens. Each model tried each problem twice, at both 8K and 16K tokens. The score for a problem is the average over its two attempts (people write this as avg@2), so a problem solved once out of two counts as half.

Accuracy at 8,192 tokens. AIME 2025 from 33% to 52%, AIME 2026 from 28% to 55%, HMMT Feb 2025 from 15% to 30%, HMMT Nov 2025 from 20% to 40%, HMMT Feb 2026 from 23% to 33%. Average from 24% to 42%. Accuracy at 16,384 tokens. AIME 2025 from 50% to 73%, AIME 2026 from 52% to 75%, HMMT Feb 2025 from 37% to 62%, HMMT Nov 2025 from 45% to 72%, HMMT Feb 2026 from 32% to 57%. Average from 43% to 68%.
Average accuracy over two attempts per problem, 30 problems per competition. The grey bar is the published model and the black bar is the same model after 128 batches of training.

The trained model is better on every competition at both budgets.

150 competition problems Budget Accuracy Cut off Average length
Published model 8K 24% 76% 7,464 tokens
After training 8K 42% 54% 6,453 tokens
Published model 16K 43% 57% 12,852 tokens
After training 16K 68% 28% 9,551 tokens

At 8K the gain is 18 points, with a 95% interval of 12 to 24 points. That interval comes from resampling the problems, keeping each problem’s before and after scores paired. At 16K the gain is 25 points (19 to 31). Per competition, the smallest gain is HMMT February 2026 at 8K, 10 points, and its interval just touches zero. All the others are clearly above it.

The 16K result surprised me the most. The model was only ever trained with 8K tokens, but the bigger gain shows up when it gets twice that. The reason is in the cut off column. The published model doesn’t fail these problems because it can’t do them. It fails because it’s still thinking when the budget runs out. 76% of its answers at 8K never finished. Training taught it to reach an answer sooner, and that habit carries over to any budget. At 16K, the trained model finishes 72% of its answers while using about a quarter fewer tokens than the base model.

Answer lengths on the 150 benchmark problems with a 16,384 token budget, two attempts each. The published model hit the 16K limit on 171 of 300 answers and finished 70 under 8,000 tokens. The trained model hit the limit on 83 and finished 141 under 8,000 tokens.
Each pair of bars counts answers by length. The tall bars on the right are answers that never finished.

The shape of this chart is the whole result. The published model finished only 70 of its 300 answers within 8,000 tokens and ran out of room on 171. The trained model finished 141 within 8,000 and ran out on 83. The answers moved left, toward the part of the chart it was trained on.

Counting problem by problem at 8K, the trained model did better on 40 of the 150, worse on 3 and the same on the other 107. Most of those are problems both models solve or both miss. At 16K it was 55 better and 2 worse. A gain that came from a few lucky problems would look much more mixed than that.

One problem, before and after

Here’s what the difference looks like on a single problem, number 4 from AIME 2026.

Find the number of integers less than or equal to 100 that are equal to a+b+aba + b + ab for some choice of distinct positive integers aa and bb.

The trick is that a+b+ab=(a+1)(b+1)−1a + b + ab = (a + 1)(b + 1) - 1. So NN works when N+1N + 1 is a product of two different whole numbers, both at least 2. That fails only when N+1N + 1 is a prime (26 of them up to 101) or the square of a prime (4, 9, 25 and 49), so the answer is 100−30=70100 - 30 = 70.

The published model ran out of room on both attempts at 8K. What surprised me is that it wasn’t lost. In the first attempt it found the (a+1)(b+1)(a+1)(b+1) trick in its first paragraph, had 70 about a third of the way in, and three times wrote out a boxed final answer of 70, all still inside its thinking. Then it kept going. These are the last lines before the budget ran out.

Thus answer 70 is correct.

Now confirm by brute enumeration maybe? Let’s try to produce the list of representable n <=100 and count manually to double-check number of representable n is 70. We can produce the list we derived from the manual check earlier: Representable n up to 100:

From the manual check from 5 to 100, we flagged represent

It never closed the thinking block, so there was no final answer and the attempt scored zero. Across the whole test this wasn’t rare. Of the 228 answers the published model didn’t finish at 8K, 30 had already written the correct boxed answer somewhere in their thinking.

The trained model solved it in both attempts, using 3,936 and 5,689 tokens. It found the same trick, counted the primes and prime squares, checked once and then stopped. Its final answer ends like this.

Hence an integer N (with 1 ≤ N ≤ 100) is representable iff N+1 is not a prime and not a perfect square of a prime. … These sets are disjoint, so there are 26+4=30 disallowed values of N+1. Therefore the number of admissible N is 100 − 30 = 70.

Same math, same answer. One of them knew when to stop.

So the training curves weren’t misleading. “Fits in the budget” really does turn into better scores on problems the model has never seen.

One caveat matters here. This is a single training run with one seed. The intervals account for which problems happened to be on the test, not for how much a different seed would change the result. With gains this size I’d be surprised if it went away, but I haven’t measured it.

The question I couldn’t test

The comparison I actually designed the campaign for came after this. Many of the problems the model fails at 8K tokens it can solve with more room. If I let it solve those with a bigger budget, cut the solutions down until they fit and stand on their own, and replay them during training, does that help more than replaying ordinary successful answers, or just running more RL?

The plan was three variants from the same parent with the same compute. One would continue plain RL, one would replay recovered solutions and one would replay ordinary successful ones. Each replay arm needed 32 different recovered problems per source before training could start.

It never got that far, and the reason is a little funny. I gave the trained parent 128 problems from its training pool, four attempts each. Out of 512 answers, only 29 ran out of room. Every one of those 29 was solved once it got a bigger budget, but only 9 passed the checks to become a clean teaching example, and they covered just 7 different problems. Scanning the whole pool would have yielded about 28, still short of 32. Stage A had already done its job too well. On its own training problems, the model barely runs out of tokens anymore, so there was almost nothing left to recover.

Here’s one of the recoveries that did pass.

If xx, yy and zz are positive integers such that

6xyz+30xy+21xz+2yz+105x+10y+7z=812,\begin{aligned} &6xyz + 30xy + 21xz + 2yz \\ &\quad + 105x + 10y + 7z = 812, \end{aligned}

find x+y+zx + y + z.

At 8K the model ran out of room while still checking cases. Given 849 more tokens, it finished. The expression factors as (z+5)(6xy+21x+2y+7)−35(z + 5)(6xy + 21x + 2y + 7) - 35, so the product equals 847=7⋅112847 = 7 \cdot 11^2, and checking the two possible factor pairs leaves only (x,y,z)=(2,2,6)(x, y, z) = (2, 2, 6). The answer is 10. A solution like that, trimmed so it fits in 8K, is what the replay arm would have trained on.

One more thing bothers me about the numbers. All 29 recovered answers were correct and all of them finished. The 20 that didn’t count failed the strictest filter, which allows zero refuted arithmetic steps. After the audit above, I suspect many of those were the thousands separator bug rather than real mistakes. It wouldn’t have changed the decision, since the 29 recoveries only covered 20 different problems, still short of 32. But the bug made a thin supply even thinner.

The pre-registered rule said to stop in that case, so I stopped, and I evaluated the base and the parent instead, which is the comparison above. To test recovery replay properly, I’ll need problems that are harder than the current pool, where the trained model still runs out of room often.

The whole campaign used 16 Blackwell GPU hours on Colab. That was 6 for training, 7 for the final evaluation and the rest for setup and preparation, plus about 4 hours of plain CPU time. The Forge profiling ran separately on free Kaggle sessions, so it didn’t cost anything beyond waiting.

Under the hood

This part is for anyone who wants the details.

MathMidas pipeline. Public problem sets and small CAS programs go into the Forge, which checks every answer key, drops guessable problems and profiles each one with two attempts. The frozen pool feeds training. vLLM samples answers, a verifier checks final answers and arithmetic steps, and the LoRA trainer updates the model, whose new weights go back into vLLM.

Answers are generated with vLLM and scored on the CPU by math-verify together with an independent SymPy checker. If the two checkers disagree, I log it. The trainer computes token log probabilities in chunks so the 151,936 token vocabulary doesn’t blow up memory on 8K token answers. Every run logs to Weights & Biases with resumable run IDs, and every phase records its GPU hours against a fixed budget.

One naming note for anyone reading my report files. They call the trained model stage75, which is a leftover label from the first run’s 75 batch plan. It’s the 128 batch model from the second run.

Stage A settings

Setting Value
Base model VibeThinker-3B, bf16
Adapter LoRA rank 32, alpha 64, every linear layer
Batch 8 problems × 4 attempts
Token budget 8,192 per answer, cut-off answers left out of the loss
Learning rate 1e-5
Clipping 0.2 below, 0.28 above
Advantage group mean, no std scaling, MGPO weighting
Loss averaging per problem
Step penalty 1.5× on refuted arithmetic in wrong answers
Hardware one RTX PRO 6000 Blackwell, 96 GB

Runs so far

Run Batches Wall time Result
Forge profiling, 2× T4 4,152 problems × 2 43.8M tokens 511 problem pool, 100 held out
Stage A, 2× T4 (early pool) 17 11 h too slow to tell anything
Stage A, Blackwell, first run 75 2.8 h 58% to 84% solved, 39% to 15% cut off, checkpoint lost
Stage A, Blackwell, second run 128 5.4 h benchmarks 24% to 42% at 8K, 43% to 68% at 16K
Recovery replay prep 128 problems × 4 under 1 h 7 usable problems out of 32 needed, stopped

Takeaways

The verifier is the whole game. Most of my time went into making sure the reward was right, meaning answer keys that two solvers agree on, a checker that rejects its own wrong answers and a probe for guessable problems. Training was the short part.

At this scale, “better” mostly means “fits in the budget”. The model didn’t learn new math in 128 batches. It learned to stop wandering, and that alone was worth 18 points at 8K and 25 points at 16K on competitions it had never seen.

Success can break the next experiment. The parent got so good at fitting its training problems into 8K tokens that there was nothing left for recovery replay to work with. Next time the pool needs harder problems to match the stronger model.

Hardware decides what’s possible more than I expected. On free T4s, one batch took longer than a whole meeting, and I spent most of my effort on workarounds. On one modern GPU the same run took an afternoon.

And save your checkpoints like you’ll need them, because the one you don’t verify is the one that’s gone.

Keep reading

All posts ↗
ESC
↑↓ navigate ↵ open