5
5
6
6
7
7
# Check for uncommitted changes
8
- if ! git diff-index --quiet HEAD --; then
9
- echo " Error: There are uncommitted changes in the repository."
10
- echo " Please commit or stash your changes before running the benchmark."
11
- echo " "
12
- echo " Uncommitted changes:"
13
- git status --short
14
- exit 1
15
- fi
8
+ # if ! git diff-index --quiet HEAD --; then
9
+ # echo "Error: There are uncommitted changes in the repository."
10
+ # echo "Please commit or stash your changes before running the benchmark."
11
+ # echo ""
12
+ # echo "Uncommitted changes:"
13
+ # git status --short
14
+ # exit 1
15
+ # fi
16
16
17
17
# Use conda environment Python if available, otherwise use system Python
18
18
if [ -n " $CONDA_PREFIX " ]; then
@@ -90,7 +90,9 @@ if has_aws_creds:
90
90
commands.extend([
91
91
"git clone https://huggingface.co/datasets/allenai/olmOCR-bench",
92
92
"cd olmOCR-bench && git lfs pull && cd ..",
93
- "python -m olmocr.bench.convert transformers:target_longest_image_dim=1288:prompt_template=yaml:response_template=yaml: --dir ./olmOCR-bench/bench_data",
93
+ "pip install accelerate",
94
+ "pip install flash-attn==2.8.0.post2 --no-build-isolation",
95
+ "python -m olmocr.bench.convert transformers:target_longest_image_dim=1288:prompt_template=yaml:response_template=yaml --dir ./olmOCR-bench/bench_data",
94
96
"python -m olmocr.bench.benchmark --dir ./olmOCR-bench/bench_data"
95
97
])
96
98
@@ -107,7 +109,7 @@ task_spec_args = {
107
109
preemptible=True,
108
110
),
109
111
"resources": TaskResources(gpu_count=1),
110
- "constraints": Constraints(cluster=["ai2/ceres -cirrascale", "ai2/jupiter-cirrascale-2 "]),
112
+ "constraints": Constraints(cluster=["ai2/titan -cirrascale"]),
111
113
"result": ResultSpec(path="/noop-results"),
112
114
}
113
115
0 commit comments