-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsbatch_debug.sh
More file actions
27 lines (21 loc) · 913 Bytes
/
sbatch_debug.sh
File metadata and controls
27 lines (21 loc) · 913 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
#!/bin/bash
#SBATCH --job-name=sample_unlearning_distr
#SBATCH --output=sbatch_output/%j_gather_sae.out
#SBATCH --error=sbatch_output/%j_gather_sae.err
#SBATCH --time=6:00:00
#SBATCH --mem=128G
#SBATCH --partition=boost_usr_prod # Change to a GPU partition on your system
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --gres=gpu:2 # Request 1 GPU
#SBATCH --cpus-per-task=8
# Load any necessary GPU modules (system-specific)
# module load cuda
source ../../envs/saeuron_cassano/bin/activate
echo "CUDA devices: $CUDA_VISIBLE_DEVICES"
nvidia-smi
python /leonardo/home/userexternal/ecassano/projects/SAeUron_finetuning/scripts/objects_activations_checker.py \
--index-file "/leonardo_work/IscrC_MAGNIFY/cassano/saeuron/features_activations/unet.up_blocks.1.attentions.1/activations_index_unet.up_blocks.1.attentions.1.txt" \
deactivate
echo "Job completed."
echo "End time: $(date)"