Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
acharkq committed Feb 5, 2024
1 parent 32428e0 commit 930ffb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions script/chebi.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
export TOKENIZERS_PARALLELISM=false;

# python stage2.py --root 'data/ChEBI-20_data' --devices '0,1' --filename "ft_chebi" --opt_model 'facebook/galactica-1.3b' --max_epochs 100 --mode ft --prompt '[START_I_SMILES]{}[END_I_SMILES]. ' --tune_gnn --llm_tune lora --inference_batch_size 8 --peft_config lora_config.json

python stage2.py --root 'data/ChEBI-20_data' --devices '0,1' --filename "ft_chebi" --opt_model 'facebook/galactica-1.3b' --max_epochs 100 --mode ft --prompt '[START_I_SMILES]{}[END_I_SMILES]. ' --tune_gnn --llm_tune lora --inference_batch_size 8 --peft_config lora_config.json --caption_eval_epoch 1
python stage2.py --root 'data/ChEBI-20_data' --devices '0,1' --filename "ft_chebi" --opt_model 'facebook/galactica-1.3b' --max_epochs 100 --mode ft --prompt '[START_I_SMILES]{}[END_I_SMILES]. ' --tune_gnn --llm_tune lora --inference_batch_size 8 --peft_config lora_config.json --caption_eval_epoch 10 --stage2_path 'path-to-stage2-ckpt';
exit
}
3 changes: 1 addition & 2 deletions script/stage2.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
export TOKENIZERS_PARALLELISM=false;
# python stage2.py --root 'data/PubChem324k' --devices '0,1' --filename "stage2" --stage1_path "all_checkpoints/stage1/last.ckpt" --opt_model 'facebook/galactica-1.3b' --max_epochs 10 --mode pretrain --prompt '[START_I_SMILES]{}[END_I_SMILES].' --tune_gnn --llm_tune freeze --inference_batch_size 4

python stage2.py --root 'data/PubChem324k' --devices '1,5' --filename "stage2" --opt_model 'facebook/galactica-1.3b' --max_epochs 10 --mode pretrain --prompt '[START_I_SMILES]{}[END_I_SMILES].' --tune_gnn --llm_tune freeze --inference_batch_size 4 --caption_eval_epoch 1 --filtered_cid_path data/PubChem324k/filtered_pretrain_cids.txt
python stage2.py --root 'data/PubChem324k' --devices '0,1' --filename "stage2" --opt_model 'facebook/galactica-1.3b' --max_epochs 10 --mode pretrain --prompt '[START_I_SMILES]{}[END_I_SMILES].' --tune_gnn --llm_tune freeze --inference_batch_size 4 --caption_eval_epoch 10 --filtered_cid_path data/PubChem324k/filtered_pretrain_cids.txt
exit
}

0 comments on commit 930ffb4

Please sign in to comment.