Skip to content

Commit 7c09895

Browse files
committed
Trying fix for transformers benchmark
1 parent 8712534 commit 7c09895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/run_transformers_benchmark.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ commands.extend([
9292
"cd olmOCR-bench && git lfs pull && cd ..",
9393
"pip install accelerate",
9494
"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",
95+
"PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True python -m olmocr.bench.convert transformers:target_longest_image_dim=1288:prompt_template=yaml:response_template=yaml --dir ./olmOCR-bench/bench_data",
9696
"python -m olmocr.bench.benchmark --dir ./olmOCR-bench/bench_data"
9797
])
9898

0 commit comments

Comments
 (0)