Skip to content

Update huggingface-hub requirement from <0.21.0,>=0.19.0 to >=0.19.0,<1.10.0 in /backend#2755

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/backend/huggingface-hub-gte-0.19.0-and-lt-1.10.0
Open

Update huggingface-hub requirement from <0.21.0,>=0.19.0 to >=0.19.0,<1.10.0 in /backend#2755
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/pip/backend/huggingface-hub-gte-0.19.0-and-lt-1.10.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Apr 3, 2026

Updates the requirements on huggingface-hub to permit the latest version.

Release notes

Sourced from huggingface-hub's releases.

[v1.9.0] Agent-Aware CLI, Spaces Volumes, and more

🚀 Spaces Volumes: Mount Models, Datasets, and Buckets Directly

Hugging Face Spaces now support mounting volumes, giving your Space direct filesystem access to models, datasets, and storage buckets. This replaces the deprecated persistent storage feature.

from huggingface_hub import HfApi, Volume
api = HfApi()
api.set_space_volumes(
repo_id="username/my-space",
volumes=[
Volume(type="model", source="username/my-model", mount_path="/models", read_only=True),
Volume(type="bucket", source="username/my-bucket", mount_path="/data"),
],
)

Volumes can also be set at creation time via create_repo(space_volumes=...) and duplicate_repo(space_volumes=...), and from the CLI with the --volume / -v flag:

# Create a Space with volumes mounted
hf repos create my-space --type space --space-sdk gradio \
    -v hf://gpt2:/models -v hf://buckets/org/b:/data
Duplicate a Space with volumes
hf repos duplicate org/my-space my-space --type space 
-v hf://gpt2:/models -v hf://buckets/org/b:/data

🤖 The hf CLI Now Auto-Detects AI Agents and Adapts Its Output

AI coding agents (Claude Code, Cursor, Codex, Copilot, Gemini, ...) increasingly use the hf CLI to interact with the Hub. Until now, the output was designed for humans - ANSI colors, padded tables, emoji booleans, truncated cells - making it hard for agents to parse reliably.

Starting with v1.9, the CLI automatically detects when it's running inside an agent and adapts its output: no ANSI, no truncation, tab-separated tables, compact JSON, full timestamps. No configuration needed - it just works. This is only a first step toward making the hf CLI the primary entry point to the Hugging Face Hub for AI agents!

Agent mode is auto-detected but you can also force a mode explicitly with --format:

hf models ls --limit 5                  # auto-detect
hf models ls --limit 5 --format agent   # force agent-friendly output
hf models ls --limit 5 --format json    # structured JSON
hf models ls --limit 5 --format quiet   # IDs only, great for piping

Here's what an agent sees compared to a human:

... (truncated)

Commits
  • b768bb2 Release: v1.9.0
  • 9d30ff2 Release: v1.9.0.rc0
  • 657b8b9 chore: remove claude.yml workflow file (#4031)
  • 38d48d9 [CLI] Migrate models, datasets, spaces, papers to out singleton (#4...
  • 4e2337d [CLI] enrich CLI errors with available options and commands (#4034)
  • ea1f4b7 Support volumes at repo creation and duplication (#4035)
  • 993d645 [FEAT] Support skills from hf skills (#3956)
  • bb7dc6e Add HF_HUB_DISABLE_SYMLINKS env variable to force no-symlink cache (#4032)
  • 2593ff8 Do not scan CACHEDIR.TAG file in cache (#4036)
  • b8d92a2 [Fix] Validate shard filenames in sharded checkpoint index files (#4033)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [huggingface-hub](https://github.com/huggingface/huggingface_hub) to permit the latest version.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](huggingface/huggingface_hub@v0.19.0...v1.9.0)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-version: 1.9.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Apr 3, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

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.

0 participants