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

HuggingFaceTokenizer: add support for Android #3531

Merged
merged 3 commits into from
Nov 17, 2024

Conversation

naveen521kk
Copy link
Contributor

Description

This PR fixes #2170.

This PR does the following:

  • Add scripts to build the Rust library in extensions/tokenizers/rust using cargo-ndk
  • Disable the "http" feature for Rust library when building with Android
  • Create a wrapper android package to use the built libraries to publish, like pytorch-native.

CI support for this is yet to be figured out.

- Build the Rust library for Android using `cargo-ndk`
- Disable "http" feature for Rust library when building with Android
- Modify to load native library in Android
- Copy from pytorch-native and change for tokenizer native modules
@xyang16 xyang16 merged commit f00f18e into deepjavalibrary:master Nov 17, 2024
6 checks passed
@naveen521kk naveen521kk deleted the tokenizer-android-support branch November 17, 2024 06:09
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.

HuggingFaceTokenizer android load
3 participants