Skip to content

jasont314/GPT-opt

 
 

Repository files navigation

GPT-opt

Small package for testing optimization methods for training GPT models from the Transformers library

start, setup up the virtual enviroment and install dependencies by running

 ./setup_env.sh

Create a virtual environment and activate:

python3 -m venv gptopt
source gptopt/bin/activate
python3 -m pip install -e .

Run Example:

python3 run.py --config configs/shakespeare.yaml

Plot Results:

python3 plot.py --config configs/shakespeare.yaml

On the cluster

srun

srun --gpus=1 --cpus-per-gpu=8 --time=150:00:00 --partition=gpu --constraint=a100 --pty bash
module load python

Or using Slurm:

./submit.sh configs/shakespeare.yaml

See current jobs

squeue --format="%.18i %.9P %.30j %.8u %.8T %.10M %.9l %.6D %R" --me

About

Code for testing optimization methods and tricks for training GPT type models

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 98.2%
  • Shell 1.8%