-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-py_cluster.sh
More file actions
executable file
·34 lines (28 loc) · 897 Bytes
/
test-py_cluster.sh
File metadata and controls
executable file
·34 lines (28 loc) · 897 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
#!/usr/bin/env bash
# Prior to job sumbission, run:
#
# source activate cse537 # Do this on CLI prior to job submission
#
# Install huggingface-cli
# pip install huggingface_hub
#
# huggingface-cli login # Input Access Token
# Submit job command: ./test-py_cluster.sh
# Old code:
#
# scripts_dir=\$(dirname \$(realpath \${0}))
sbatch <<EOT
#!/usr/bin/env bash
#SBATCH --job-name=train-resource
#SBATCH --output=/home/adbraimah/cse537/2025Spring_AI_Project/output-experiment-%j.txt
#SBATCH --error=/home/adbraimah/cse537/2025Spring_AI_Project/error-experiment-%j.txt
#SBATCH --time=6-00:00
#SBATCH --mem=70000
#SBATCH --gres=gpu:1
#SBATCH --mail-type=BEGIN,END
#SBATCH --mail-user=adbraimah@cs.stonybrook.edu
scripts_dir=/home/adbraimah/cse537/2025Spring_AI_Project
cd \${scripts_dir}
# Run python script
python /home/adbraimah/cse537/2025Spring_AI_Project/check_training_resource.py
EOT