8181
8282if [ " $CHANDRA_VERSION " = " latest" ]; then
8383 echo " Using latest chandra-ocr release"
84- CHANDRA_INSTALL_CMD=" pip install chandra-ocr"
84+ CHANDRA_INSTALL_CMD=" uv pip install chandra-ocr"
8585else
8686 echo " Using chandra-ocr version: $CHANDRA_VERSION "
87- CHANDRA_INSTALL_CMD=" pip install chandra-ocr==$CHANDRA_VERSION "
87+ CHANDRA_INSTALL_CMD=" uv pip install chandra-ocr==$CHANDRA_VERSION "
8888fi
8989
9090# Check for mutual exclusivity between benchpath and benchrepo/benchbranch
@@ -325,8 +325,9 @@ if has_aws_creds:
325325if has_hf_token:
326326 commands.append('export HF_TOKEN="$HF_TOKEN"')
327327
328- # Install s5cmd (needed for S3 operations)
329- commands.append("pip install s5cmd")
328+ # Install uv for fast dependency management, then s5cmd (needed for S3 operations)
329+ commands.append("pip install uv")
330+ commands.append("uv pip install s5cmd")
330331
331332# Handle benchmark data download based on source type
332333if bench_path:
@@ -347,7 +348,7 @@ else:
347348
348349commands.extend([
349350 chandra_install_cmd,
350- "pip install --upgrade vllm", # Ensure vllm is installed
351+ "uv pip install --upgrade vllm", # Ensure vllm is installed
351352 run_chandra_shell,
352353 "python -m olmocr.bench.benchmark --dir ./olmOCR-bench/bench_data --candidate chandra"
353354])
@@ -445,9 +446,10 @@ wait $VLLM_PID 2>/dev/null || true
445446""").replace("__CHANDRA_MODEL__", chandra_model)
446447
447448 perf_commands.extend([
449+ "pip install uv",
448450 chandra_install_cmd,
449- "pip install --upgrade vllm", # Ensure vllm is installed
450- "pip install awscli",
451+ "uv pip install --upgrade vllm", # Ensure vllm is installed
452+ "uv pip install awscli",
451453 "aws s3 cp --recursive s3://ai2-oe-data/jakep/olmocr/olmOCR-mix-0225/benchmark_set/ /root/olmOCR-mix-0225_benchmark_set/",
452454 f"bash -c '{perf_shell}'"
453455 ])
0 commit comments