Skip to content

Instantly share code, notes, and snippets.

View Gyanachand1's full-sized avatar
🎯
Focusing

Gyanachand Panigrahi Gyanachand1

🎯
Focusing
View GitHub Profile
@Gyanachand1
Gyanachand1 / grpo_demo.py
Created February 5, 2025 03:25 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset
@Gyanachand1
Gyanachand1 / normcore-llm.md
Created September 22, 2024 15:58 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models