Skip to content

Instantly share code, notes, and snippets.

View Assure-thinkTech's full-sized avatar
🎯
Focusing

AST Assure-thinkTech

🎯
Focusing
View GitHub Profile
@Assure-thinkTech
Assure-thinkTech / grpo_demo.py
Created February 3, 2025 10: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
@Assure-thinkTech
Assure-thinkTech / trend_following_1.ipynb
Created July 8, 2023 09:42 — forked from AnthonyFJGarner/trend_following_1.ipynb
A Simple Trend Following System in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.