Skip to content

Instantly share code, notes, and snippets.

View akashsharma95's full-sized avatar
🎯
Focusing

Akash Sharma akashsharma95

🎯
Focusing
View GitHub Profile
@akashsharma95
akashsharma95 / grpo_demo.py
Created January 31, 2025 16:10 — 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
@akashsharma95
akashsharma95 / Simple Python Google Speech API
Last active December 16, 2015 23:59
Simple Python Google Speech API
The required modules and programs are :--
-libav
-python-requests
I have used libav here you can also use ffmpeg etc...