Skip to content

chore: prefetch chipper in the api image - #287

Closed
awalker4 wants to merge 3 commits into
austin/update-libfrom
austin/baked_chipper
Closed

awalker4 wants to merge 3 commits into
austin/update-libfrom
austin/baked_chipper

Conversation

@awalker4

@awalker4 awalker4 commented Oct 13, 2023 •

Copy link
Copy Markdown
Collaborator

Fetch Chipper at buildtime so we don't have to download it in the middle of a request. The new Chipper is in our private huggingface, so when the HF_TOKEN is present, pass it as a secret and set it in the env. A new script, maybe-download-chipper.sh runs during the build, and if the token is set, it will fetch the model.

Removes the preload chipper logic from start-app.sh.

Note this pr is against #285 for the new unstructured. Once that's merged, we can put this against main and the tests will pick it up.

@awalker4
awalker4 changed the base branch from main to austin/update-lib October 13, 2023 21:51
@awalker4
awalker4 force-pushed the austin/baked_chipper branch from 9a90652 to 7327fe7 Compare October 13, 2023 21:52
@awalker4 awalker4 closed this Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant