Skip to content

Instantly share code, notes, and snippets.

View Indra24710's full-sized avatar
🎯
Focusing

Indra Kumar Indra24710

🎯
Focusing
  • Amazon
  • San Francisco Bay Area
View GitHub Profile
@Indra24710
Indra24710 / grpo_demo.py
Created February 1, 2025 02:57 — 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
@Indra24710
Indra24710 / Solution.ipynb
Last active May 6, 2024 22:00
Submission for Dragonfruit Software engineering challenge - Indra Kumar V
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include<stdio.h>
struct employ{
int id;
char name[50];
float salary;
char dept_name[50];
};
float salary_amp(float sal)
{
return(sal+(0.1*sal));