Closed jaybinks closed 3 months ago
This library has a requirement that liblokenizers.a must be placed in the module's SRCDIR, which in your case is /Users/jaybinks/go/pkg/mod/github.com/daulet/tokenizers@v0.6.0/. Did you place your libtokenizer.a file in that path? Also check your versions, current is 0.7.0 and your logs say 0.6.0. The go and rust files must be in sync else you tend to experience segment violations.
I have a PR to make this path configurable but it hasnt been merged.
Please reopen if this is still an issue
ive tried this on my clean mac-mini M2 as well as on an intel mac, with the crash both on line 18 on the first call to tk.Encode()
libtokenizers.a was built with "make build" go version go1.21.1 darwin/arm64