Skip to content

Commit

Permalink
Beaker fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Jan 30, 2025
1 parent cf6673c commit 9df86da
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions olmocr/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,9 +949,8 @@ async def main():
pdf_session = boto3.Session(profile_name=args.pdf_profile)
pdf_s3 = pdf_session.client("s3")

# We need poppler to load the initial pdfs, even if we are not processing them here
check_poppler_version()
check_sglang_version()
check_torch_gpu_available()

# Create work queue
if args.workspace.startswith("s3://"):
Expand Down Expand Up @@ -1017,6 +1016,10 @@ async def main():
submit_beaker_job(args)
return

# If you get this far, then you are doing inference and need a GPU
check_sglang_version()
check_torch_gpu_available()

logger.info(f"Starting pipeline with PID {os.getpid()}")

# Initialize the work queue
Expand Down

0 comments on commit 9df86da

Please sign in to comment.