Skip to content

Commit

Permalink
Update the hf-hub dependency to 0.4.0. (#2691)
Browse files Browse the repository at this point in the history
* Update the hf-hub dependency to 0.4.0.

* Fix the book.

* Use 0.4.1.
  • Loading branch information
LaurentMazare authored Dec 31, 2024
1 parent 94ffc2e commit b12c7c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ criterion = { version = "0.5.1", default-features=false }
cudarc = { version = "0.12.1", features = ["std", "cublas", "cublaslt", "curand", "driver", "nvrtc", "f16", "cuda-version-from-build-system", "dynamic-linking"], default-features=false }
fancy-regex = "0.13.0"
gemm = { version = "0.17.0", features = ["wasm-simd128-enable"] }
hf-hub = { version = "0.3.3", package = "candle-hf-hub" }
hf-hub = "0.4.1"
half = { version = "2.3.1", features = ["num-traits", "use-intrinsics", "rand_distr"] }
hound = "3.5.1"
image = { version = "0.25.2", default-features = false, features = ["jpeg", "png"] }
Expand Down
8 changes: 4 additions & 4 deletions candle-book/src/inference/hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Then let's start by downloading the [model file](https://huggingface.co/bert-bas

```rust
# extern crate candle_core;
# extern crate candle_hf_hub;
use candle_hf_hub::api::sync::Api;
# extern crate hf_hub;
use hf_hub::api::sync::Api;
use candle_core::Device;

let api = Api::new().unwrap();
Expand Down Expand Up @@ -50,8 +50,8 @@ Now that we have our weights, we can use them in our bert architecture:
```rust
# extern crate candle_core;
# extern crate candle_nn;
# extern crate candle_hf_hub;
# use candle_hf_hub::api::sync::Api;
# extern crate hf_hub;
# use hf_hub::api::sync::Api;
#
# let api = Api::new().unwrap();
# let repo = api.model("bert-base-uncased".to_string());
Expand Down

0 comments on commit b12c7c2

Please sign in to comment.