Skip to content

Commit

Permalink
Added additional example scripts for finetuning on Absolut data.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlparkI committed Nov 17, 2024
1 parent 7f5aa96 commit d78c184
Show file tree
Hide file tree
Showing 19 changed files with 500,695 additions and 11,581 deletions.
Binary file modified config/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified dataset_loaders/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified dataset_loaders/__pycache__/textfile_loader.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/collaters.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/constants.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/data.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/losses.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/metrics.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/model.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/plot.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/pretrained.cpython-38.pyc
Binary file not shown.
Binary file modified evodiff/__pycache__/utils.cpython-38.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions example_finetune_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ conda activate evodiff
# and to update the other lines as appropriate.

python fine_tune.py --config_fpath /stg3/data3/Jonathan/jonathan2/pdl1_evodiff_tuning/evodiff/config/config38M.json \
--out_fpath /stg3/data3/Jonathan/jonathan2/pdl1_evodiff_tuning/evodiff_results/ \
--train_fpath /stg3/data3/Jonathan/jonathan2/pdl1_evodiff_tuning/train_pdl1.txt \
--valid_fpath /stg3/data3/Jonathan/jonathan2/pdl1_evodiff_tuning/test_pdl1.txt \
--out_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/ \
--train_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/il2_80_genAI_seqs.txt \
--valid_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/ \
--checkpoint_freq 60 \
--LoRA 16
# --large_model
300,604 changes: 300,604 additions & 0 deletions il2_evodiff

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions il2_finetuning.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

#SBATCH -p gpu
#SBATCH --job-name il2_evodiff
#SBATCH --output il2_evodiff
#SBATCH -w gpu-2
#SBATCH --gres=gpu:1
#SBATCH --mem=50G


module load cuda

source /stg3/data3/Jonathan/.bashrc
source /stg3/data3/Jonathan/.bash_profile

conda activate evodiff


python fine_tune.py --config_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/evodiff_ft/config/config640M.json \
--out_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/il2_90/ \
--train_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/il2_90/il2_90_genAI_train.txt \
--valid_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/il2_90/il2_90_genAI_test.txt \
--large_model


python fine_tune.py --config_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/evodiff_ft/config/config640M.json \
--out_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/il2_80/ \
--train_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/il2_80/il2_80_genAI_train.txt \
--valid_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/il2_80/il2_80_genAI_test.txt \
--large_model
11,578 changes: 0 additions & 11,578 deletions l1evodiff

This file was deleted.

200,030 changes: 200,030 additions & 0 deletions neura_evodiff

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions neura_finetuning.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

#SBATCH -p gpu
#SBATCH --job-name neura_evodiff
#SBATCH --output neura_evodiff
#SBATCH -w gpu-2
#SBATCH --gres=gpu:1
#SBATCH --mem=50G

module load cuda

source /stg3/data3/Jonathan/.bashrc
source /stg3/data3/Jonathan/.bash_profile

conda activate evodiff


python fine_tune.py --config_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/evodiff_ft/config/config640M.json \
--out_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/neura_80/ \
--train_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/neura_80/neuraminidase_80_genAI_train.txt \
--valid_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/neura_80/neuraminidase_80_genAI_test.txt \
--large_model

python fine_tune.py --config_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/evodiff_ft/config/config640M.json \
--out_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/neura_90/ \
--train_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/neura_90/neuraminidase_90_genAI_train.txt \
--valid_fpath /stg3/data3/Jonathan/jonathan2/resp2_absolut/fine_tuning/neura_90/neuraminidase_90_genAI_test.txt \
--large_model

0 comments on commit d78c184

Please sign in to comment.