guillaume-be / rust-bert

Rust native ready-to-use NLP pipelines and transformer-based models (BERT, DistilBERT, GPT2,...)
https://docs.rs/crate/rust-bert
Apache License 2.0
2.67k stars 216 forks source link

Fix `download-libtorch` feature #382

Closed guillaume-be closed 1 year ago

guillaume-be commented 1 year ago
josephhajduk commented 1 year ago

I get error: failed to run custom build command for `torch-sys v0.13.0`

when I removed torch-sys = {version="0.13.0", features=["download-libtorch"]} above my rust-bert dependency

josephhajduk commented 1 year ago

Nevermind, I set branch but forgot to put the feature parameter in.

It fixed it for me.