diff --git a/Cargo.toml b/Cargo.toml index 3be19c8b..1333c5f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -76,7 +76,7 @@ features = ["doc-only"] [dependencies] rust_tokenizers = "8.1" -tch = "0.13.0" +tch = "0.14.0" serde_json = "1" serde = { version = "1", features = ["derive"] } ordered-float = "3" @@ -97,7 +97,7 @@ anyhow = "1" csv = "1" criterion = "0.4" tokio = { version = "1.24", features = ["sync", "rt-multi-thread", "macros"] } -torch-sys = "0.13.0" +torch-sys = "0.14.0" tempfile = "3" itertools = "0.10" tracing-subscriber = { version = "0.3", default-features = false, features = [ "env-filter", "fmt" ] } diff --git a/README.md b/README.md index d4fd0c45..ef05eff3 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,8 @@ This cache location defaults to `~/.cache/.rustbert`, but can be changed by sett ### Manual installation (recommended) -1. Download `libtorch` from https://pytorch.org/get-started/locally/. This package requires `v2.0.0`: if this version is no longer available on the "get started" page, -the file should be accessible by modifying the target link, for example `https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcu118.zip` for a Linux version with CUDA11. **NOTE:** When using `rust-bert` as dependency from [crates.io](https://crates.io), please check the required `LIBTORCH` on the published package [readme](https://crates.io/crates/rust-bert) as it may differ from the version documented here (applying to the current repository version). +1. Download `libtorch` from https://pytorch.org/get-started/locally/. This package requires `v2.1.0`: if this version is no longer available on the "get started" page, +the file should be accessible by modifying the target link, for example `https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.1.0%2Bcu118.zip` for a Linux version with CUDA11. **NOTE:** When using `rust-bert` as dependency from [crates.io](https://crates.io), please check the required `LIBTORCH` on the published package [readme](https://crates.io/crates/rust-bert) as it may differ from the version documented here (applying to the current repository version). 2. Extract the library to a location of your choice 3. Set the following environment variables ##### Linux: diff --git a/src/lib.rs b/src/lib.rs index e84f3c09..fe4ea5fb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -90,8 +90,8 @@ //! //! ### Manual installation (recommended) //! -//! 1. Download `libtorch` from . This package requires `v2.0`: if this version is no longer available on the "get started" page, -//! the file should be accessible by modifying the target link, for example `https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcu118.zip` for a Linux version with CUDA11. +//! 1. Download `libtorch` from . This package requires `v2.1`: if this version is no longer available on the "get started" page, +//! the file should be accessible by modifying the target link, for example `https://download.pytorch.org/libtorch/cu118/libtorch-cxx11-abi-shared-with-deps-2.1.0%2Bcu118.zip` for a Linux version with CUDA11. //! 2. Extract the library to a location of your choice //! 3. Set the following environment variables //! ##### Linux: