-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinfer_pka.sh
27 lines (26 loc) · 1.14 KB
/
infer_pka.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
data_path='novartis_acid'
infer_task='novartis_acid'
results_path='novartis_acid_results'
model_path='finetune_save'
head_name='chembl'
conf_size=11
dict_name='dict.txt'
charge_dict_name='dict_charge.txt'
task_num=1
batch_size=16
loss_func="finetune_mse"
nfolds=5
only_polar=-1
for ((fold=0;fold<$nfolds;fold++))
do
python ./unimol/infer.py --user-dir ./unimol ${data_path} --task-name $infer_task --valid-subset $infer_task \
--results-path $results_path/fold_${fold} \
--num-workers 8 --ddp-backend=c10d --batch-size $batch_size \
--task mol_pka --loss $loss_func --arch unimol_pka \
--classification-head-name $head_name --num-classes $task_num \
--dict-name $dict_name --charge-dict-name $charge_dict_name --conf-size $conf_size \
--only-polar $only_polar \
--path $model_path/fold_$fold/checkpoint_best.pt \
--fp16 --fp16-init-scale 4 --fp16-scale-window 256 \
--log-interval 50 --log-format simple --required-batch-size-multiple 1
done