code to accompany Towards Data Science article on prompt-loss-weight
virtualenv -p python3.10 venv && source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
- 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...]
python gen_ratios.py [args...]