-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain_script.sh
More file actions
32 lines (23 loc) · 1.06 KB
/
train_script.sh
File metadata and controls
32 lines (23 loc) · 1.06 KB
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
#!/bin/bash
#SBATCH -N 1 # number of nodes
#SBATCH --mem=100G # amount of memory for the job
#SBATCH -G a100:1 # number of GPUs (4 A100 GPUs)
#SBATCH -c 1 # number of CPU cores (10 cores)
#SBATCH -t 10:00:00 # time limit (24 hours, adjust as needed)
#SBATCH -p general # partition
#SBATCH -q public # QOS
#SBATCH -o gemma.out # file to save job's STDOUT (%j = JobId)
#SBATCH -e gemma.err # file to save job's STDERR (%j = JobId)
#SBATCH --mail-type=ALL # Send an e-mail when a job starts, stops, or fails
#SBATCH --mail-user=athanina@asu.edu # Replace with your ASU email
# Load required modules
module load mamba/latest
module load cuda/11.3
source activate transformers
source deactivate
# Activate your conda environment
conda activate transformers # Replace with your actual environment name
# Change to the directory of your script
#cd ~/path/to/your/project/directory # Replace with your actual directory path
# Run the Python script
python train_script.py