This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) { |