script/release/bart/DA-kp20k_4gpu.sh
#!/usr/bin/env bash


source ~/.bash_profile # reload LD_LIBRARY due to error ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
cd /zfs1/hdaqing/rum20/kp/fairseq-kpg

PYTHONUNBUFFERED=1;TOKENIZERS_PARALLELISM=false;CUDA_VISIBLE_DEVICES=0,1,2,3 nohup /ihome/hdaqing/rum20/anaconda3/envs/kp/bin/python3.7 train.py /zfs1/hdaqing/rum20/kp/data/kp/json/kp20k_train100k/train.json --dataset-type scipaper --label-data /zfs1/hdaqing/rum20/kp/transfer_exps_v2/kp_PT/bart-wiki-step200k/outputs/beamsearch-width_1-maxlen_60/pred/checkpoint_step_200000-data_kp20k_train100k_train.pred:__random_span --label-sample-ratio [0.5,0.5] --save-dir /zfs1/hdaqing/rum20/kp/transfer_exps_v2/bart_PTDA/bart-DA_kp20k_tlrs55-lr1e5-bs256-step5k/ckpts --disable-validation --task keyphrasification --max-source-length 512 --max-target-length 256 --kp-concat-type pres_abs --max-target-phrases 16 --max-phrase-len 8 --arch bart_large --restore-file /zfs1/hdaqing/rum20/kp/data/kp/cache/bart.large/model.pt --bpe hf_pretrained_bpe --bpe-vocab /zfs1/hdaqing/rum20/kp/data/kp/hf_vocab/roberta-base-kp/vocab.json --bpe-merges /zfs1/hdaqing/rum20/kp/data/kp/hf_vocab/roberta-base-kp/merges.txt --dict-path /zfs1/hdaqing/rum20/kp/data/kp/hf_vocab/roberta-base-kp/dict.txt --bpe-dropout 0.0 --ddp-backend=no_c10d --criterion label_smoothed_cross_entropy --share-all-embeddings --layernorm-embedding --share-all-embeddings --share-decoder-input-output-embed --reset-optimizer --reset-dataloader --reset-meters --required-batch-size-multiple 1 --optimizer adam --adam-betas (0.9,0.98) --adam-eps 1e-08 --lr 1e-5 --lr-scheduler polynomial_decay --label-smoothing 0.1 --dropout 0.1 --attention-dropout 0.1 --weight-decay 0.01 --log-format simple --log-interval 100 --fixed-validation-seed 7 --batch-size 16 --update-freq 8 --save-interval-updates 1000 --warmup-updates 300 --max-update 5000 --total-num-update 5000 --num-workers 4 --find-unused-parameters --fp16 --ddp-backend=no_c10d --wandb-project transfer_kp_wiki