Skip to content

code for Towards Data Science article on prompt-loss-weight

Notifications You must be signed in to change notification settings

davidsvaughn/prompt-loss-weight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experiments with prompt-loss-weight

code to accompany Towards Data Science article on prompt-loss-weight

Setup (with virtualenv)

virtualenv -p python3.10 venv && source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

Fine-Tuning with Prompt-Loss-Weight

  • single-GPU: python run_plw.py [--prompt_loss_weight <float>] [other_args...]
  • multi-GPU: torchrun --nproc_per_node [num_gpus] run_plw.py [--prompt_loss_weight <float>] [other_args...]

Compute Generation Ratios

  • python gen_ratios.py [args...]

About

code for Towards Data Science article on prompt-loss-weight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages