script/transfer/mag/bart/nohup-bart-DA_MagTL13m-FT_full-lr1e5-step100k.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

#sleep 14400
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/train.json --dataset-type scipaper --save-dir /zfs1/hdaqing/rum20/kp/transfer_exps/bart_mag_fewshot/bart-MagTL_step200k-kp20k_full_lr1e5_step100k/ckpts --disable-validation --task keyphrasification --max-source-length 512 --max-target-length 128 --kp-concat-type pres_abs --arch bart_large --restore-file /zfs1/hdaqing/rum20/kp/transfer_exps/bart_mag/bart-DA_MagTL13m-lr1e5-step200k/ckpts/checkpoint_step_200000.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.999)" --adam-eps 1e-08 --clip-norm 0.1 --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 --max-tokens 1920 --update-freq 2 --save-interval-updates 5000 --warmup-updates 10000 --max-update 100000 --total-num-update 100000 --num-workers 8 --find-unused-parameters --fp16 --ddp-backend=no_c10d --wandb-project transfer_kp_mag  > /zfs1/hdaqing/rum20/kp/transfer_exps/bart_mag/bart-DA_MagTL13m-lr1e5-step200k/train.nohup.out &
