Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preload tiktoken BPEs while building the Docker image #188

Open
adubovik opened this issue Jan 2, 2025 · 0 comments
Open

Preload tiktoken BPEs while building the Docker image #188

adubovik opened this issue Jan 2, 2025 · 0 comments

Comments

@adubovik
Copy link
Collaborator

adubovik commented Jan 2, 2025

Currently tokenization via tiktoken triggers uploading of the BPE files from an external resource:

https://github.com/openai/tiktoken/blob/main/tiktoken_ext/openai_public.py#L123-L130

The access to the external resources may be restricted in an enterprise environment.

We should rather bake in the required files into the adapter Docker image.

See for the reference:

https://github.com/Azure-Samples/graphrag-accelerator/blob/main/docker/Dockerfile-backend#L26-L27

@adubovik adubovik changed the title Preload tiktoken BPEs Preload tiktoken BPEs in Docker image Jan 2, 2025
@adubovik adubovik changed the title Preload tiktoken BPEs in Docker image Preload tiktoken BPEs while building the Docker image Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant