Skip to content

Instantly share code, notes, and snippets.

View Abhinavthorat's full-sized avatar
💭
Let's Build Deep Thought!!

Abhinav Thorat Abhinavthorat

💭
Let's Build Deep Thought!!
View GitHub Profile
@Abhinavthorat
Abhinavthorat / grpo_demo.py
Created March 1, 2025 07:45 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database