File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # SBATCH -A csc652
4
+ # SBATCH -J olmocr-train
5
+ # SBATCH -o logs/%j.out
6
+ # SBATCH -N 1
7
+ # SBATCH -t 02:00:00
8
+
9
+ module reset
10
+ module load PrgEnv-gnu
11
+ module load olcf-container-tools
12
+ module load apptainer-enable-mpi
13
+
14
+ # Run in offline mode to make sure it doesn't timeout loading the model
15
+ export TRANSFORMERS_OFFLINE=1
16
+ export HF_DATASETS_OFFLINE=1
17
+ export HF_HUB_OFFLINE=1
18
+
19
+ export HF_DATASETS_CACHE=" /lustre/orion/csc652/proj-shared/huggingface-shared/datasets"
20
+ export HF_HUB_CACHE=" /lustre/orion/csc652/proj-shared/huggingface-shared/hub"
21
+
22
+ # Was getting MIOpen errors with caching, had to disable for now
23
+ export MIOPEN_DISABLE_CACHE=1
24
+
25
+ source activate /lustre/orion/csc652/proj-shared/jakep/conda_env_312_olmocr_train
26
+
27
+ # Run in offline mode to make sure it doesn't timeout loading the model
28
+ export TRANSFORMERS_OFFLINE=1
29
+ export HF_DATASETS_OFFLINE=1
30
+
31
+ python -m olmocr.train.train --config olmocr/train/configs/example_config.yam
You can’t perform that action at this time.
0 commit comments