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

Support for aarch64 Linux #49

Merged
merged 4 commits into from
Oct 3, 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
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
+ **0.5.0** - Support Linux on aarch64
+ **0.5.0** - Isolate dependencies on models to the apps subproject
+ **0.4.0** - Account for maxTokens
+ **0.3.0** - Include some tokenizers as resources and only fall back to network if necessary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ object LibraryLoader {
else text

def isMac: Boolean = System.getProperty("os.name").startsWith("Mac ")

def isWin: Boolean = System.getProperty("os.name").startsWith("Win")

def isApple: Boolean = System.getProperty("os.arch") == "aarch64"

Expand All @@ -41,7 +43,7 @@ object LibraryLoader {
// The Mac reports a libname ending with .dylib, but Java needs .jnilib instead.
val jniName = replaceSuffix(libName, ".dylib", ".jnilib");
val resourceName =
if (!isMac) jniName
if (isWin) jniName
else if (isApple) "apple-" + jniName
else "intel-" + jniName

Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified tokenizer/src/main/resources/rust_tokenizer.dll
Binary file not shown.
Loading
Loading