General starter code for creative model architecture with huggingface transformer library. Users may implement customized llama model in models
directory.
Change the cuda version if it is not compatible. Developped with python 3.12.4.
conda install pytorch pytorch-cuda=12.1 -c pytorch -c nvidia
pip install -r requirements.txt
Copy run_clm.sh.template
to run_clm.sh
and run it.
# for the first time execution
cp run_clm.sh.template run_clm.sh
# run the script
bash run_clm.sh