Reasoning from scratch, round number 6!
@rasbt546.707 Follower
77.111 Aufrufe
49 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@rasbt
And a link to the YouTube version:
37 Likes

@fireplyai
loading the pretrained model at 35:04 and sampling responses by 39:26. that's a tight path from nothing to something you can inspect
3 Likes

@daniel_priscu
grpo walked through with actual code is rare, most explainers stop at the diagram
2 Likes

@rasbt
And it’s used to train a pretty solid model too

@proxy_vector
Does the GRPO part sample the whole group in one batched generate call?
2 Likes

@rasbt
It's sequential to keep the compute resource requirements low, but I also have a batched version that does that (I mentioned it somewhere in the video)

@MLaurusevicius
Chapter list alone is worth it. Going to start with the cooking analogy one.
2 Likes

@DeboraLauriola
Your breakdown of RLVR and GRPO is a valuable contribution to the discussion around AI reasoning. I’d be interested in your perspective for an upcoming TechCrunch story.
2 Likes

@sakshjn
worth pairing with dr grpo after this. dividing by response length means long wrong answers get penalized less per token, so outputs creep longer
2 Likes

@rasbt
Spoiler: GRPO improvements are covered in the 2-hour follow-up video :)
2 Likes

@sakshjn
oh nice, 2 hours is generous. does it get into dapo's clip-higher too or mostly the length norm stuff

@MathiasEngineer
Loved the book! Now I can watch this to reinforce my learning :) thank you
2 Likes

@classevelabs
does the from-scratch GRPO loop stay practical on a CPU-only laptop, or is a GPU the real floor for the MATH run?
2 Likes

@rasbt
I wouldn't run it on a laptop for too long, it would get very hot

@classevelabs
ha, fair. hand warmer with a loss curve then. is one colab-tier GPU enough for the whole chapter?

@gol_tiro
round 6 already, this series is the way to actually get grpo instead of just using it. does the from-scratch version fit on a single consumer gpu or does it want more?
2 Likes

@rasbt
The (small) default settings are ok for single GPU
2 Likes

@buswe_com
Dropping the critic is what makes GRPO fit on one GPU: the group mean is the baseline, so there is no second model to hold.
2 Likes

@AIQuanting
The inference-mode error fix at 57:37 is my favourite thing in that list. That bug eats an afternoon and it almost never makes the cut.
2 Likes

@rasbt
Fun fact: I added it earlier in the video, deliberately, for demo purposes
1 Like






















