forked from luyug/Reranker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
jobscript-reranker-run-bert
48 lines (35 loc) · 1.16 KB
/
jobscript-reranker-run-bert
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# set a job name
#SBATCH --job-name=reranker
#################
# a file for job output, you can check job progress
#SBATCH --output=reranker_slurm_output_%j.out
#################
# a file for errors
#SBATCH --error=reranker_slurm_output_%j.err
#################
# time needed for job
#SBATCH --time=00:30:00
#################
# gpus per node
#SBATCH --gres=gpu:1
#################
# cpus per job
#SBATCH --cpus-per-task=1
#################
# number of requested nodes
#SBATCH --nodes=1
#################
# memory per node
#SBATCH --mem=10GB
#################
# slurm will send a signal this far out before it kills the job
#SBATCH --signal=USR1@300
#################
# tasks per node
#SBATCH --tasks-per-node=1
#################
module load cuda
module load tensorflow/2.5.0-py39-cuda112
source venv/bin/activate
srun python bert_reranker.py --run_file examples/agask/runs/run-bm25-agask-questions-test50.res --collection_file examples/agask/collection/agask_collection.tsv --query_file examples/agask/queries/agask_questions-test50.csv --model_name_or_path ./pt-bert-large-msmarco --tokenizer_name_or_path ./pt-bert-large-msmarco --batch_size 32 --cut_off 500