Skip to content

deps: allow hf-hub to be optional#40

Merged
AlonKejzman merged 1 commit into
crusoecloud:mainfrom
BugenZhao:bz/optional-hf-hub-dep
Jun 23, 2026
Merged

deps: allow hf-hub to be optional#40
AlonKejzman merged 1 commit into
crusoecloud:mainfrom
BugenZhao:bz/optional-hf-hub-dep

Conversation

@BugenZhao

Copy link
Copy Markdown
Contributor

When used directly as a Rust library, the caller may want to handle downloading the model files themselves, especially if it's under an async context.

This PR makes hf-hub an optional dependency so users can opt-out transitive dependency on hf-hub, then ureq or rustls. When it's disabled, interfaces including from_model, from_model_with_token, and download_tokenizer_json won't be available.

The feature is kept enabled by default, so there won’t be any breaking changes on the user-facing side.

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
BugenZhao added a commit to vllm-project/vllm that referenced this pull request Jun 23, 2026
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
@AlonKejzman AlonKejzman merged commit a26da1c into crusoecloud:main Jun 23, 2026
9 of 19 checks passed
BugenZhao added a commit to vllm-project/vllm that referenced this pull request Jun 25, 2026
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants