-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinetune.sh
More file actions
34 lines (25 loc) · 704 Bytes
/
finetune.sh
File metadata and controls
34 lines (25 loc) · 704 Bytes
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
#!/bin/bash
#SBATCH --job-name=finetune
#SBATCH --output=%x-%j.out
#SBATCH --error=%x-%j.err
#SBATCH --time=10-00:00:00
#SBATCH --cpus-per-task=8
#SBATCH --mem-per-cpu=1000
#SBATCH --partition=nodes
#SBATCH --gres=gpu:a100:8
#SBATCH --ntasks=8
#SBATCH --chdir=/cluster/raid/home/cyril.vallez/Project2
# Verify working directory
echo $(pwd)
# Pull last modifications
git pull
# Print gpu configuration for this job
nvidia-smi
# Verify gpu allocation (should be 1 GPU)
echo "Indices of visible GPU(s) before job : $CUDA_VISIBLE_DEVICES"
# Initialize the shell to use local conda
eval "$(conda shell.bash hook)"
# Activate (local) env
conda activate faiss
python3 finetune.py "$@"
conda deactivate