Skip to content

Instantly share code, notes, and snippets.

View Adithya-Rama's full-sized avatar
🎯
Focusing

Adithya Rama Adithya-Rama

🎯
Focusing
View GitHub Profile
@Adithya-Rama
Adithya-Rama / grpo_demo.py
Created January 31, 2025 14:40 — 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
@Adithya-Rama
Adithya-Rama / AOStarAlgorithm.py
Last active January 9, 2024 19:41
This Gist Contains all the lab programs of AIML 7th sem (18CS71)
def recAOStar(n):
print("Expanding Node : ", n)
and_nodes = []
or_nodes = []
#Segregation of AND and OR nodes
if (n in allNodes):
if 'AND' in allNodes[n]:
and_nodes = allNodes[n]['AND']
if 'OR' in allNodes[n]:
or_nodes = allNodes[n]['OR']
@Adithya-Rama
Adithya-Rama / RRndSRTFscheduling.java
Created June 25, 2023 08:58
A java program to demonstrate Round Robin and SRTF scheduling Techniques in Operating System
package osprograms;
import java.util.Scanner;
public class Program7 {
static int[] arrivalTime = new int[10], burstTime = new int[10];
static int size;
public static void main(String[] args) {