Skip to content

Commit

Permalink
Create hf_trainer.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Almeida authored Jul 5, 2024
1 parent 07c89f3 commit 3a38c94
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/transformers/hf_trainer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#SBATCH --job-name=hf_trainer # create a short name for your job
#SBATCH --output="hf_trainer-%j.out" # %j will be replaced by the slurm jobID
#SBATCH --nodes=1 # node count
#SBATCH --ntasks=1 # total number of tasks across all nodes
#SBATCH --cpus-per-task=4 # cpu-cores per task (>1 if multi-threaded tasks)
#SBATCH --gres=gpu:nvidia-rtx-a6000:1 # number of gpus per node
#SBATCH --mem-per-cpu=2G
source virtual-venv/bin/activate

echo "User can use the local tmp dir $TMPDIR"

python hf_classification_trainer.py

deactivate

0 comments on commit 3a38c94

Please sign in to comment.