Closed carllippert closed 10 months ago
Can you try throwing this in your Cargo.toml
file instead of llm = "0.1.1"
? The tag you're using is pretty old and this project seems to move quickly so you might try just working off the main branch, that's what I'm doing. Plus, the main branch has the metal
feature so you get GPU acceleration on macOS for basically free.
I can't tell from your message if you've tried this particular import already so sorry if you already have. I've confirmed that I'm able to build with this right now.
llm = { git = "https://github.com/rustformers/llm", branch = "main", features = ["metal"] }
Edit: scratch that. I ran cargo clean
and I able to reproduce this issue. Sounds like it snuck it to the latest branch.
I have ran about 5 rev's over historical last few weeks to see if i could get it to work
It looks like tokenizers-0.13.4 changes the signature of this decode
function, weird part is llm-base depends on tokenizers-0.13.3 which has the correct signature.
Just for kicks and giggles, try adding this to your Cargo.toml and see if the build works
[dependencies]
tokenizers = "=0.13.3"
If that doesn't work, what is the open the Cargo.lock
file and find the version of the tokenizers crate and let me know what it is.
[[package]]
name = "tokenizers"
version = "0.13.3" # <- this guy
Okay I opened a PR to fix the issue. In the meantime you can add this to your Cargo.toml
llm = { git = "https://github.com/clarkmcc/llm", branch = "upgrade-tokenizers-crate", features = ["metal"] }
Trying to run the base example on macOS and cannot use git main branch in cargo.
project runs with this cargo setup
Fails on all attempts to import "main"
tried multiple variations including importing from older revisions of main and including discluding "features"