-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Example | ||
|
||
To run the example you need to obtain the built rust library. | ||
``` | ||
# Keep this version in sync with go module release | ||
curl -fsSL https://github.com/daulet/tokenizers/releases/download/v0.9.0/libtokenizers.darwin-aarch64.tar.gz | tar xvz | ||
# On M1+ Mac (note arch) | ||
curl -fsSL https://github.com/daulet/tokenizers/releases/download/v1.20.2/libtokenizers.darwin-aarch64.tar.gz | tar xvz | ||
# change -L argument to where you've placed the library download above | ||
go run -ldflags="-extldflags '-L$(pwd)'" main.go | ||
``` | ||
``` | ||
or `make build` from the parent directory and `go run -ldflags="-extldflags '-L..'" main.go` |