Skip to content

Commit 3a38c94

Browse files
authored
Create hf_trainer.sh
1 parent 07c89f3 commit 3a38c94

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

examples/transformers/hf_trainer.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
#SBATCH --job-name=hf_trainer # create a short name for your job
3+
#SBATCH --output="hf_trainer-%j.out" # %j will be replaced by the slurm jobID
4+
#SBATCH --nodes=1 # node count
5+
#SBATCH --ntasks=1 # total number of tasks across all nodes
6+
#SBATCH --cpus-per-task=4 # cpu-cores per task (>1 if multi-threaded tasks)
7+
#SBATCH --gres=gpu:nvidia-rtx-a6000:1 # number of gpus per node
8+
#SBATCH --mem-per-cpu=2G
9+
source virtual-venv/bin/activate
10+
11+
echo "User can use the local tmp dir $TMPDIR"
12+
13+
python hf_classification_trainer.py
14+
15+
deactivate

0 commit comments

Comments
 (0)