Skip to content

Instantly share code, notes, and snippets.

View MasoudMaani's full-sized avatar

ΜΛΛNΙ MasoudMaani

View GitHub Profile
@karpathy
karpathy / microgpt.py
Last active August 12, 2026 00:24
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@willccbb
willccbb / grpo_demo.py
Last active August 2, 2026 02:38
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},