Registry / networking / hf-hub

hf-hub

JSON →
library0.5.0rscratesunverified

A Rust crate for interacting with the Hugging Face Hub, compatible with the Python huggingface_hub package.

# Cargo.toml [dependencies] hf-hub = "0.5.0"
INSTALL
IMPORT
SIG · HF-HUB
H
hf-hub
networkingrustv0.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Api
use hf_hub::api::sync::Api;

Downloads a model file from Hugging Face Hub.

use hf_hub::api::sync::Api; let api = Api::new().unwrap(); let repo = api.model("bert-base-uncased".to_string()); let path = repo.get("config.json").unwrap(); println!("Downloaded to: {:?}", path);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
hf-hub — cargo add hf-hub · libregistry