Commit 3ee2315d authored by Gaëtan Caillaut's avatar Gaëtan Caillaut
Browse files

update slurm scripts

parent 68f45ceb
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name minibert-DEFT2018
#SBATCH --job-name mlm
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......@@ -28,7 +28,7 @@ for d in ${OUT_DIR} ${LOGDIR}; do
fi
done
export PYTHONPATH="/lium/raid01_b/gcaillaut/polysemy/minibert-oscar/minibert:${PYTHONPATH}"
export PYTHONPATH="/lium/raid01_b/gcaillaut/polysemy/minibert/minibert:${PYTHONPATH}"
set -x
set -e
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name minibert-DEFT2018-lemmatized
#SBATCH --job-name mlm-lemmatized
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......@@ -28,14 +28,14 @@ for d in ${OUT_DIR} ${LOGDIR}; do
fi
done
export PYTHONPATH="/lium/raid01_b/gcaillaut/polysemy/minibert-oscar/minibert:${PYTHONPATH}"
export PYTHONPATH="/lium/raid01_b/gcaillaut/polysemy/minibert/minibert:${PYTHONPATH}"
set -x
set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
TB_DIR="${LOGDIR}/${RUN_NAME}"
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name minibert-DEFT2018-finetune-t1
#SBATCH --job-name t1
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T1_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name camembert-DEFT2018-finetune-t1
#SBATCH --job-name camembert-t1
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name camembert-DEFT2018-finetune-t1-lemmatized
#SBATCH --job-name camembert-t1-lemmatized
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T1_RUN_NAME="d${D}_${ATT}_${POS}_norm_frozen"
......
......@@ -37,7 +37,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T1_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -37,7 +37,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T1_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name minibert-DEFT2018-finetune-t1-lemmatized
#SBATCH --job-name 1-lemmatized
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T1_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T1_RUN_NAME="d${D}_${ATT}_${POS}_norm_frozen"
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name minibert-DEFT2018-finetune-t2
#SBATCH --job-name t2
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T2_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name camembert-DEFT2018-finetune-t2
#SBATCH --job-name camembert-t2
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name camembert-DEFT2018-finetune-t2-lemmatized
#SBATCH --job-name camembert-t2-lemmatized
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T2_RUN_NAME="d${D}_${ATT}_${POS}_norm_frozen"
......
......@@ -37,7 +37,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T2_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -37,7 +37,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T2_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -2,7 +2,7 @@
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name minibert-DEFT2018-finetune-t2-lemmatized
#SBATCH --job-name t2-lemmatized
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T2_RUN_NAME="d${D}_${ATT}_${POS}_norm"
......
......@@ -36,7 +36,7 @@ set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "self-attention" "non-transforming"; do
for ATT in "self-attention" "non-transforming" "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
MLM_RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
T2_RUN_NAME="d${D}_${ATT}_${POS}_norm_frozen"
......
#!/bin/bash
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name mlm-semitrans
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
#SBATCH -e logs/err-%j.txt
#SBATCH --mail-type=ALL
#SBATCH --mail-user=gaetan.caillaut@univ-lemans.fr
eval "$(conda shell.bash hook)"
conda activate polysemy
TRAIN="data/cleaned/t1/train.csv"
DEV="data/cleaned/t1/dev.csv"
TEST="data/cleaned/t1/test.csv"
TOKENIZER="output/tokenizer.json"
OUT_DIR="models/cleaned"
BS=512
DEVICE="cuda"
LOGDIR="runs/cleaned"
for d in ${OUT_DIR} ${LOGDIR}; do
if [ ! -d ${d} ]; then
mkdir -p ${d}
fi
done
export PYTHONPATH="/lium/raid01_b/gcaillaut/polysemy/minibert-oscar/minibert:${PYTHONPATH}"
set -x
set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
TB_DIR="${LOGDIR}/${RUN_NAME}"
if ((10#$E>0)); then
CHECKPOINT="${OUT_DIR}/${RUN_NAME}/checkpoint-${E}.tar"
python train.py mlm ${TRAIN} ${TEST} ${DEV} ${TOKENIZER} -o ${OUT_DIR} -d ${D} --bs ${BS} --epochs 10 --attention ${ATT} --position ${POS} --device ${DEVICE} --checkpoint ${CHECKPOINT} --logdir ${TB_DIR}
else
python train.py mlm ${TRAIN} ${TEST} ${DEV} ${TOKENIZER} -o ${OUT_DIR} -d ${D} --bs ${BS} --epochs 10 --attention ${ATT} --position ${POS} --device ${DEVICE} --logdir ${TB_DIR}
fi
done
done
done
done
\ No newline at end of file
#!/bin/bash
#SBATCH -N 1
#SBATCH -p gpu
#SBATCH --gres gpu:rtx6000:1
#SBATCH --job-name mlm-semitrans-lemmatized
#SBATCH --time 10-0
#SBATCH --mem 20G
#SBATCH -o logs/out-%j.txt
#SBATCH -e logs/err-%j.txt
#SBATCH --mail-type=ALL
#SBATCH --mail-user=gaetan.caillaut@univ-lemans.fr
eval "$(conda shell.bash hook)"
conda activate polysemy
TRAIN="data/lemmatized/t1/train.csv"
DEV="data/lemmatized/t1/dev.csv"
TEST="data/lemmatized/t1/test.csv"
TOKENIZER="output/tokenizer_lemmatized.json"
OUT_DIR="models/lemmatized"
BS=512
DEVICE="cuda"
LOGDIR="runs/lemmatized"
for d in ${OUT_DIR} ${LOGDIR}; do
if [ ! -d ${d} ]; then
mkdir -p ${d}
fi
done
export PYTHONPATH="/lium/raid01_b/gcaillaut/polysemy/minibert-oscar/minibert:${PYTHONPATH}"
set -x
set -e
for E in $(seq -f "%05g" 0 10 40); do
for D in 16 32 64 96 128; do
for ATT in "semi-transforming"; do
for POS in "none" "fixed" "trained"; do
RUN_NAME="d${D}_${ATT}_${POS}_gelu_norm"
TB_DIR="${LOGDIR}/${RUN_NAME}"
if ((10#$E>0)); then
CHECKPOINT="${OUT_DIR}/${RUN_NAME}/checkpoint-${E}.tar"
python train.py mlm ${TRAIN} ${TEST} ${DEV} ${TOKENIZER} -o ${OUT_DIR} -d ${D} --bs ${BS} --epochs 10 --attention ${ATT} --position ${POS} --device ${DEVICE} --checkpoint ${CHECKPOINT} --logdir ${TB_DIR}
else
python train.py mlm ${TRAIN} ${TEST} ${DEV} ${TOKENIZER} -o ${OUT_DIR} -d ${D} --bs ${BS} --epochs 10 --attention ${ATT} --position ${POS} --device ${DEVICE} --logdir ${TB_DIR}
fi
done
done
done
done
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment