Skip to content

Instantly share code, notes, and snippets.

View sjstheesar's full-sized avatar
🎯
Focusing

SJS Theesar sjstheesar

🎯
Focusing
View GitHub Profile
@sjstheesar
sjstheesar / grpo_demo.py
Created February 2, 2025 01:31 — 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
@sjstheesar
sjstheesar / FHLMC_Credit_Analysis.py
Created November 14, 2022 08:44 — forked from domisoxz/FHLMC_Credit_Analysis.py
Intro to probability of default and transition matrix analysis using Freddie Mac single-family loan level dataset
import pandas as pd
import requests
import io
import os
import zipfile
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import seaborn as sns
import numpy as np
@sjstheesar
sjstheesar / bZx.exploit
Created August 5, 2021 07:37 — forked from metaver5o/bZx.exploit
bZx smart contract exploit
#
# Panoramix v4 Oct 2019
# Decompiled source of 0x4f4e0f2cb72E718fC0433222768c57e823162152
#
# Let's make the world open source
#
#
# I failed with these:
# - unknowna270ef06(?)
# All the rest is below.