Some helper scripts

This commit is contained in:
Jake Poznanski 2025-06-17 21:21:50 +00:00
parent 626952a786
commit 6c51829ae6
2 changed files with 9 additions and 12 deletions

View File

@ -1,12 +0,0 @@
#!/bin/bash
set -e
VERSION=$(python -c 'import olmocr.version; print(olmocr.version.VERSION)')
echo "$VERSION"
docker build --platform linux/amd64 -f ./scripts/beaker/Dockerfile-inference -t olmocr-inference-$VERSION .
beaker image create --workspace ai2/oe-data-pdf --name olmocr-inference-$VERSION olmocr-inference-$VERSION
docker build --platform linux/amd64 -f ./scripts/beaker/Dockerfile-tagging -t olmocr-tagging-$VERSION .
beaker image create --workspace ai2/oe-data-pdf --name olmocr-tagging-$VERSION olmocr-tagging-$VERSION

9
scripts/sync_beaker_image.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
VERSION=$(python -c 'import olmocr.version; print(olmocr.version.VERSION)')
echo "$VERSION"
docker pull alleninstituteforai/olmocr:v$VERSION
beaker image create --workspace ai2/oe-data-pdf --name olmocr-inference-$VERSION alleninstituteforai/olmocr:v$VERSION