pypi / huggingface-hub
huggingface-hub
What changed in huggingface-hub 0.36 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
139 breaking14 security14 deprecations315 new APIs and options13 performance88 behavior and defaults25 tooling155 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli inithuggingface-hub 2122 changes
Breaking changes 31
When domains is omitted, the webhook now watches both domains.
Rejects filenames containing ../ or absolute paths so they cannot resolve outside the cache folder.
httpx timeouts now raise InferenceTimeoutError as documented instead of exposing the raw httpx timeout error.
Prints one snapshot and exits by default instead of streaming until the job completes; use -f/--follow for live stats.
Listing a newly created empty bucket returns an empty list instead of raising FileNotFoundError.
Raises FileNotFoundError instead of ValueError when the checkpoint path does not exist.
Raises ValueError when given an empty list.
The CLI command was renamed from hf spaces zero-gpu-quota to hf spaces zero-gpu quota.
Include and exclude patterns are case-sensitive on all platforms.
A bare --secrets NAME now raises an error if the named secret is not set locally.
Pooled sandboxes with missing, empty, or malformed capability tokens are refused instead of receiving the host-management credential; legacy hosts and clients are incompatible with new sandboxes and clients.
The space_storage parameter is removed; use space_volumes.
The deprecated API is removed; use duplicate_repo.
The command is removed; use --status or --label.
The filter option is removed; use --status or --label.
The command is removed; use hf repos.
The command is removed; use hf repos delete-files.
The --storage option is removed; use --volume.
The --storage option is removed; use --volume.
The --claude option is removed; Claude Code installation is now automatic.
The --claude option is removed; Claude Code installation is now automatic.
The command is removed; use hf upload.
HTTP clients and transport exceptions now come from httpx2/httpcore2 instead of httpx/httpcore; custom client factories and transport-error handlers must use the new types.
The CLI entry point is removed; use hf.
Boolean token values are no longer accepted; pass a token string or None.
PROTECTED is removed; use AUTHENTICATED. Passing type="protected" to create_inference_endpoint now raises ValueError.
The model_name parameter is removed; use search instead.
The deprecated API is removed; use parse_hf_uri.
The deprecated API is removed; use the volume APIs.
The stop_sequences parameter is removed; use stop.
The deprecated API is removed; use upload_folder.
Security 1
Expose Job ports for token-protected access at creation time or on a running Job.
New APIs and options 30
Set this environment variable to 1 to turn extension update checks off.
Gets metadata for every shard of a sharded model from the Hub in a single request and returns the same SafetensorsRepoMetadata; it only reads the main revision.
The create, comment, and edit commands accept repeatable --attach FILE[#alt text] options and add uploaded media URLs to the discussion body.
Set live_follow=True to receive Bucket file changes in the background and invalidate affected cached listings; it is off by default and is not available for model, dataset, or Space repos.
The new max_workers argument sets the number of concurrent requests used for recursive listings and defaults to 16; set it to 1 to list sequentially.
Exported from the top-level package so it can be imported directly from huggingface_hub.
AccessRequest now exposes request_id, and accept_access_request, reject_access_request, and cancel_access_request accept request_id= instead of user, supporting gated repos that hide requester identity.
HfApi.upload_attachment(path) uploads an image, video, or audio file and returns a URL that can be embedded in a discussion, PR description, or comment.
Snapshot output supports json, agent, and quiet formats, which output the raw API metrics.
Adds a follow parameter defaulting to False, so the method returns the current sample; pass True to stream until the job completes.
Jobs can retry automatically on failure using the new attempts parameter.
create_bucket now accepts visibility.
Specify the GGUF file when deploying an exact catalog recipe.
Deploy an exact catalog recipe by supplying its recipe_id.
duplicate_repo now supports resource_group_id.
Expose Job ports for unauthenticated access at creation time or on a running Job.
Retrieve ZeroGPU quota values in GPU-seconds, including remaining quota and reset time.
Specify the GGUF file when deploying a catalog recipe.
Select a catalog recipe when deploying an inference endpoint.
Expose token-protected and public ports on a running Job.
Start a fresh Job from an existing Job's saved spec.
Specify how many times a Job retries on failure.
Change a scheduled Job's cron expression or preset without recreating it.
Check ZeroGPU quota from the CLI; the command also hints about purchasing credits when quota is running low.
Job-triggered webhooks now support secrets.
Start a fresh Job from an existing Job's saved spec, including secrets and hardware settings.
Manage exposed ports on a running Job.
Change a scheduled Job's cron expression or preset without recreating the Job.
The quota method returns a dataclass containing ZeroGPU quota values in GPU-seconds.
Import the HTTP module from huggingface_hub.utils to write code that supports v1.x and v2.x.
Performance 4
HfFileSystem splits recursive listings by sub-directory and lists them in parallel; maxdepth is applied during listing so the Hub returns only requested levels.
Planning cache pruning no longer scales quadratically with the number of files per revision.
Planning cache removal no longer scales quadratically with the number of files per revision.
Xet-backed files written to a local path now download through hf_xet, which writes directly to disk and avoids an extra HTTP call by reusing the Xet hash from info().
Behavior and default changes 11
Running an outdated extension prints an update hint at most once a day; latest-commit lookups are also limited to once a day.
Lists installed and latest extension commits in VERSION and LATEST columns and hints when extensions are outdated.
Copying into a Bucket now works from the same or another Bucket and from model, dataset, or Space repos; Xet files are copied on the Hub by hash. Bucket moves and renames work too.
A private repo accessed without a token now gets an authentication hint in the repository-not-found error.
In interactive terminals, shows the Hub scheduling status message and wait duration while a Job waits for hardware.
Reconnects to log streams until the Job reaches a final stage; Ctrl+C exits immediately and explains that the Job is still running and how to follow or cancel it.
In interactive terminals, shows the Hub scheduling status message and wait duration while a Job waits for hardware.
Uploads and commits to kernel repos are now allowed.
Warns when allow or ignore patterns match no files.
When authentication identity lookup fails, the CLI suggests hf auth login and aligns its not-logged-in message with hf auth token.
httpx2 uses the operating system's certificate trust store by default; custom CA bundles via SSL_CERT_FILE or SSL_CERT_DIR still work.
Tooling 4
Shows unreferenced shared blobs left behind by older huggingface_hub versions and points to hf cache prune.
The package is now installed on Windows ARM64.
The command prints one row per recipe and supports catalog filters.
The CLI now hints to use --global after local add or update operations.
Fixes and other changes 41
On Windows, piped or redirected output no longer crashes with UnicodeEncodeError instead of listing files that failed verification.
Local-dir checksum verification skips .cache/huggingface/ metadata, so --fail-on-extra-files no longer fails on every clean download.
Recreates an extension's virtual environment when its Python no longer starts, even if no newer commit exists.
Webhook creation no longer requires passing --domain repo, and discussion watching uses the accepted value discussion.
find(detail=True) now returns file info when given a file path instead of an empty dict.
AccessRequest.username and AccessRequest.fullname are typed str | None because repos that hide usernames can return requests without requester names.
Runs provider get_response calls in a thread so blocking queue-based providers do not freeze the event loop while waiting for results.
Adds or copies are no longer dropped when their unchanged content is re-added at a path also deleted in the same commit.
Outdated local files are now reported as downloads in dry runs.
Cached listings no longer cause find() to silently skip folders whose names share a prefix with another folder.
No longer crashes when the parent listing is outdated, fixing pushes to a new bucket that previously failed after uploading data files.
In offline mode, skips the cached tree listing so a download at a pinned commit does not delete an existing file in local_dir instead of returning it.
In interactive terminals, shows the Hub scheduling status message and wait duration while a Job waits for hardware.
Methods for webhooks, access requests, user and org info, followers, and members now respect a custom endpoint instead of sending requests to huggingface.co.
Reused InferenceClient instances no longer retain every non-streaming response in memory until close().
Ignores a UTF-8 BOM when reading README metadata, preventing a second metadata block from being added and original metadata from being lost on the Hub.
huggingface_hub officially supports Python 3.15; Python 3.10 remains the minimum version.
Templates and metadata are read as UTF-8, avoiding a UnicodeDecodeError under the C locale that could break checkpoint saving in TRL.
Fixes a race that could skip the first scheduled push.
The CLI reads the file as UTF-8 and strips the BOM.
On Windows, quoted glob patterns are no longer expanded into local file names before reaching the command.
Without -f, logs no longer hang while the job keeps printing.
Prints [] when no job is running.
No longer fails when one of the requested jobs has finished.
Uploads existing paths containing glob characters as-is.
Concurrent downloads now see the resolved version, preventing parallel downloads from incorrectly skipping Xet.
With refresh=True, clears cached not-found results so newly created repos, branches, or buckets are recognized.
Clears cached not-found results for the specified path, so newly created repos, branches, or buckets are recognized.
Directory listings replace cached listings rather than append, avoiding duplicates, stale deleted files, and incorrect bucket-folder listings.
Card validation now respects the configured endpoint.
Redirect handling now considers the port.
Works offline with a pinned revision.
Scalar tags are no longer split into a single-character list.
Fixes lexical siblings being treated as an existing destination directory.
A missing remote file no longer leaves an empty local file behind.
The first pagination page is now retried as well.
Errors now report the correct repo_id for query strings and download URLs.
Validation now accepts bare typing.List, typing.Dict, and typing.Set.
Token names are stored as UTF-8 instead of locale encoding.
Logging configuration should target the httpcore2 logger rather than the previous HTTP logger.
Logging configuration should target the httpx2 logger rather than the previous HTTP logger.
huggingface-hub 1634 changes
Breaking changes 106
Batch operations now raise BucketBatchError when a batch reports failed operations.
The legacy keyword remains but is ignored, emits a FutureWarning, and is no longer included as a top-level payload field.
The --format, --json, and -q flags are consumed wherever they appear on jobs run, jobs uv run, and their scheduled variants; use -- when scripts need them.
The repo_id length limit now applies to the namespace as well.
Large Xet uploads now show a percentage-based Validating bar during shard finalization in upload_folder and XetUploadProgressReporter; this requires hf-xet>=1.6.0.
The
safeparameter now defaults toTrue, always using the safetensors loader.Path validation rejects
..segments anywhere inpath_in_repo, preventing embedded path traversal in uploads.Validation now restricts repository IDs to ASCII word characters, rejecting non-ASCII IDs client-side.
The pickle deserialization path now defaults to
weights_only=True; unsafe combinations raise explicit errors instead of silently falling through.Recursive removal no longer deletes lexical siblings of the requested prefix.
Validates remote filenames before writing locally; unsafe paths now raise ValueError on all platforms, including downloads to an explicitly named file or file object.
The CLI raises an explicit error for shell-script extensions on Windows.
Deprecated
labelsandtagswere removed from docstrings and the signature.This constant is removed; code that reads it directly will now get an AttributeError.
The minimum hf-xet version is raised to 1.5.2 to avoid fresh installs receiving the version that can hang on poor networks.
Passing token=False is now rejected instead of silently ignored.
Downloads and uploads now reject absolute, drive-relative, root-relative, UNC and traversal filenames on all platforms to prevent writes outside the target directory.
Sandbox jobs no longer receive the HF token by default; set forward_hf_token=True to opt in to forwarding it.
Streaming a missing file now raises FileNotFoundError.
Uses --sdk instead of --space-sdk in the CLI for consistency.
Replaced by --sdk in the CLI for consistency.
Pattern matching is case-sensitive on every OS; on Windows, patterns such as *.PDF no longer match file.pdf.
Removes the black-forest-labs, clarifai, hyperbolic, nebius, nvidia, and sambanova providers because the Hub no longer routes to them.
Raises IncompleteSnapshotError when the Hub is unreachable and the local snapshot lacks requested files, rather than silently returning a partial folder.
Returns a lazy Iterable[JobInfo] instead of a list, fetching large result sets page by page; materialize it with list(...) if you need indexing.
Non-detached runs now exit with the Job outcome, including exit code 1 when the Job errors.
Large-folder uploads use a streamed, multi-commit pipeline with background uploads and commits, and a live progress bar.
The login link and code are rendered with plain IPython HTML, removing the ipywidgets dependency.
Rejects canonical single-segment repo IDs; use a namespace-qualified repo ID instead.
Folder uploads may create multiple adaptive commits; create_pr targets main, and a PR opens even if no changes have been committed.
Xet upload and download operations use the session-based API, sharing a fork-safe, thread-safe, and SIGINT-safe session across call sites; this requires hf-xet >= 1.5.0.
Downloads now use a fresh temporary file rather than resuming an incomplete one, keeping concurrent downloads safe when file locking is broken. Previously failed partial downloads can no longer be resumed.
The format choices are now auto, human, agent, json, and quiet; table and -q are removed.
JSON output flattens command to a string and status to a stage string.
The dataclass returned by list_jobs_hardware() is renamed from JobHardware to JobHardwareInfo.
The Together ASR inference task is removed.
BucketUrl.handle is renamed to BucketUrl.uri, whose type is HfUri rather than str; use .to_uri() for the string form.
Single-segment repo IDs are no longer supported in HfFileSystem paths; use the namespace/name format.
The CLI raises an error when both --local-dir and --cache-dir are provided.
CLI -v flags no longer support single-segment repo IDs; use the namespace/name format.
Volume.to_hf_handle() is renamed to Volume.to_uri().
Raises an explicit EntryNotFoundError when the source path resolves to no files instead of silently succeeding with zero operations.
Folder copies now use rsync-style trailing slash semantics: a trailing slash copies only the folder contents, while omitting it nests the folder.
Replaces
hf skills upgrade; use this command to update skills.This command no longer exists; use
hf skills updateinstead.hf jobs uv run uploads local scripts to a jobs-artifacts bucket and mounts it read-write at /data, replacing base64 transport with no fallback.
When given a repo ID, lists files inside the repo instead of listing repos; supports tree, recursive, size, and revision options.
All buckets commands use a unified --format option with auto, human, agent, json, or quiet output; the previous --quiet and --format table|json flags are replaced.
Confirmation prompts now appear in human mode and require --yes in agent, JSON, or quiet modes, preventing scripts from hanging.
The minimum supported Python version is raised from 3.9 to 3.10.
The Homebrew formula for the Hugging Face CLI is now named hf; new users can install it with brew install hf.
Expand attributes are now restricted to official ModelInfo, DatasetInfo, and SpaceInfo attributes.
A general repository duplication method replaces the previous duplicate_space method.
The discussion viewing command is now named info.
Duplicate model, dataset, or Space repositories with one unified CLI command.
The deprecated direction argument has been removed.
The deprecated direction argument has been removed.
The deprecated direction argument has been removed.
Requires task_id when constructing an EvalResultEntry.
Removes the old Go-template format syntax; use -q for IDs or JSON output with jq for custom extraction.
Organization info replaces the deprecated is_enterprise boolean with a plan string.
The direction parameter is deprecated and ignored; sorting is always descending.
When creating a repository with the CLI, private now defaults to None, allowing the server to apply an organization’s private-by-default setting.
The truncation_direction parameter now uses lowercase left/right values instead of Left/Right; the async counterpart was updated as well.
Returns an iterator instead of a list, enabling lazy loading for repositories with many access requests; wrap the call with list(...) when a list is needed.
list_user_access returns paginated results to reflect a server-side API update; this is a breaking change.
The aiohttp dependency has been removed from the package.
The inference extra has been removed, so developers can no longer install it as an optional dependency group.
The [cli] extra has been removed because the CLI now ships with the core huggingface_hub package.
Custom HTTP backend configuration should migrate to set_client_factory() and set_async_client_factory().
constant.hf_cache_home has been removed; use constants.HF_HOME instead.
The get_token_permission API has been removed because it became unnecessary with fine-grained tokens.
The new CLI provides this command for authentication.
The new CLI provides this command to list cache entries.
The new CLI provides this command to remove cache entries.
Removes selected cached items, replacing hf scan delete.
The new CLI provides a command for file downloads.
The force_filename parameter has been removed from hf_hub_download and snapshot_download, including mixins.
The local_dir_use_symlinks parameter has been removed from hf_hub_download and snapshot_download, including mixins.
The resume_download parameter has been removed from hf_hub_download and snapshot_download, including mixins.
The new CLI provides a command for repository management.
The cache scanning command has been removed in favor of hf cache ls.
The cache deletion command has been removed in favor of hf cache rm.
The legacy transfer package is fully removed and replaced by hf_xet.
The new CLI provides a command for file uploads.
A redesigned Typer-based CLI replaces huggingface-cli with a resource-action interface for Hub operations.
HfFolder token management is replaced by explicit login(), logout(), and get_token() functions.
The long-deprecated HfFolder class has been removed.
The HTTP backend migrates from requests to httpx, bringing native HTTP/2 support, thread-safe connection reuse, and a unified synchronous and asynchronous API.
The legacy CLI is deprecated and replaced by the hf command.
The huggingface-cli command has been removed; use the hf command instead.
The long-deprecated InferenceAPI class has been removed.
The is_write_action argument has been removed from build_hf_headers methods.
Keras 2.x-related code and utilities have been removed.
The language argument has been removed from list_models.
The library argument has been removed from list_models.
The tags argument has been removed from list_models.
The task argument has been removed from list_models.
The login methods' new_session argument has been renamed to skip_if_logged_in.
Login methods now require keyword arguments.
The minimum supported Python version is now 3.9 instead of 3.8.
The Git-based Repository class is removed; the notes point to HTTP-based methods such as upload_file() and create_commit() instead.
TensorFlow-related code and dependencies have been removed.
update_repo_visibility has been removed; use update_repo_settings instead.
The use_auth_token parameter is no longer supported; use token instead.
The write_permission argument has been removed from the login method.
Security 13
Secret values no longer end up in
argvwhen using--secrets.Pooled sandboxes use per-sandbox capability tokens, validate pool hosts before sending credentials, and bind the local pool cache to its endpoint, credential and namespace.
The sandbox server binary is pinned by digest and verified before it runs as PID 1.
Follows redirects between Hub hosts when resolving files; redirects to CDNs are still not followed, preserving LFS metadata and preventing Authorization from being forwarded off-Hub.
Remote file paths are validated before bucket sync writes them locally, preventing malicious or compromised buckets from escaping the chosen destination directory.
Safetensors shard detection now uses consistent matching semantics, preventing an extension-only
.safetensorsshard from falling back to pickle deserialization.Catastrophic backtracking in REGEX_YAML_BLOCK was fixed to address ReDoS.
Validates skill names from marketplace payloads before filesystem work as defense-in-depth against path traversal.
Templates recommended as private, like JupyterLab, create Spaces privately by default unless visibility is explicitly chosen.
Creates a dedicated VM sandbox for running commands and moving files, built on Jobs.
Scopes a short-lived Hub token obtained through OIDC exchange, allowing CI workflows to authenticate without storing an HF_TOKEN secret.
Token files are written with permissions 0o600 and parent directories with 0o700 after every write, preventing world-readable token files where POSIX permissions are supported.
Token files are written with permissions 0o600 and parent directories with 0o700 after every write, preventing world-readable token files where POSIX permissions are supported.
Deprecations 14
The flag is deprecated; it remains accepted as a no-op and prints a warning.
The -f/--filter option is deprecated, accepted but ignored with a warning, and will be removed in a future release.
Deprecated in favor of hf upload for very large and resumable uploads.
Deprecated in favor of upload_folder, which handles very large and resumable uploads.
The -f/--filter option is deprecated; use --status and --label instead. Glob patterns, negation, and filtering by id, image, or command are no longer supported.
Passing protected as the endpoint type emits a FutureWarning.
The function is now softly deprecated.
Its deprecation warning is now visible to users.
Deprecates model_name, which now emits a warning; use search instead. Removal is planned for 2.0.
Adds the replacement command for hf repo-files delete.
The command is hidden from help and displays a deprecation warning; use hf repo delete-files instead.
Replaces the hf repo command; the old command still works but displays a deprecation warning.
Adds a warning related to repository commit count.
The old InferenceApi class is superseded by the more feature-complete InferenceClient.
New APIs and options 283
AWS PrivateLink account settings are sent under privateService.accountId; the region is required when the account ID is set.
AWS PrivateLink region settings are sent under privateService.region, independent of the compute region.
The watch option now accepts bucket as a watched item type.
Adds a container registry password option for Inference Endpoints.
Adds a container registry username option for Inference Endpoints.
Accepts
hf://file URIs to remove a single cached file across revisions, deleting its blob only when no other cached file references it.Set this environment variable to opt out of cross-repository Xet blob deduplication.
Adds
hf --skillsas an alias forhf skills preview.Exposes the network group on
JobInfo.Kernel repos are supported by
hf cache ls,rmandprune;--repo-type kernelworks forhf downloadandhf cache verify.UV scripts can declare job launch settings in a PEP 723 header;
hf jobs uv runreads them at submit time, with CLI flags taking precedence and collection fields merged entry by entry.Dedicated sandboxes accept custom Job labels using the --label KEY=VALUE syntax.
Re-exports the HTTP library for integrators to import its types and exceptions compatibly across huggingface_hub versions; Hub requests should still use get_session().
Dedicated sandboxes accept custom Job labels through Sandbox.create; labels are merged with SDK labels, and invalid or reserved labels are rejected before a billable Job starts.
Adds repeatable --label key=value filtering for scheduled jobs.
Adds --name as a shortcut for filtering by the name label.
Adds --status filtering for active or suspended scheduled jobs.
Adds a labels argument for filtering scheduled jobs.
Change an existing bucket's visibility from the CLI using either
--privateor--public.Update an existing bucket's visibility between private and public.
Accepts engine-keyed container dictionaries and forwards dictionaries without a top-level url to the API untouched, allowing later API engines to work without a hub upgrade.
Adds feature-extraction support for the deepinfra Inference Provider.
Adds text-to-speech support for the deepinfra Inference Provider.
Adds an option to set data parallelism when deploying an Inference Endpoint.
Adds an option to select the engine when deploying an Inference Endpoint.
Adds an option to set tensor parallelism when deploying an Inference Endpoint.
Lists valid Inference Endpoint hardware combinations, prices, and namespace accelerator quotas, filtered by default to hardware you can deploy on.
Adds support for setting a custom image when updating an Inference Endpoint.
Adds an option to set data parallelism when updating an Inference Endpoint.
Adds an option to select the engine when updating an Inference Endpoint.
Adds support for setting the health route when updating an Inference Endpoint.
Adds support for setting the port when updating an Inference Endpoint.
Adds an option to set tensor parallelism when updating an Inference Endpoint.
Returns the hardware data as InferenceEndpointHardware objects that can be filtered programmatically.
The standalone installers install the hf-cli skill globally by default; pass this option to skip installation.
Adds region as an expandable Space property, typed as Literal["us", "eu"] | None.
Set this environment variable to 1 to silence the local skill update hint.
Adds the container_args parameter for changing an endpoint's container arguments after deployment.
Adds the container_command parameter for changing an endpoint's container command after deployment.
Adds a job-name filter shortcut for --label name=NAME; job names also appear in a dedicated NAME column and as a top-level field in inspect output and command results.
Adds resource-group assignment to hf jobs run, hf jobs uv run, and hf jobs scheduled run.
Collections and Jobs APIs accept resource_group_id to assign organization resource groups for access control, cost attribution, and spending limits.
Assigns a collection to a resource group after creation; passing None removes it.
A timeout parameter was added to safetensors metadata methods.
Jobs CLI commands support an optional --name flag to label new or existing Jobs and make them easier to find in the UI.
The Job Python APIs accept an optional name parameter, stored as the name label to make Jobs easier to find and identify in the UI.
Creates a Space from an official Hub template by passing its repo_id or short name; the Space SDK is inferred from the template.
Adds a utility for retrieving a cached repository tree.
Updates one named CLI extension or checks all installed extensions and updates those behind; updates are applied in place.
Can filter listed models by inference provider.
Adds an apps filter for listed models.
Adds a gated-model filter for listed models.
Adds a pipeline-tag filter for listed models.
Creates a Space from an official Hub template using its repo_id or short name.
Lists official Hub Space templates available for creating a Space.
Exposes snapshot_path on IncompleteSnapshotError.
Lists official Hub Space templates so developers can choose a template when creating a Space.
Adds automatic-speech-recognition support for the deepinfra inference provider.
Adds the base_model filter parameter; passing base_model=False includes fine-tuned or derivative repos that declare a parent model.
Removes leftover .incomplete files automatically.
Adds a CLI command to edit discussions.
Adds a command to trigger scheduled jobs on demand.
Adds CLI support for creating, using, copying files to, and terminating sandboxes.
Adds a CLI command for starting background processes in sandboxes.
Exposes the out singleton publicly and adds its log method.
Adds a logging method to the public out singleton.
Provides a port proxy to reach a server inside a sandbox over HTTP or WebSocket.
Packs many CPU sandboxes into shared host VMs for fan-out workloads.
Supports running sandbox processes in the background.
Adds a helper to sync a local directory to a jobs-artifacts bucket and mount it.
Adds label filtering to the job-listing command.
Adds a limit option for paginating job listings; 0 means no limit.
Adds status filtering to the job-listing command.
Adds server-side label filtering to list_jobs(), so matching jobs can be fetched without filtering the full result set locally.
Adds server-side status filtering to list_jobs(), so matching jobs can be fetched without filtering the full result set locally.
Adds a parameter for specifying custom container arguments.
Adds a parameter for specifying the custom container command.
Running login with JSON format streams structured device-code and terminal authentication events for AI agents.
Configures the command for custom-container deployment.
Configures arguments for the custom container.
Deploys custom Docker containers using the specified image.
Injects environment variables during custom-container deployment.
Injects environment variables from a file during custom-container deployment.
Configures the health route for custom-container deployment.
Configures the port for custom-container deployment.
Injects secrets during custom-container deployment.
Injects secrets from a file during custom-container deployment.
Waits for one or more Jobs to reach a terminal stage; exits 0 only if all waited-on Jobs completed.
Waits for a Space to settle; exits 0 if it is RUNNING and non-zero otherwise.
A dedicated error provides cleaner, actionable messages when a Job cannot be found.
Adds an endpoint argument to parse URLs from self-hosted Hub instances.
Jobs can be launched with SSH access when an SSH key is registered.
Waits for one or more Jobs and returns final JobInfo even on failure; raises TimeoutError only on timeout.
Waits until a Space leaves an intermediate stage and settles on a final state.
Exposes container ports through the public jobs proxy; each exposed port is reachable at a job-specific URL and requires an HF token with read access to the job's namespace.
Lets providers other than GitHub Actions pass a pre-minted ID token for OIDC exchange.
Accepts an hf:// URI in place of the positional repo ID; the URI can encode repo type, revision, and file path.
Job responses now include the URLs for exposed ports.
Accepts exposed port numbers to make job container ports reachable through the public jobs proxy.
A unified copy command handles local uploads, Hub downloads, and remote-to-remote copies using hf:// URIs. It is also available as hf repos cp and hf buckets cp.
Adds a method to convert an HfUri to a web URL.
Accepts src_repo_id and src_repo_type to specify a cross-repository source for a copy operation.
Lists models, datasets, Spaces, and buckets with storage usage, sorted by storage usage.
Filters repository listings by namespace.
Supports searching repository listings.
Filters repository listings by type.
Opens an SSH session directly into a Space's Dev Mode container and prompts to enable Dev Mode if needed.
Prints the SSH command without running it.
Forwards a specific SSH key.
Jobs now have a JobHardware enum independent of SpaceHardware, allowing the two hardware catalogs to diverge.
Adds rtx-pro-6000 hardware flavors for Jobs.
Adds an API to update job labels.
Adds an API to update scheduled job labels.
Bypasses table truncation entirely.
Together now supports feature extraction on Inference Providers.
The cache rm command now supports hf:// URIs.
A public helper is available for validating hf:// URIs.
JobHardware gains an ephemeral_storage field.
PaperInfo now exposes linked repositories.
A centralized helper provides consistent parsing of hf:// mount URIs.
A centralized helper provides consistent parsing of hf:// URIs, including treating @ in filenames as literal.
Accepts an optional region argument to pin a new bucket to the us or eu cloud region.
Accepts an optional region argument to pin a new repo to the us or eu cloud region.
Accepts
--regionto pin a new bucket to the us or eu cloud region.Accepts
--regionto pin a new repo to the us or eu cloud region.Lists marketplace skills and shows whether each is installed in the supported project, global, and Claude locations.
Adds CLI commands to add, list, and delete write-only Space secrets, including support for multiple flags and dotenv files.
Adds
hf -vto print the CLI version.Returns Space secret metadata, including key, description, and updated timestamp, without revealing secret values.
Accepted globally by every hf command; auto selects human output in interactive terminals and agent output when invoked by an AI agent.
Fetches and prints a dataset repo README, with options to output metadata or prose only.
Surfaces model scores submitted to a benchmark dataset so developers can compare models from the terminal.
Set to 1 to silence the CLI startup update check.
Fetches and prints a model repo README; --metadata and --text split structured metadata from prose.
Fetches and prints a Space repo README, with options to output metadata or prose only.
Lists available hardware flavors with pricing to help developers discover options.
Pauses a Space from the terminal and prompts for confirmation; -y skips the prompt.
Restarts a Space, optionally with a clean rebuild; prompts for confirmation unless -y is used.
Configures Space hardware through the settings command.
Configures Space sleep time through the settings command.
Detects whether hf was installed through Homebrew, the standalone installer, or pip and runs the matching upgrade command; replaces the blocking startup prompt.
Accepted globally by every hf command for JSON output.
Parses hf:// volume mount specifications without network calls; results round-trip via .to_uri().
Parses valid hf:// URI shapes, including type prefixes, revisions, and repo paths, without network calls; results round-trip via .to_uri().
The -q / --quiet output flag is handled globally and accepted by every hf command.
DeepInfra support is added for Inference Providers.
The ExpandDatasetProperty_T type now includes mainSize.
Use --search to filter listed buckets by name.
Pass search to list_buckets() to filter buckets by name without listing and filtering them client-side.
Adds programmatic retrieval of Space run or build logs, with an option to stream logs in real time.
Adds a command that prints the current token to stdout for piping into other commands.
Adds a CLI command to retrieve run or build logs and stream them in real time.
Adds CLI semantic search for Spaces, with options to filter by SDK and show descriptions or JSON output.
Adds commands to list, set, and delete volumes mounted in Spaces using the -v/--volume syntax.
Adds embedding-based semantic search for Spaces, finding relevant results based on what they do rather than only matching keywords in their names.
Copy files remotely between Buckets or from a repository to a Bucket without downloading and re-uploading; Xet-tracked files are copied directly by hash.
Copy files remotely between Buckets or from a repository to a Bucket without downloading and re-uploading.
Query information about a kernel repository using the Python API.
The Hub supports the kernel repository type with a limited set of methods, plus restricted creation and deletion.
Accepts space_volumes to configure mounted volumes when creating a Space.
Accepts space_volumes to configure mounted volumes when duplicating a Space.
Adds --format to force agent-friendly, JSON, or quiet CLI output.
Adds an environment variable to force the cache to use no symlinks.
Adds --volume and -v flags for mounting volumes when creating a Space.
Adds --volume and -v flags for mounting volumes when duplicating a Space.
Adds a --claude flag for installing a marketplace skill with Claude Code integration.
Supports installing skills directly from the Hugging Face skills marketplace.
Adds a command to upgrade all installed skills.
Adds an API to mount models, datasets, and storage buckets in a Space.
Adds a Volume type for specifying mounted Space volumes, including their type, source, mount path, and read-only status.
HfApigains a method for dataset leaderboards.HF Hub hardware flavors now include cpu-performance, sprx8, h200, and inf2x6.
The command can mount Hugging Face repositories and Storage Buckets in job containers.
Get structured JSON metadata for a paper from the CLI.
The papers listing command gains filters for week, month, and submitter.
Read full paper content as markdown from the CLI.
Search papers by keyword from the CLI.
Repositories can be created with explicit visibility options; protected visibility is available for Spaces only.
CLI commands accepting
--typecan usespaces/user/repo,datasets/user/repo, ormodels/user/repoinstead of a repo ID plus type.HfApi.create_repo,update_repo_settings, andduplicate_repoaccept explicit visibility settings.Jobs can mount Hugging Face repositories and Storage Buckets as volumes in their containers.
The command supports JSON output.
Use --force to go through the full login flow again, for example to switch tokens.
Search GitHub repositories tagged with the hf-extension topic to discover extensions, with results sorted by stars and local installation status shown.
Adds a hidden --json shorthand for --format json.
Adds --format and --quiet options to the papers listing command.
Filter through the Hugging Face API and CLI by number of parameters.
Adds a used_storage field to ModelInfo, DatasetInfo, and SpaceInfo.
Discover parquet file URLs for a dataset, optionally selecting a subset and split.
Query dataset parquet files with DuckDB from the CLI.
Manage discussions and pull requests from the CLI, including listing, viewing, creating, commenting, closing, reopening, renaming, and merging.
Install CLI extensions distributed as Python packages as well as standalone executables.
Enable or disable Space dev mode from the CLI; enabling waits for the Space to be ready and prints connection instructions.
Manage Hub webhooks from the terminal, including listing, inspecting, creating, updating, enabling, disabling, and deleting them.
HfFileSystem supports buckets, allowing developers to list, glob, download, stream, and upload bucket files through the familiar fsspec interface.
InferenceClient adds NVIDIA provider support.
Adds a notes field.
Adds the source_org field.
Adds CLI support for creating, listing, moving, and deleting buckets; uploading, downloading, and syncing files; and managing bucket contents with include/exclude patterns.
Adds commands to list, inspect, create, update, and delete collections and manage their items.
Adds table or JSON output selection to dataset listing.
Adds quiet output to dataset listing.
Adds table or JSON output selection to endpoint listing.
Adds quiet output to endpoint listing.
Adds an alias for the CLI extensions command.
Adds commands to install, run, list, and remove standalone CLI extensions hosted in GitHub repositories.
Adds -h as a short alias for --help.
Adds a command to list available job hardware.
Prints available logs and exits by default; use -f to stream logs.
Supports multi-GPU training commands including torchrun and accelerate launch.
Passes local script and configuration files to a job.
Adds labels and != negation to job filtering.
Accepts namespace/job_id format in jobs CLI commands.
Adds table or JSON output selection to model listing.
Adds quiet output to model listing.
Adds a command to list daily papers on the Hub.
Adds a command to install compact skills for AI coding agents, with support for central or project-level installation and Cursor.
Adds experimental hot-reload of Python files in a Space without a full rebuild and restart.
Adds table or JSON output selection to Space listing.
Adds quiet output to Space listing.
Adds --type as an alias for --repo-type.
Adds a hidden --version flag.
Adds accelerator parameter support for inference endpoints.
Adds bucket synchronization to HfApi for syncing files with bucket storage.
Adds a helper to serialize evaluation result entries to YAML format.
Adds a dataclass representing evaluation scores for the Hub evaluation results format.
Job filtering now supports labels and negation, including status!=error and label filters.
Adds an output format option to ls CLI commands.
Adds a command to add model or dataset items to a collection, optionally with a note.
Adds a command to create collections with a description and private setting.
Adds a command to delete a collection.
Adds a command to get collection information.
Adds a command to list collections with owner, limit, and sort options.
Supports multi-GPU training commands using torchrun and accelerate launch.
Allows local config files to be passed alongside scripts when running jobs.
Adds a command to list daily papers, filter by date, and sort by trending or publication date.
Adds a command to install the hf-cli skill for Claude Code, Codex, and OpenCode, centrally with agent-specific symlinks.
Adds support for setting a label in the Jobs API.
Adds a helper to parse YAML data into EvalResultEntry objects.
Adds repoType support when listing repository files.
Adds a command to list available hardware options.
Adds a limit parameter to the list_papers API method.
Adds a programmatic way to list all available hardware options for Hugging Face Jobs.
Adds the num_papers field.
Adds support for text-to-image inference.
Adds dimensions to control output embedding size.
Adds the encoding_format parameter for inference output embeddings.
Adds a dedicated command for discovering datasets, including listing and viewing dataset information.
Adds a command that displays live CPU, memory, network, and GPU usage for running jobs.
Adds a dedicated command for discovering models, including listing and viewing model information.
Adds an --expand parameter to hf repo info.
Adds a command to list repositories.
Adds a dedicated command for discovering Spaces, including listing and viewing Space information.
Adds a method for fetching running-job metrics, including CPU, memory, network, and GPU usage.
The PowerShell standalone installer can install the transformers CLI alongside the huggingface_hub CLI when passed -WithTransformers.
The standalone installer can install the transformers CLI alongside the huggingface_hub CLI when passed --with-transformers.
Adds support for reading safetensors metadata from local folders.
Adds support for transcribing audio files using automatic speech recognition with the Replicate inference provider.
Adds the expand_info argument to HfFileSystem.
Adds a top-level alias for the HfFileSystem interface to make filesystem operations more convenient.
Adds configuration of scaling metrics and thresholds when deploying Inference Endpoints.
Adds a helper for checking whether offline mode is enabled, recommended instead of checking HF_HUB_OFFLINE directly.
Adds an API for accessing the daily papers feed, with filtering by week, month, or submitter and sorting by publication date or trending.
Makes RepoFile available at the package root for easier imports.
Makes RepoFolder available at the package root for easier imports.
Adds an optional cache to whoami.
Adds top-level hffs for opening files through HfFileSystem.
Collections can be added to collections by slug ID.
Additional arguments are passed through from HfApi download utils.
Limits results to the top N entries after sorting.
Adds sorting by access time, modification time, name, or size, with an optional order such as modified:asc.
Adds a command to verify cached files against Hub checksums, with options for repository type, revision, directory, and missing or extra files.
Adds commands to deploy, delete, update, monitor, pause, resume, and scale Inference Endpoints from the terminal.
A minimal PyPI package installs the hf CLI for isolated execution with tools such as uvx; importing hf in Python raises ImportError.
The fal provider now supports image-segmentation, including background removal with RMBG v2.0.
A utility for obtaining an asynchronous HTTP client has been added for async logic.
Cleans up detached, unreferenced cache revisions.
The --dry-run option previews files, download sizes, cached files, and total bandwidth requirements before downloading.
The new CLI provides this command for cloud compute.
Adds an endpoint to list followers of an organization, similar to the existing user followers endpoint.
Use this factory API as the migration path for custom asynchronous HTTP backends.
Use this factory API as the migration path for custom synchronous HTTP backends previously configured with configure_http_backend().
Adds TypedDict validation by converting TypedDict values to dataclasses on the fly without mutating input data.
Performance 8
Imports are lazy, deferring heavy API implementation and optional dependencies until used; package and CLI imports are substantially faster.
Serializes model first so routers can resolve the provider from a small prefix instead of buffering a payload containing base64 images.
Optimizes parallel file transfer constants for better throughput.
Caches repository file listings on disk, reducing repeat downloads of a cached commit to one network call.
Download sync skips the local walk when delete is disabled.
Uploads avoid duplicate SHA-256 computation for model and dataset repositories and skip it for bucket uploads, improving large-file upload speed.
Downloads are now always multi-threaded, improving download speed by removing a previous parallelization limitation.
Chat Completion requests are now routed server-side, saving one HTTP call and centralizing provider routing logic.
Behavior and default changes 76
The lpath argument is optional for compatibility with fsspec>=2026.9.0.
Skills are installed to .agents/skills by default and symlinked into .claude/skills, so one command supports agents that load skills from .agents/skills.
Symlink support is published only after probing.
--format humannow overrides agent auto-detection.Sweeps shared Xet blob payloads that are no longer referenced by any cached repo.
Jobs network groups are now scoped to the namespace and resource group.
Transfers and command output are bounded to limit client resource use.
No longer requires the conversational tag; models tagged text-generation or image-text-to-text can now be served.
Inference Providers now send LoRA weights for fal-ai text-to-video.
The optional MCP extra now sets an upper bound of mcp<2.0.
A failing non-streaming inference call with a 504 now hints at using
stream=True.No longer requires --custom-image at deploy time and is now available when updating an endpoint.
Refreshes the hf-cli skill without restoring it if the user opted out or removed it.
The CLI warns when it detects an inconsistency in the cache.
Jobs get an automatic name derived from the Docker image or UV script and command line when --name is not provided; an explicit --name still takes precedence.
Generates the built-in hf-cli skill locally from the installed CLI version, so installing it works offline and stays in sync with that CLI.
Generates the built-in hf-cli skill locally from the installed CLI version, so updating it works offline and stays in sync with that CLI.
Xet downloads show separate transfer and reconstruction progress bars, indicating network bytes arriving and buffered chunks being written to disk.
Flags leftover .incomplete files in cache listings.
The -v option accepts local directories.
Accepts two-letter byte units such as KB, MB, GB, TB, and PB, allowing documented cache size filters to parse.
OAuth tokens are transparently refreshed when less than a day of validity remains.
The token list now shows OAuth token expiry dates.
Login now defaults to the browser-based OAuth Device Code flow instead of asking users to copy-paste a token.
NotFound errors for repos or buckets now suggest the matching create command.
SSH now waits for the Job to reach RUNNING before connecting.
Request Timeout responses are now included in the default retry status set.
Python login now uses the browser-based OAuth Device Code flow by default.
The endpoint type now defaults to authenticated instead of protected.
Fetches the agent harness registry from the API instead of using a hardcoded list, with a 24-hour on-disk cache and in-process caching.
Accept web URLs in bucket CLI commands.
Checks HF_TOKEN or HUGGING_FACE_HUB_TOKEN and the on-disk token file before the Colab secrets vault, so explicit login or environment credentials take precedence.
Suppresses hints when CLI quiet output mode is enabled.
Accepts Hugging Face web URLs, so links copied from the website can be passed directly to the CLI or library.
Human-mode tables fit terminal width by shrinking the widest columns; non-TTY output keeps the legacy fixed cap, and numeric columns are right-aligned.
copy_files now copies files between repositories on the Hub, in addition to existing bucket destinations, without downloading and re-uploading data.
The flavor option accepts any string, so older CLI versions do not reject new server-side flavors.
The hardware option accepts any string, so older CLI versions do not reject new server-side flavors.
Job logs are tailed using server-side support.
Help screens use underlined section headings and bold option and command names; styling is disabled when
NO_COLORis set or an AI agent is detected.Offline or cache-miss errors print a clean message instead of a Python traceback; set
HF_DEBUG=1to show the full stack.Status updates such as spinners and progress are suppressed when using
--format json,--quiet, or--format agent.Progress bars are no longer shown during skills updates.
Short-circuits when the CLI is already on the latest version.
The default
--limitfor list commands increases from 10 to 30.The blocking interactive Y/n auto-update prompt is removed; startup instead prints a warning suggesting hf update.
Accepts list[str] inputs.
Repo files copied to a bucket now ignore .gitattributes.
Adds support for kernels in list_liked_repos.
The hf CLI detects AI agents and adapts output with no ANSI, no truncation, tab-separated tables, compact JSON, and full timestamps.
Adds a summary field to the command's CLI output.
Official HF CLI extensions are automatically installed on first invocation.
Login now returns immediately when already logged in, rather than starting the login flow.
The install command now supports pip-installable Python package extensions in isolated virtual environments, alongside shell script extensions, and auto-detects the repository type.
The command can now use a default directory when adding a skill.
There is no timeout by default when using httpx.
Warns about repository commit count during large-folder uploads.
CLI table columns are now dynamic based on the --expand field.
The benchmark=True alias maps to benchmark="official" when listing datasets.
Logs the x-amz-cf-id header on HTTP errors when no request ID is available.
Uses HF_HUB_DOWNLOAD_TIMEOUT as the default httpx timeout.
Raises the maximum file size from 50 GB to 200 GB.
The jobs CLI now allows unknown options.
The auth list command logs a message when HF_TOKEN is set.
Strict dataclasses now support the 'x | y' syntax.
On 429 responses, the SDK parses the RateLimit header, reports how long to wait and how many requests remain, and waits for the reset duration before retrying across downloads, uploads, and paginated Hub API calls.
The client warns on the server's X-HF-Warning header and prints the server warning without hardcoded client-side addition.
Decreases the number of files before snapshot_download falls back to list_repo_tree.
Makes name optional in catalog deploy.
Per-file logs are hidden by default and individual progress bars are combined into a single progress bar.
Per-file logs are hidden by default and individual progress bars are combined into a single progress bar.
The CLI silently checks PyPI for newer versions every 24 hours and notifies users with upgrade instructions based on their installation method.
hf_xet becomes the default package for uploading and downloading Hub files, replacing the previously optional hf_transfer.
The exception inherits from both requests and httpx HTTPError base classes to preserve compatibility for error handling across versions.
upload_file now returns the URL of the commit created on the Hub.
upload_folder now returns the URL of the commit created on the Hub.
Tooling 21
Any hf command can show a local hint, at most once a day, when the skill is missing or was generated by another hf version.
Renames the job-listing command to hf jobs ls; hf jobs ps and hf jobs list remain aliases.
Provides agent-friendly hints and examples for jobs commands.
The CLI surfaces job runtime fields in ps and inspect.
The CLI now parses the initiator field in jobs API responses.
Adds hints and an example to the command output.
The skills CLI is migrated to buckets.
The CLI detects the pi agent.
Improves discoverability of the hf CLI.
Adds an interactive CLI autoupdate prompt.
Replaces
huggingface-cliwithhfin the brew upgrade command.List commands are normalized to accept list and ls aliases.
Help output now lists installed extensions under an Extension commands section.
Adds overload decorators for dry_run typing.
Help output groups commands into Main commands and Help commands and adds Examples and Learn more sections.
Adds the @dataclass_transform decorator to dataclass_with_extra.
The tiny-agents CLI no longer uses rich.
Installation scripts support uv for faster package installation.
Python 3.14 is now officially supported.
The CLI suggests available commands, subcommands, options, and arguments as users type.
Cross-platform installers set up isolated environments on macOS, Linux, and Windows, handling dependencies and PATH configuration.
Fixes and other changes 113
The environment variable is now honored everywhere, including skills installed for relocated Claude Code instances.
Invalid eval result entries are skipped instead of raising.
Relative time output now rolls over instead of displaying 60 seconds, 60 minutes, or 24 hours.
get_file now works with a bare local filename.
Updates now refresh both skill roots in the same way as installation.
Download progress is measured from the initial file position.
Tool listing now follows nextCursor when fetching additional results.
Ref names use POSIX paths on Windows.
Sandbox background processes are addressed by their server-assigned ID, so
kill()stops the process and reports accurately.Pool ownership is decided per host so a
with SandboxPool(...)block does not tear down a colleague's discovered host.CommitInfo instances can now be copied and pickled.
Regular HTTP downloads no longer fail when the HEAD response omits Content-Length; file size is validated against the GET response when available.
With --dry-run and --local-dir, cached files are no longer copied into the destination, avoiding apparent hangs and incomplete files.
On Windows, no longer attempts to self-upgrade a pip installation; instead it prints the pip install -U command to run.
A timeout while waiting for streamed-download response headers is retried and resumed like a body read failure.
The dotenv parser preserves unquoted values containing # and keeps single-quoted values verbatim.
Iteration now yields all chunks instead of stopping after the first 4MB chunk.
Writes the refs/ cache file atomically, fixing a race when concurrent calls target the same repository.
Records the repo_id and repo_type for which a revision was resolved; reuses it for that repo and resolves the requested revision again for a different repo.
Argument help rendering is fixed for click 8.5.
CLI uploads now work when
local_pathis a wildcard.Connection info is cached and reused across download groups, avoiding an eager Xet token request for every file and reducing API calls, download delays, and rate limiting.
The CLI installer now points at a newer Python executable when macOS has a shadowed Python.
Omits model.task instead of sending it as null when creating an endpoint.
Does not use a redirect's Content-Length as the file size.
Fixes duplicated GPU rows in the command output.
Fixes the string value of ResolvedRevision after pickle or copy operations.
Fixes scheduled uploads of a single file in a subfolder.
Fixes tqdm_class being ignored by the Xet transfer bar.
Handles the same custom-image payload shapes as create_inference_endpoint.
A 429 is no longer reported as a window rate limit when the window is not exhausted.
Releases the swallowed HEAD exception traceback and caller stack, and fixes retries on an httpx client already closed by a previous ConnectError.
Filters bucket listings on path-component boundaries, preventing sibling prefix collisions in exists and ls.
Avoids deleting non-symlink snapshot files a second time as blobs, preventing FileNotFoundError tracebacks; reported freed size is unchanged.
The CLI no longer crashes with UnicodeEncodeError when stdout cannot encode non-ASCII output, such as when output is redirected or piped on Windows.
Fixes tilde expansion so upload paths like ~/model.bin no longer raise FileNotFoundError.
Fixes silent truncation of headers between 99994 and 100000 bytes that caused parsing failures.
Appended keys retain their order when CardData.to_yaml serializes data.
Creating a space no longer fails when exists_ok=True and the server returns a 402 Payment required error.
The file-count progress bar is updated on completion.
Fixed a Windows crash when downloading into a deeply nested local_dir.
Xet download speed now shows the summed rate rather than the per-file rate.
Fixes false install verification failures on Windows.
Fixes escaped backslash handling when parsing .env values in the CLI.
Percent-encodes the revision when converting an HfUri to a URL.
Honors the standard delay-seconds form of the Retry-After header; HF rate-limit headers take precedence when present.
Model and dataset card templates are now included in wheels.
Remains available so downstream libraries can register their own CLI commands after the CLI migration.
Fixes an IndexError when an allow or ignore pattern is empty.
Requests are retried when they encounter httpx.RemoteProtocolError.
Fixes a circular import that caused importing login from a fresh interpreter to raise ImportError.
Skipped string tensors are excluded from the single-shard index.
Transient RemoteProtocolError connection drops during downloads are now retried.
Failed OIDC exchanges now include the server error_description in HTTP error messages.
Windows metadata files such as desktop.ini no longer cause cache scans to fail.
Fixes an ImportError on Python 3.15 caused by the upstream removal of dataclasses._MISSING_TYPE.
Expands the user home directory in local_dir and cache_dir during file downloads.
Creation no longer fails when the response is HTTP 401 and the repository or bucket already exists.
Fixes failures on read-only file systems when the non-existence of a file is already cached.
Fixes snapshot bar inflation on http_get retry.
The hint message now uses the correct
hf skills updatecommand.For Homebrew installs, checks the Homebrew registry so it does not suggest a version that is not yet available there.
Prints help when a leaf command requiring arguments is called without arguments.
Fixes table rendering for the datasets list command.
No longer crashes when stderr lacks a real file descriptor.
Fixes installation method detection for curl-installed hf when using Homebrew Python.
Avoids reuploading preuploaded LFS files.
The fsspec configuration is now applied in the HfFileSystem metaclass.
Matches Unix cp -r nesting semantics when copying files.
Fixes a reference cycle that caused delayed object destruction.
Fixes copying a file to a folder.
Custom tqdm_class implementations work in non-TTY environments instead of silently breaking.
The method's return type is corrected.
The request now sends an object instead of a bare array.
Fixes safetensors loading so eval() is called.
Shard filenames in sharded checkpoint index files are now validated.
Strict dataclass validation now supports None types and rejects bool/int cross-type confusion.
Streaming to stdout is more robust.
Installation works with uv-managed Python by using uv when available.
Fixes glob behavior when a subdirectory is missing.
Fixes deadlocks or stalls during large-file downloads.
Raises the actual error instead of a generic exception when a snapshot_download operation fails.
CLI errors now include repo_id, repo_type, and bucket_id.
Downloading a repository subfolder by passing its path now works as expected.
Fixes jobs commands crashing when run without a TTY.
Fixes path resolution when a path contains the special character @.
Prevents file corruption on download retries when the server ignores the Range header.
Fixes filtering datasets by official benchmark.
Stops cache verification from incorrectly reporting folders as missing files.
Fixes the payload for fal image URLs.
Fixes permissions for multi-user cache locks.
Fixes Replicate image-to-image compatibility with different model schemas.
Adds retry and backoff when fetching Xet connection info to handle 502 errors.
The _endpoint field now defaults to None, fixing a regression from v1.3.3.
Fixes curlify behavior with streaming requests.
Fixes verification incorrectly reporting folders as missing files.
Fixes a severe streaming performance regression by keeping a byte iterator.
Fixes resolve_path for paths containing the special character @.
Fixes the endpoint not being forwarded in CommitUrl.
Fixes create_repo returning the wrong repo_id.
Fixes a requirements mismatch for hf-xet.
Job-related APIs now use self.endpoint, enabling support for custom endpoints.
Shows the HF_TOKEN message when no stored tokens exist.
Fixes an unbound local error when reading corrupted metadata files.
Uses constants.HF_HUB_ETAG_TIMEOUT as the timeout for get_hf_file_metadata.
Fixes a FileNotFoundError in the CLI update check.
Fixes HfHubHTTPError reduce behavior by adding a factory function.
The CLI now respects the HF_DEBUG environment variable.
Fixes output parsing for zero-shot classification.
Avoids a redundant call to the Xet connection info URL, fixing HTTP 429 rate limit issues when downloading very large datasets of small files.
The installer now works correctly for zsh users and across common shells.
Fixes the instance cache when using multiprocessing with the fork start method.
HTTP sessions are now closed on fork.
huggingface-hub 0.367 changes
Breaking changes 2
All tools are used unless allowed_tools is explicitly specified.
HTTP requests no longer retry on 429 responses; retries are limited to 5xx responses.
New APIs and options 2
Adds an API to retrieve high-level information about an organization, similar to the existing user overview.
A block_size parameter was added to the HfFileSystem constructor.
Performance 1
Listing files with glob() is optimized to make fewer /tree calls.
Behavior and default changes 1
Pickling an HfFileSystem instance now preserves its cache, so distributed workers do not have to rebuild it.
Fixes and other changes 1
HTTP backoff now retries on ChunkedEncodingError.