Skip to content

Commit

Permalink
bump to v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed May 5, 2024
1 parent 3010536 commit e0f7795
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hfd-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hfd-cli"
version = "0.1.3"
version = "0.1.4"
edition = "2021"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions hfd-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ async fn main() {
let api = libhfd::api::tokio::Api::new().unwrap();

let _filename = api
.model("meta-llama/Llama-2-7b-hf".to_string())
.get("model-00001-of-00002.safetensors")
.model("ByteDance/Hyper-SD".to_string())
.get("Hyper-SDXL-8steps-lora.safetensors")
.await
.unwrap();
}
3 changes: 0 additions & 3 deletions hfd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ edition = "2021"
[dependencies]
tokio = { version = "1.37.0", features = ["full"] }
reqwest = { version = "0.12.4", default-features = false, features = ["json", "charset", "http2", "macos-system-configuration", "rustls-tls"] }
rustls = { version = "0.23.5" }
indicatif = { version = "0.17.8" }
serde = { version = "1.0.200", features = ["derive"] }
serde_json = { version = "1.0.116" }

futures = "0.3.30"
thiserror = "1.0.59"
log = "0.4.21"
dirs = "5.0.1"
http = "1.1.0"
rand = "0.8.5"
num_cpus = "1.16.0"

Expand Down
2 changes: 1 addition & 1 deletion hfd/src/api/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl ApiBuilder {
let progress = true;

Self {
endpoint: "https://huggingface.co".to_string(),
endpoint: "https://hf-mirror.com".to_string(),
url_template: "{endpoint}/{repo_id}/resolve/{revision}/{filename}".to_string(),
cache,
token,
Expand Down
2 changes: 1 addition & 1 deletion hfd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Cache {
pub fn token(&self) -> Option<String> {
let token_filename = self.token_path();
if !token_filename.exists() {
log::info!("Token file not found {token_filename:?}");
eprintln!("Token file not found {token_filename:?}");
}
match std::fs::read_to_string(token_filename) {
Ok(token_content) => {
Expand Down

0 comments on commit e0f7795

Please sign in to comment.