Skip to content
/ hf-starter Public template

General starter code for creative model architecture with huggingface transformer library.

Notifications You must be signed in to change notification settings

whyNLP/hf-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huggingface Transformers Starter Code

General starter code for creative model architecture with huggingface transformer library. Users may implement customized llama model in models directory.

Installation

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

Usage

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

About

General starter code for creative model architecture with huggingface transformer library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published