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
| #First pull the centos8 image | |
| docker pull centos | |
| #Then install java 11 using the command below. Make sure your baseOs, appstream, powertools, extras are upto date | |
| yum install java-11-openjdk-devel.x86_64 maven | |
| #Than make java 11 active using | |
| alternatives --config java | |
| #Install wget and get the selenium server jar |
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
| docker pull redhat/ubi8-minimal | |
| microdnf install yum | |
| yum install java-11-openjdk-devel.x86_64 maven | |
| #Then make java 11 active using | |
| alternatives --config java | |
| #Install all the below things | |
| yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm |
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 com.mfuz; | |
| import java.text.SimpleDateFormat; | |
| import java.time.LocalDate; | |
| import java.util.Calendar; | |
| import java.util.Date; | |
| import java.util.GregorianCalendar; | |
| public class FederalHolidays { |