-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpu.slurm
21 lines (18 loc) · 879 Bytes
/
cpu.slurm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#SBATCH --mem=64g
#SBATCH --partition=cpu
#SBATCH --account=bdof-delta-cpu
#SBATCH --job-name=CPU-convert
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=16
#SBATCH --time=00:15:00
#SBATCH --constraint="scratch"
#SBATCH --output=/projects/bdof/nkanamarla/logs/output/cpu.%j.out
#SBATCH --error=/projects/bdof/nkanamarla/logs/error/cpu.%j.err
#load packages
module load gcc
module load python/3.10.13
# Activate virtual environment
source /projects/bdof/code/cs598-AIE/myenv/bin/activate
#python convertFile.py /work/hdd/bdof/nkanamarla/models/sample_model_checkpoint/model-00001-of-00002.safetensors /work/hdd/bdof/nkanamarla/models/sample_model_checkpoint/checkpoint.bin
python convertFolder.py pack /projects/bdof/code/cs598-AIE/accelerate_variants/examples/checkpoints/step_100 /work/hdd/bdof/nkanamarla/models/LLAMA3checkpointbinformat/LLAMA3checkpoint.bin