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
| #!/bin/bash | |
| echo "### BEGIN INSTALLATION OF PACKAGES ###" | |
| os_release_file="/etc/os-release" | |
| if [ -e "$os_release_file" ]; then | |
| . "$os_release_file" | |
| if [ -n "$ID_LIKE" ]; then |
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
| # If you come from bash you might have to change your $PATH. | |
| #export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| #export PATH="$PATH=:/usr/local/bin" | |
| export ZSH="$HOME/.oh-my-zsh" | |
| export UPDATE_ZSH_DAYS=5 | |
| #export LANG=en_US.UTF-8 | |
| export BUN_INSTALL="$HOME/.bun" | |
| export PATH="$BUN_INSTALL/bin:$PATH" |