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

[tokenizer] Updates huggingface tokenizer to 0.15.0 #2867

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/native_s3_huggingface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ jobs:
- name: Copy files to S3 with the AWS CLI
run: |
TOKENIZERS_VERSION="$(cat gradle.properties | awk -F '=' '/tokenizers_version/ {print $2}')"
aws s3 sync extensions/tokenizers/jnilib s3://djl-ai/publish/tokenizers/${TOKENIZERS_VERSION}/jnilib/
aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/tokenizers/${TOKENIZERS_VERSION}/jnilib/*"
/opt/homebrew/bin/aws s3 sync extensions/tokenizers/jnilib s3://djl-ai/publish/tokenizers/${TOKENIZERS_VERSION}/jnilib/
/opt/homebrew/bin/aws cloudfront create-invalidation --distribution-id E371VB8JQ6NRVY --paths "/tokenizers/${TOKENIZERS_VERSION}/jnilib/*"

create-aarch64-runner:
if: github.repository == 'deepjavalibrary/djl'
Expand All @@ -179,15 +179,14 @@ jobs:
runs-on: [ self-hosted, aarch64 ]
timeout-minutes: 30
needs: create-aarch64-runner
container: centos:centos7
container: amazonlinux:2
steps:
- name: Install Environment
run: |
yum -y update
yum -y install centos-release-scl-rh epel-release perl-core
yum -y install devtoolset-7 git patch cmake3 libstdc++-static
yum -y groupinstall "Development Tools"
yum -y install patch perl-IPC-Cmd cmake3
ln -s /usr/bin/cmake3 /usr/bin/cmake
curl https://sh.rustup.rs -sSf | sh -s -- -y
pip3 install awscli --upgrade
- uses: actions-rs/toolchain@v1
with:
Expand All @@ -207,8 +206,6 @@ jobs:
${{ runner.os }}-gradle-
- name: Release JNI prep
run: |
source "$HOME/.cargo/env"
export PATH=$PATH:/opt/rh/devtoolset-7/root/usr/bin
./gradlew :extensions:tokenizers:compileJNI
PYTORCH_PRECXX11=true ./gradlew -Pjni :extensions:tokenizers:test
- name: Configure AWS Credentials
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trt_version=8.4.1
onnxruntime_version=1.16.0
paddlepaddle_version=2.3.2
sentencepiece_version=0.1.97
tokenizers_version=0.14.1
tokenizers_version=0.15.0
fasttext_version=0.9.2
xgboost_version=2.0.1
lightgbm_version=3.2.110
Expand Down
Loading