mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2026-07-09 16:09:13 +00:00
cache tiktoken (#4521)
Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
parent
51fd789f09
commit
8be0669b04
2 changed files with 7 additions and 0 deletions
|
|
@ -44,6 +44,9 @@ ENV HAR_PATH=/data/har
|
|||
ENV LOG_PATH=/data/log
|
||||
ENV ARTIFACT_STORAGE_PATH=/data/artifacts
|
||||
|
||||
# cache tiktoken
|
||||
RUN python /app/scripts/load_tiktoken.py
|
||||
|
||||
COPY ./entrypoint-skyvern.sh /app/entrypoint-skyvern.sh
|
||||
RUN chmod +x /app/entrypoint-skyvern.sh
|
||||
|
||||
|
|
|
|||
4
scripts/load_tiktoken.py
Normal file
4
scripts/load_tiktoken.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import tiktoken
|
||||
|
||||
for model in tiktoken.model.MODEL_TO_ENCODING.keys():
|
||||
tiktoken.encoding_for_model(model)
|
||||
Loading…
Add table
Add a link
Reference in a new issue