Skip to content

Instantly share code, notes, and snippets.

View ryoshu's full-sized avatar

Ricky Bacon ryoshu

View GitHub Profile
@willccbb
willccbb / grpo_demo.py
Last active June 16, 2025 05:05
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
!function() {
var doc = document,
htm = doc.documentElement,
lct = null, // last click target
nearest = function(elm, tag) {
while (elm && elm.nodeName != tag) {
elm = elm.parentNode;
}
return elm;
};