Implement API for Pythia model controls
The goal of pythia_wrapper is to provide useful tools to play with several Pythia models including training and analysis of neurons. To do this, we need API to handle several features of GPT models. The wrapper will play the goal API to play.
generate.py
: given a model path, generate sentences with the model.train.py
: given a model and dataset, fine-tune the model and save the checkpoint modeltrain.sh
: fine-tune a model and save the model.PythiaWrapper
GPTData
ð pytiawrap
ð __init__.py # include PythiaWrapper and GPTData
ð PythiaWrapper
ð __init__.py
ð utils.py
ð GPTData
ð __init__.py
ð download_dataset.py
ð utils.py
ð train.py
ð generate.py