-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move the location of sample_slurm_scripts
- Loading branch information
1 parent
dfdcdf4
commit 569276e
Showing
3 changed files
with
45 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
#SBATCH --job-name=msmarcopsg | ||
#SBATCH --nodes=1 | ||
#SBATCH --gres=gpu:v100l:4 | ||
#SBATCH --ntasks-per-node=1 | ||
#SBATCH --mem=120GB | ||
#SBATCH --time=72:00:00 | ||
#SBATCH --account=your_slurm_account | ||
#SBATCH --cpus-per-task=16 | ||
|
||
#SBATCH -o ./msmarco-psg-output.log | ||
|
||
|
||
# Modify the following lines according to your setup process | ||
module load arch/avx512 StdEnv/2018.3 java/11 python/3.7 scipy-stack | ||
ENVDIR=$HOME/venv/capreolus-env | ||
source $ENVDIR/bin/activate | ||
|
||
niters=10 | ||
batch_size=16 | ||
validatefreq=$niters # to ensure the validation is run only at the end of training | ||
decayiters=$niters # either same with $itersize or 0 | ||
threshold=1000 # the top-k documents to rerank | ||
|
||
python -m capreolus.run rerank.train with \ | ||
file=docs/reproduction/config_msmarco.txt \ | ||
threshold=$threshold \ | ||
reranker.trainer.niters=$niters \ | ||
reranker.trainer.batch=$batch_size \ | ||
reranker.trainer.decayiters=$decayiters \ | ||
reranker.trainer.validatefreq=$validatefreq \ | ||
fold=s1 |
This file was deleted.
Oops, something went wrong.