We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07c89f3 commit 3a38c94Copy full SHA for 3a38c94
examples/transformers/hf_trainer.sh
@@ -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