Skip to content

Commit

Permalink
v0.3.0 add limit support
Browse files Browse the repository at this point in the history
  • Loading branch information
Mon-ius committed Jun 27, 2024
1 parent bef5cb9 commit 614ad73
Show file tree
Hide file tree
Showing 20 changed files with 65 additions and 1,670 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_TERM_COLOR: always
CARGO_LOCA: "hfd-cli/Cargo.toml"
CARGO_LOCA: "Cargo.toml"
CARGO_BIN: "hfd"

permissions:
Expand All @@ -15,7 +15,7 @@ on:
branches:
- "main"
paths:
- "hfd-cli/Cargo.toml"
- "Cargo.toml"
- ".github/workflows/ci.yml"

jobs:
Expand Down
26 changes: 21 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
[workspace]
# members = ["hfd", "hfd-cli"]
members = ["hfd-cli"]
resolver = "2"

[package]
name = "hfd"
version = "0.3.0"
edition = "2021"

[dependencies]
clap = { version= "4.5.4", features=["derive"] }
reqwest = { version = "0.12.4", default-features = false, features = ["stream", "http2", "json", "rustls-tls"] }
tokio = { version = "1.37.0", default-features = false, features = ["rt-multi-thread", "fs"] }
serde_json = { version = "1.0.117", default-features = false, features = ["alloc"] }
futures = "0.3.30"

[[bin]]
name = "hfd"
path = "src/cli.rs"

[lib]
name = "ld_"
path = "src/lib.rs"

[profile.release]
lto = true
lto = false
strip = true
panic = 'abort'
opt-level = 3
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
# Download entire public hf repo
./hdf https://huggingface.co/deepseek-ai/DeepSeek-V2

# Download gated public hf repo with token
# Download public hf repo with limit num
./hdf https://huggingface.co/microsoft/Florence-2-large -n 10

# Download gated public hf repo with token
./hdf https://huggingface.co/meta-llama/Meta-Llama-3-70B -t hf_xxxxxxxxxx

# Download gated public hf repo with token and save to /data/llm
Expand Down
16 changes: 0 additions & 16 deletions example/auth.rs

This file was deleted.

35 changes: 0 additions & 35 deletions example/dataset.rs

This file was deleted.

14 changes: 0 additions & 14 deletions example/hyper/Cargo.toml

This file was deleted.

157 changes: 0 additions & 157 deletions example/hyper/main.rs

This file was deleted.

15 changes: 0 additions & 15 deletions example/mirror.rs

This file was deleted.

9 changes: 0 additions & 9 deletions example/rdd/Cargo.toml

This file was deleted.

63 changes: 0 additions & 63 deletions example/rdd/src/main.rs

This file was deleted.

15 changes: 0 additions & 15 deletions example/simple.rs

This file was deleted.

Loading

0 comments on commit 614ad73

Please sign in to comment.