unstale

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 init

@unstale/cli on npm

huggingface-hub 2122 changes

Breaking changes 31

  • When domains is omitted, the webhook now watches both domains.

    2.4.0release notes

  • Rejects filenames containing ../ or absolute paths so they cannot resolve outside the cache folder.

    2.4.0release notes

  • httpx timeouts now raise InferenceTimeoutError as documented instead of exposing the raw httpx timeout error.

    2.3.0release notes

  • Prints one snapshot and exits by default instead of streaming until the job completes; use -f/--follow for live stats.

    2.2.0release notes

  • Listing a newly created empty bucket returns an empty list instead of raising FileNotFoundError.

    2.2.0release notes

  • Raises FileNotFoundError instead of ValueError when the checkpoint path does not exist.

    2.2.0release notes

  • Raises ValueError when given an empty list.

    2.2.0release notes

  • The CLI command was renamed from hf spaces zero-gpu-quota to hf spaces zero-gpu quota.

    2.1.1release notes

  • Include and exclude patterns are case-sensitive on all platforms.

    2.1.0release notes

  • A bare --secrets NAME now raises an error if the named secret is not set locally.

    2.1.0release notes

  • 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.

    2.1.0release notes

  • The space_storage parameter is removed; use space_volumes.

    2.0.0release notes

  • The deprecated API is removed; use duplicate_repo.

    2.0.0release notes

  • The command is removed; use --status or --label.

    2.0.0release notes

  • The filter option is removed; use --status or --label.

    2.0.0release notes

  • The command is removed; use hf repos.

    2.0.0release notes

  • The command is removed; use hf repos delete-files.

    2.0.0release notes

  • The --storage option is removed; use --volume.

    2.0.0release notes

  • The --storage option is removed; use --volume.

    2.0.0release notes

  • The --claude option is removed; Claude Code installation is now automatic.

    2.0.0release notes

  • The --claude option is removed; Claude Code installation is now automatic.

    2.0.0release notes

  • The command is removed; use hf upload.

    2.0.0release notes

  • 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.

    2.0.0release notes

  • The CLI entry point is removed; use hf.

    2.0.0release notes

  • Boolean token values are no longer accepted; pass a token string or None.

    2.0.0release notes

  • PROTECTED is removed; use AUTHENTICATED. Passing type="protected" to create_inference_endpoint now raises ValueError.

    2.0.0release notes

  • The model_name parameter is removed; use search instead.

    2.0.0release notes

  • The deprecated API is removed; use parse_hf_uri.

    2.0.0release notes

  • The deprecated API is removed; use the volume APIs.

    2.0.0release notes

  • The stop_sequences parameter is removed; use stop.

    2.0.0release notes

  • The deprecated API is removed; use upload_folder.

    2.0.0release notes

Security 1

  • Expose Job ports for token-protected access at creation time or on a running Job.

    2.1.0release notes

New APIs and options 30

  • Set this environment variable to 1 to turn extension update checks off.

    2.4.0release notes

  • 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.

    2.3.0release notes

  • The create, comment, and edit commands accept repeatable --attach FILE[#alt text] options and add uploaded media URLs to the discussion body.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • Exported from the top-level package so it can be imported directly from huggingface_hub.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • Snapshot output supports json, agent, and quiet formats, which output the raw API metrics.

    2.2.0release notes

  • Adds a follow parameter defaulting to False, so the method returns the current sample; pass True to stream until the job completes.

    2.2.0release notes

  • Jobs can retry automatically on failure using the new attempts parameter.

    2.1.0release notes

  • create_bucket now accepts visibility.

    2.1.0release notes

  • Specify the GGUF file when deploying an exact catalog recipe.

    2.1.0release notes

  • Deploy an exact catalog recipe by supplying its recipe_id.

    2.1.0release notes

  • duplicate_repo now supports resource_group_id.

    2.1.0release notes

  • Expose Job ports for unauthenticated access at creation time or on a running Job.

    2.1.0release notes

  • Retrieve ZeroGPU quota values in GPU-seconds, including remaining quota and reset time.

    2.1.0release notes

  • Specify the GGUF file when deploying a catalog recipe.

    2.1.0release notes

  • Select a catalog recipe when deploying an inference endpoint.

    2.1.0release notes

  • Expose token-protected and public ports on a running Job.

    2.1.0release notes

  • Start a fresh Job from an existing Job's saved spec.

    2.1.0release notes

  • Specify how many times a Job retries on failure.

    2.1.0release notes

  • Change a scheduled Job's cron expression or preset without recreating it.

    2.1.0release notes

  • Check ZeroGPU quota from the CLI; the command also hints about purchasing credits when quota is running low.

    2.1.0release notes

  • Job-triggered webhooks now support secrets.

    2.1.0release notes

  • Start a fresh Job from an existing Job's saved spec, including secrets and hardware settings.

    2.1.0release notes

  • Manage exposed ports on a running Job.

    2.1.0release notes

  • Change a scheduled Job's cron expression or preset without recreating the Job.

    2.1.0release notes

  • The quota method returns a dataclass containing ZeroGPU quota values in GPU-seconds.

    2.1.0release notes

  • Import the HTTP module from huggingface_hub.utils to write code that supports v1.x and v2.x.

    2.0.0release notes

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.

    2.3.0release notes

  • Planning cache pruning no longer scales quadratically with the number of files per revision.

    2.2.0release notes

  • Planning cache removal no longer scales quadratically with the number of files per revision.

    2.2.0release notes

  • 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().

    2.1.0release notes

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.

    2.4.0release notes

  • Lists installed and latest extension commits in VERSION and LATEST columns and hints when extensions are outdated.

    2.4.0release notes

  • 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.

    2.4.0release notes

  • A private repo accessed without a token now gets an authentication hint in the repository-not-found error.

    2.4.0release notes

  • In interactive terminals, shows the Hub scheduling status message and wait duration while a Job waits for hardware.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • In interactive terminals, shows the Hub scheduling status message and wait duration while a Job waits for hardware.

    2.3.0release notes

  • Uploads and commits to kernel repos are now allowed.

    2.3.0release notes

  • Warns when allow or ignore patterns match no files.

    2.2.0release notes

  • When authentication identity lookup fails, the CLI suggests hf auth login and aligns its not-logged-in message with hf auth token.

    2.1.0release notes

  • httpx2 uses the operating system's certificate trust store by default; custom CA bundles via SSL_CERT_FILE or SSL_CERT_DIR still work.

    2.0.0release notes

Tooling 4

  • Shows unreferenced shared blobs left behind by older huggingface_hub versions and points to hf cache prune.

    2.3.0release notes

  • The package is now installed on Windows ARM64.

    2.2.0release notes

  • The command prints one row per recipe and supports catalog filters.

    2.1.0release notes

  • The CLI now hints to use --global after local add or update operations.

    2.1.0release notes

Fixes and other changes 41

  • On Windows, piped or redirected output no longer crashes with UnicodeEncodeError instead of listing files that failed verification.

    2.4.0release notes

  • Local-dir checksum verification skips .cache/huggingface/ metadata, so --fail-on-extra-files no longer fails on every clean download.

    2.4.0release notes

  • Recreates an extension's virtual environment when its Python no longer starts, even if no newer commit exists.

    2.4.0release notes

  • Webhook creation no longer requires passing --domain repo, and discussion watching uses the accepted value discussion.

    2.4.0release notes

  • find(detail=True) now returns file info when given a file path instead of an empty dict.

    2.4.0release notes

  • AccessRequest.username and AccessRequest.fullname are typed str | None because repos that hide usernames can return requests without requester names.

    2.3.0release notes

  • Runs provider get_response calls in a thread so blocking queue-based providers do not freeze the event loop while waiting for results.

    2.3.0release notes

  • Adds or copies are no longer dropped when their unchanged content is re-added at a path also deleted in the same commit.

    2.3.0release notes

  • Outdated local files are now reported as downloads in dry runs.

    2.3.0release notes

  • Cached listings no longer cause find() to silently skip folders whose names share a prefix with another folder.

    2.3.0release notes

  • No longer crashes when the parent listing is outdated, fixing pushes to a new bucket that previously failed after uploading data files.

    2.3.0release notes

  • 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.

    2.3.0release notes

  • In interactive terminals, shows the Hub scheduling status message and wait duration while a Job waits for hardware.

    2.3.0release notes

  • Methods for webhooks, access requests, user and org info, followers, and members now respect a custom endpoint instead of sending requests to huggingface.co.

    2.3.0release notes

  • Reused InferenceClient instances no longer retain every non-streaming response in memory until close().

    2.3.0release notes

  • 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.

    2.3.0release notes

  • huggingface_hub officially supports Python 3.15; Python 3.10 remains the minimum version.

    2.3.0release notes

  • Templates and metadata are read as UTF-8, avoiding a UnicodeDecodeError under the C locale that could break checkpoint saving in TRL.

    2.3.0release notes

  • Fixes a race that could skip the first scheduled push.

    2.2.0release notes

  • The CLI reads the file as UTF-8 and strips the BOM.

    2.2.0release notes

  • On Windows, quoted glob patterns are no longer expanded into local file names before reaching the command.

    2.2.0release notes

  • Without -f, logs no longer hang while the job keeps printing.

    2.2.0release notes

  • Prints [] when no job is running.

    2.2.0release notes

  • No longer fails when one of the requested jobs has finished.

    2.2.0release notes

  • Uploads existing paths containing glob characters as-is.

    2.2.0release notes

  • Concurrent downloads now see the resolved version, preventing parallel downloads from incorrectly skipping Xet.

    2.2.0release notes

  • With refresh=True, clears cached not-found results so newly created repos, branches, or buckets are recognized.

    2.2.0release notes

  • Clears cached not-found results for the specified path, so newly created repos, branches, or buckets are recognized.

    2.2.0release notes

  • Directory listings replace cached listings rather than append, avoiding duplicates, stale deleted files, and incorrect bucket-folder listings.

    2.2.0release notes

  • Card validation now respects the configured endpoint.

    2.2.0release notes

  • Redirect handling now considers the port.

    2.2.0release notes

  • Works offline with a pinned revision.

    2.2.0release notes

  • Scalar tags are no longer split into a single-character list.

    2.1.0release notes

  • Fixes lexical siblings being treated as an existing destination directory.

    2.1.0release notes

  • A missing remote file no longer leaves an empty local file behind.

    2.1.0release notes

  • The first pagination page is now retried as well.

    2.1.0release notes

  • Errors now report the correct repo_id for query strings and download URLs.

    2.1.0release notes

  • Validation now accepts bare typing.List, typing.Dict, and typing.Set.

    2.1.0release notes

  • Token names are stored as UTF-8 instead of locale encoding.

    2.1.0release notes

  • Logging configuration should target the httpcore2 logger rather than the previous HTTP logger.

    2.0.0release notes

  • Logging configuration should target the httpx2 logger rather than the previous HTTP logger.

    2.0.0release notes

huggingface-hub 1634 changes

Breaking changes 106

  • Batch operations now raise BucketBatchError when a batch reports failed operations.

    1.33.0release notes

  • The legacy keyword remains but is ignored, emits a FutureWarning, and is no longer included as a top-level payload field.

    1.33.0release notes

  • 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.

    1.33.0release notes

  • The repo_id length limit now applies to the namespace as well.

    1.33.0release notes

  • 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.

    1.33.0release notes

  • The safe parameter now defaults to True, always using the safetensors loader.

    1.32.0release notes

  • Path validation rejects .. segments anywhere in path_in_repo, preventing embedded path traversal in uploads.

    1.32.0release notes

  • Validation now restricts repository IDs to ASCII word characters, rejecting non-ASCII IDs client-side.

    1.32.0release notes

  • The pickle deserialization path now defaults to weights_only=True; unsafe combinations raise explicit errors instead of silently falling through.

    1.32.0release notes

  • Recursive removal no longer deletes lexical siblings of the requested prefix.

    1.31.0release notes

  • Validates remote filenames before writing locally; unsafe paths now raise ValueError on all platforms, including downloads to an explicitly named file or file object.

    1.31.0release notes

  • The CLI raises an explicit error for shell-script extensions on Windows.

    1.31.0release notes

  • Deprecated labels and tags were removed from docstrings and the signature.

    1.29.0release notes

  • This constant is removed; code that reads it directly will now get an AttributeError.

    1.28.0release notes

  • The minimum hf-xet version is raised to 1.5.2 to avoid fresh installs receiving the version that can hang on poor networks.

    1.27.0release notes

  • Passing token=False is now rejected instead of silently ignored.

    1.26.0release notes

  • Downloads and uploads now reject absolute, drive-relative, root-relative, UNC and traversal filenames on all platforms to prevent writes outside the target directory.

    1.26.0release notes

  • Sandbox jobs no longer receive the HF token by default; set forward_hf_token=True to opt in to forwarding it.

    1.26.0release notes

  • Streaming a missing file now raises FileNotFoundError.

    1.25.0release notes

  • Uses --sdk instead of --space-sdk in the CLI for consistency.

    1.23.0release notes

  • Replaced by --sdk in the CLI for consistency.

    1.23.0release notes

  • Pattern matching is case-sensitive on every OS; on Windows, patterns such as *.PDF no longer match file.pdf.

    1.22.0release notes

  • Removes the black-forest-labs, clarifai, hyperbolic, nebius, nvidia, and sambanova providers because the Hub no longer routes to them.

    1.22.0release notes

  • Raises IncompleteSnapshotError when the Hub is unreachable and the local snapshot lacks requested files, rather than silently returning a partial folder.

    1.22.0release notes

  • Returns a lazy Iterable[JobInfo] instead of a list, fetching large result sets page by page; materialize it with list(...) if you need indexing.

    1.21.0release notes

  • Non-detached runs now exit with the Job outcome, including exit code 1 when the Job errors.

    1.20.0release notes

  • Large-folder uploads use a streamed, multi-commit pipeline with background uploads and commits, and a live progress bar.

    1.20.0release notes

  • The login link and code are rendered with plain IPython HTML, removing the ipywidgets dependency.

    1.20.0release notes

  • Rejects canonical single-segment repo IDs; use a namespace-qualified repo ID instead.

    1.20.0release notes

  • Folder uploads may create multiple adaptive commits; create_pr targets main, and a PR opens even if no changes have been committed.

    1.20.0release notes

  • 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.

    1.19.0release notes

  • 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.

    1.18.0release notes

  • The format choices are now auto, human, agent, json, and quiet; table and -q are removed.

    1.17.0release notes

  • JSON output flattens command to a string and status to a stage string.

    1.17.0release notes

  • The dataclass returned by list_jobs_hardware() is renamed from JobHardware to JobHardwareInfo.

    1.17.0release notes

  • The Together ASR inference task is removed.

    1.16.1release notesrelease notes

  • BucketUrl.handle is renamed to BucketUrl.uri, whose type is HfUri rather than str; use .to_uri() for the string form.

    1.16.0release notes

  • Single-segment repo IDs are no longer supported in HfFileSystem paths; use the namespace/name format.

    1.16.0release notes

  • The CLI raises an error when both --local-dir and --cache-dir are provided.

    1.16.0release notes

  • CLI -v flags no longer support single-segment repo IDs; use the namespace/name format.

    1.16.0release notes

  • Volume.to_hf_handle() is renamed to Volume.to_uri().

    1.16.0release notes

  • Raises an explicit EntryNotFoundError when the source path resolves to no files instead of silently succeeding with zero operations.

    1.14.0release notes

  • Folder copies now use rsync-style trailing slash semantics: a trailing slash copies only the folder contents, while omitting it nests the folder.

    1.14.0release notes

  • Replaces hf skills upgrade; use this command to update skills.

    1.14.0release notes

  • This command no longer exists; use hf skills update instead.

    1.14.0release notes

  • 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.

    1.13.0release notes

  • When given a repo ID, lists files inside the repo instead of listing repos; supports tree, recursive, size, and revision options.

    1.13.0release notes

  • 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.

    1.12.0release notes

  • Confirmation prompts now appear in human mode and require --yes in agent, JSON, or quiet modes, preventing scripts from hanging.

    1.11.0release notes

  • The minimum supported Python version is raised from 3.9 to 3.10.

    1.9.0release notes

  • The Homebrew formula for the Hugging Face CLI is now named hf; new users can install it with brew install hf.

    1.7.0release notes

  • Expand attributes are now restricted to official ModelInfo, DatasetInfo, and SpaceInfo attributes.

    1.7.0release notes

  • A general repository duplication method replaces the previous duplicate_space method.

    1.6.0release notes

  • The discussion viewing command is now named info.

    1.6.0release notes

  • Duplicate model, dataset, or Space repositories with one unified CLI command.

    1.6.0release notes

  • The deprecated direction argument has been removed.

    1.6.0release notes

  • The deprecated direction argument has been removed.

    1.6.0release notes

  • The deprecated direction argument has been removed.

    1.6.0release notes

  • Requires task_id when constructing an EvalResultEntry.

    1.5.0release notes

  • Removes the old Go-template format syntax; use -q for IDs or JSON output with jq for custom extraction.

    1.5.0release notes

  • Organization info replaces the deprecated is_enterprise boolean with a plan string.

    1.5.0release notes

  • The direction parameter is deprecated and ignored; sorting is always descending.

    1.3.0release notes

  • When creating a repository with the CLI, private now defaults to None, allowing the server to apply an organization’s private-by-default setting.

    1.2.3release notes

  • The truncation_direction parameter now uses lowercase left/right values instead of Left/Right; the async counterpart was updated as well.

    1.2.0release notes

  • 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.

    1.2.0release notes

  • list_user_access returns paginated results to reflect a server-side API update; this is a breaking change.

    1.1.4release notes

  • The aiohttp dependency has been removed from the package.

    1.0.1release notes

  • The inference extra has been removed, so developers can no longer install it as an optional dependency group.

    1.0.1release notes

  • The [cli] extra has been removed because the CLI now ships with the core huggingface_hub package.

    1.0.0release notes

  • Custom HTTP backend configuration should migrate to set_client_factory() and set_async_client_factory().

    1.0.0upgrade guide

  • constant.hf_cache_home has been removed; use constants.HF_HOME instead.

    1.0.0release notes

  • The get_token_permission API has been removed because it became unnecessary with fine-grained tokens.

    1.0.0release notes

  • The new CLI provides this command for authentication.

    1.0.0upgrade guide

  • The new CLI provides this command to list cache entries.

    1.0.0upgrade guiderelease notes

  • The new CLI provides this command to remove cache entries.

    1.0.0upgrade guide

  • Removes selected cached items, replacing hf scan delete.

    1.0.0release notes

  • The new CLI provides a command for file downloads.

    1.0.0upgrade guide

  • The force_filename parameter has been removed from hf_hub_download and snapshot_download, including mixins.

    1.0.0release notes

  • The local_dir_use_symlinks parameter has been removed from hf_hub_download and snapshot_download, including mixins.

    1.0.0release notes

  • The resume_download parameter has been removed from hf_hub_download and snapshot_download, including mixins.

    1.0.0release notes

  • The new CLI provides a command for repository management.

    1.0.0upgrade guiderelease notes

  • The cache scanning command has been removed in favor of hf cache ls.

    1.0.0release notes

  • The cache deletion command has been removed in favor of hf cache rm.

    1.0.0release notes

  • The legacy transfer package is fully removed and replaced by hf_xet.

    1.0.0upgrade guiderelease notes

  • The new CLI provides a command for file uploads.

    1.0.0upgrade guide

  • A redesigned Typer-based CLI replaces huggingface-cli with a resource-action interface for Hub operations.

    1.0.0upgrade guide

  • HfFolder token management is replaced by explicit login(), logout(), and get_token() functions.

    1.0.0upgrade guide

  • The long-deprecated HfFolder class has been removed.

    1.0.0release notes

  • The HTTP backend migrates from requests to httpx, bringing native HTTP/2 support, thread-safe connection reuse, and a unified synchronous and asynchronous API.

    1.0.0upgrade guiderelease notes

  • The legacy CLI is deprecated and replaced by the hf command.

    1.0.0upgrade guide

  • The huggingface-cli command has been removed; use the hf command instead.

    1.0.0release notes

  • The long-deprecated InferenceAPI class has been removed.

    1.0.0release notes

  • The is_write_action argument has been removed from build_hf_headers methods.

    1.0.0release notes

  • Keras 2.x-related code and utilities have been removed.

    1.0.0release notes

  • The language argument has been removed from list_models.

    1.0.0release notes

  • The library argument has been removed from list_models.

    1.0.0release notes

  • The tags argument has been removed from list_models.

    1.0.0release notes

  • The task argument has been removed from list_models.

    1.0.0release notes

  • The login methods' new_session argument has been renamed to skip_if_logged_in.

    1.0.0release notes

  • Login methods now require keyword arguments.

    1.0.0release notes

  • The minimum supported Python version is now 3.9 instead of 3.8.

    1.0.0release notes

  • The Git-based Repository class is removed; the notes point to HTTP-based methods such as upload_file() and create_commit() instead.

    1.0.0upgrade guiderelease notes

  • TensorFlow-related code and dependencies have been removed.

    1.0.0release notes

  • update_repo_visibility has been removed; use update_repo_settings instead.

    1.0.0release notes

  • The use_auth_token parameter is no longer supported; use token instead.

    1.0.0release notes

  • The write_permission argument has been removed from the login method.

    1.0.0release notes

Security 13

  • Secret values no longer end up in argv when using --secrets.

    1.32.0release notes

  • 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.

    1.32.0release notes

  • The sandbox server binary is pinned by digest and verified before it runs as PID 1.

    1.32.0release notes

  • 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.

    1.30.0release notes

  • Remote file paths are validated before bucket sync writes them locally, preventing malicious or compromised buckets from escaping the chosen destination directory.

    1.29.0release notes

  • Safetensors shard detection now uses consistent matching semantics, preventing an extension-only .safetensors shard from falling back to pickle deserialization.

    1.29.0release notes

  • Catastrophic backtracking in REGEX_YAML_BLOCK was fixed to address ReDoS.

    1.25.0release notes

  • Validates skill names from marketplace payloads before filesystem work as defense-in-depth against path traversal.

    1.23.0release notes

  • Templates recommended as private, like JupyterLab, create Spaces privately by default unless visibility is explicitly chosen.

    1.23.0release notes

  • Creates a dedicated VM sandbox for running commands and moving files, built on Jobs.

    1.22.0release notes

  • Scopes a short-lived Hub token obtained through OIDC exchange, allowing CI workflows to authenticate without storing an HF_TOKEN secret.

    1.19.0release notes

  • 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.

    1.16.0release notes

  • 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.

    1.16.0release notes

Deprecations 14

  • The flag is deprecated; it remains accepted as a no-op and prints a warning.

    1.33.0release notes

  • The -f/--filter option is deprecated, accepted but ignored with a warning, and will be removed in a future release.

    1.30.0release notes

  • Deprecated in favor of hf upload for very large and resumable uploads.

    1.22.0release notes

  • Deprecated in favor of upload_folder, which handles very large and resumable uploads.

    1.22.0release notes

  • 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.

    1.21.0release notes

  • Passing protected as the endpoint type emits a FutureWarning.

    1.20.0release notes

  • The function is now softly deprecated.

    1.20.0release notes

  • Its deprecation warning is now visible to users.

    1.15.0release notes

  • Deprecates model_name, which now emits a warning; use search instead. Removal is planned for 2.0.

    1.11.0release notes

  • Adds the replacement command for hf repo-files delete.

    1.5.0release notes

  • The command is hidden from help and displays a deprecation warning; use hf repo delete-files instead.

    1.5.0release notes

  • Replaces the hf repo command; the old command still works but displays a deprecation warning.

    1.5.0release notes

  • Adds a warning related to repository commit count.

    1.3.3release notesrelease notes

  • The old InferenceApi class is superseded by the more feature-complete InferenceClient.

    1.0.0upgrade guide

New APIs and options 283

  • AWS PrivateLink account settings are sent under privateService.accountId; the region is required when the account ID is set.

    1.33.0release notes

  • AWS PrivateLink region settings are sent under privateService.region, independent of the compute region.

    1.33.0release notes

  • The watch option now accepts bucket as a watched item type.

    1.33.0release notes

  • Adds a container registry password option for Inference Endpoints.

    1.32.0release notes

  • Adds a container registry username option for Inference Endpoints.

    1.32.0release notes

  • Accepts hf:// file URIs to remove a single cached file across revisions, deleting its blob only when no other cached file references it.

    1.32.0release notes

  • Set this environment variable to opt out of cross-repository Xet blob deduplication.

    1.32.0release notes

  • Adds hf --skills as an alias for hf skills preview.

    1.32.0release notes

  • Exposes the network group on JobInfo.

    1.32.0release notes

  • Kernel repos are supported by hf cache ls, rm and prune; --repo-type kernel works for hf download and hf cache verify.

    1.32.0release notes

  • UV scripts can declare job launch settings in a PEP 723 header; hf jobs uv run reads them at submit time, with CLI flags taking precedence and collection fields merged entry by entry.

    1.32.0release notes

  • Dedicated sandboxes accept custom Job labels using the --label KEY=VALUE syntax.

    1.31.0release notes

  • 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().

    1.31.0release notes

  • 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.

    1.31.0release notes

  • Adds repeatable --label key=value filtering for scheduled jobs.

    1.30.0release notes

  • Adds --name as a shortcut for filtering by the name label.

    1.30.0release notes

  • Adds --status filtering for active or suspended scheduled jobs.

    1.30.0release notes

  • Adds a labels argument for filtering scheduled jobs.

    1.30.0release notes

  • Change an existing bucket's visibility from the CLI using either --private or --public.

    1.29.0release notes

  • Update an existing bucket's visibility between private and public.

    1.29.0release notes

  • 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.

    1.28.0release notes

  • Adds feature-extraction support for the deepinfra Inference Provider.

    1.28.0release notes

  • Adds text-to-speech support for the deepinfra Inference Provider.

    1.28.0release notes

  • Adds an option to set data parallelism when deploying an Inference Endpoint.

    1.28.0release notes

  • Adds an option to select the engine when deploying an Inference Endpoint.

    1.28.0release notes

  • Adds an option to set tensor parallelism when deploying an Inference Endpoint.

    1.28.0release notes

  • Lists valid Inference Endpoint hardware combinations, prices, and namespace accelerator quotas, filtered by default to hardware you can deploy on.

    1.28.0release notes

  • Adds support for setting a custom image when updating an Inference Endpoint.

    1.28.0release notes

  • Adds an option to set data parallelism when updating an Inference Endpoint.

    1.28.0release notes

  • Adds an option to select the engine when updating an Inference Endpoint.

    1.28.0release notes

  • Adds support for setting the health route when updating an Inference Endpoint.

    1.28.0release notes

  • Adds support for setting the port when updating an Inference Endpoint.

    1.28.0release notes

  • Adds an option to set tensor parallelism when updating an Inference Endpoint.

    1.28.0release notes

  • Returns the hardware data as InferenceEndpointHardware objects that can be filtered programmatically.

    1.28.0release notes

  • The standalone installers install the hf-cli skill globally by default; pass this option to skip installation.

    1.27.0release notes

  • Adds region as an expandable Space property, typed as Literal["us", "eu"] | None.

    1.27.0release notes

  • Set this environment variable to 1 to silence the local skill update hint.

    1.27.0release notes

  • Adds the container_args parameter for changing an endpoint's container arguments after deployment.

    1.27.0release notes

  • Adds the container_command parameter for changing an endpoint's container command after deployment.

    1.27.0release notes

  • 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.

    1.26.0release notes

  • Adds resource-group assignment to hf jobs run, hf jobs uv run, and hf jobs scheduled run.

    1.26.0release notes

  • Collections and Jobs APIs accept resource_group_id to assign organization resource groups for access control, cost attribution, and spending limits.

    1.26.0release notes

  • Assigns a collection to a resource group after creation; passing None removes it.

    1.26.0release notes

  • A timeout parameter was added to safetensors metadata methods.

    1.25.0release notes

  • Jobs CLI commands support an optional --name flag to label new or existing Jobs and make them easier to find in the UI.

    1.24.0release notes

  • 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.

    1.24.0release notes

  • Creates a Space from an official Hub template by passing its repo_id or short name; the Space SDK is inferred from the template.

    1.23.0release notes

  • Adds a utility for retrieving a cached repository tree.

    1.23.0release notes

  • Updates one named CLI extension or checks all installed extensions and updates those behind; updates are applied in place.

    1.23.0release notes

  • Can filter listed models by inference provider.

    1.23.0release notes

  • Adds an apps filter for listed models.

    1.23.0release notes

  • Adds a gated-model filter for listed models.

    1.23.0release notes

  • Adds a pipeline-tag filter for listed models.

    1.23.0release notes

  • Creates a Space from an official Hub template using its repo_id or short name.

    1.23.0release notes

  • Lists official Hub Space templates available for creating a Space.

    1.23.0release notes

  • Exposes snapshot_path on IncompleteSnapshotError.

    1.23.0release notes

  • Lists official Hub Space templates so developers can choose a template when creating a Space.

    1.23.0release notes

  • Adds automatic-speech-recognition support for the deepinfra inference provider.

    1.22.0release notes

  • Adds the base_model filter parameter; passing base_model=False includes fine-tuned or derivative repos that declare a parent model.

    1.22.0release notes

  • Removes leftover .incomplete files automatically.

    1.22.0release notes

  • Adds a CLI command to edit discussions.

    1.22.0release notes

  • Adds a command to trigger scheduled jobs on demand.

    1.22.0release notes

  • Adds CLI support for creating, using, copying files to, and terminating sandboxes.

    1.22.0release notes

  • Adds a CLI command for starting background processes in sandboxes.

    1.22.0release notes

  • Exposes the out singleton publicly and adds its log method.

    1.22.0release notes

  • Adds a logging method to the public out singleton.

    1.22.0release notes

  • Provides a port proxy to reach a server inside a sandbox over HTTP or WebSocket.

    1.22.0release notes

  • Packs many CPU sandboxes into shared host VMs for fan-out workloads.

    1.22.0release notes

  • Supports running sandbox processes in the background.

    1.22.0release notes

  • Adds a helper to sync a local directory to a jobs-artifacts bucket and mount it.

    1.22.0release notes

  • Adds label filtering to the job-listing command.

    1.21.0release notes

  • Adds a limit option for paginating job listings; 0 means no limit.

    1.21.0release notes

  • Adds status filtering to the job-listing command.

    1.21.0release notes

  • Adds server-side label filtering to list_jobs(), so matching jobs can be fetched without filtering the full result set locally.

    1.21.0release notes

  • Adds server-side status filtering to list_jobs(), so matching jobs can be fetched without filtering the full result set locally.

    1.21.0release notes

  • Adds a parameter for specifying custom container arguments.

    1.20.0release notes

  • Adds a parameter for specifying the custom container command.

    1.20.0release notes

  • Running login with JSON format streams structured device-code and terminal authentication events for AI agents.

    1.20.0release notes

  • Configures the command for custom-container deployment.

    1.20.0release notes

  • Configures arguments for the custom container.

    1.20.0release notes

  • Deploys custom Docker containers using the specified image.

    1.20.0release notes

  • Injects environment variables during custom-container deployment.

    1.20.0release notes

  • Injects environment variables from a file during custom-container deployment.

    1.20.0release notes

  • Configures the health route for custom-container deployment.

    1.20.0release notes

  • Configures the port for custom-container deployment.

    1.20.0release notes

  • Injects secrets during custom-container deployment.

    1.20.0release notes

  • Injects secrets from a file during custom-container deployment.

    1.20.0release notes

  • Waits for one or more Jobs to reach a terminal stage; exits 0 only if all waited-on Jobs completed.

    1.20.0release notes

  • Waits for a Space to settle; exits 0 if it is RUNNING and non-zero otherwise.

    1.20.0release notes

  • A dedicated error provides cleaner, actionable messages when a Job cannot be found.

    1.20.0release notes

  • Adds an endpoint argument to parse URLs from self-hosted Hub instances.

    1.20.0release notes

  • Jobs can be launched with SSH access when an SSH key is registered.

    1.20.0release notes

  • Waits for one or more Jobs and returns final JobInfo even on failure; raises TimeoutError only on timeout.

    1.20.0release notes

  • Waits until a Space leaves an intermediate stage and settles on a final state.

    1.20.0release notes

  • 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.

    1.19.0release notes

  • Lets providers other than GitHub Actions pass a pre-minted ID token for OIDC exchange.

    1.19.0release notes

  • Accepts an hf:// URI in place of the positional repo ID; the URI can encode repo type, revision, and file path.

    1.19.0release notes

  • Job responses now include the URLs for exposed ports.

    1.19.0release notes

  • Accepts exposed port numbers to make job container ports reachable through the public jobs proxy.

    1.19.0release notes

  • 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.

    1.18.0release notes

  • Adds a method to convert an HfUri to a web URL.

    1.18.0release notes

  • Accepts src_repo_id and src_repo_type to specify a cross-repository source for a copy operation.

    1.17.0release notes

  • Lists models, datasets, Spaces, and buckets with storage usage, sorted by storage usage.

    1.17.0release notes

  • Filters repository listings by namespace.

    1.17.0release notes

  • Supports searching repository listings.

    1.17.0release notes

  • Filters repository listings by type.

    1.17.0release notes

  • Opens an SSH session directly into a Space's Dev Mode container and prompts to enable Dev Mode if needed.

    1.17.0release notes

  • Prints the SSH command without running it.

    1.17.0release notes

  • Forwards a specific SSH key.

    1.17.0release notes

  • Jobs now have a JobHardware enum independent of SpaceHardware, allowing the two hardware catalogs to diverge.

    1.17.0release notes

  • Adds rtx-pro-6000 hardware flavors for Jobs.

    1.17.0release notes

  • Adds an API to update job labels.

    1.17.0release notes

  • Adds an API to update scheduled job labels.

    1.17.0release notes

  • Bypasses table truncation entirely.

    1.16.0release notesrelease notes

  • Together now supports feature extraction on Inference Providers.

    1.16.0release notes

  • The cache rm command now supports hf:// URIs.

    1.16.0release notes

  • A public helper is available for validating hf:// URIs.

    1.16.0release notes

  • JobHardware gains an ephemeral_storage field.

    1.16.0release notes

  • PaperInfo now exposes linked repositories.

    1.16.0release notes

  • A centralized helper provides consistent parsing of hf:// mount URIs.

    1.16.0release notes

  • A centralized helper provides consistent parsing of hf:// URIs, including treating @ in filenames as literal.

    1.16.0release notes

  • Accepts an optional region argument to pin a new bucket to the us or eu cloud region.

    1.15.0release notes

  • Accepts an optional region argument to pin a new repo to the us or eu cloud region.

    1.15.0release notes

  • Accepts --region to pin a new bucket to the us or eu cloud region.

    1.15.0release notes

  • Accepts --region to pin a new repo to the us or eu cloud region.

    1.15.0release notes

  • Lists marketplace skills and shows whether each is installed in the supported project, global, and Claude locations.

    1.15.0release notes

  • Adds CLI commands to add, list, and delete write-only Space secrets, including support for multiple flags and dotenv files.

    1.14.0release notes

  • Adds hf -v to print the CLI version.

    1.14.0release notes

  • Returns Space secret metadata, including key, description, and updated timestamp, without revealing secret values.

    1.14.0release notes

  • Accepted globally by every hf command; auto selects human output in interactive terminals and agent output when invoked by an AI agent.

    1.13.0release notes

  • Fetches and prints a dataset repo README, with options to output metadata or prose only.

    1.13.0release notes

  • Surfaces model scores submitted to a benchmark dataset so developers can compare models from the terminal.

    1.13.0release notes

  • Set to 1 to silence the CLI startup update check.

    1.13.0release notes

  • Fetches and prints a model repo README; --metadata and --text split structured metadata from prose.

    1.13.0release notes

  • Fetches and prints a Space repo README, with options to output metadata or prose only.

    1.13.0release notes

  • Lists available hardware flavors with pricing to help developers discover options.

    1.13.0release notes

  • Pauses a Space from the terminal and prompts for confirmation; -y skips the prompt.

    1.13.0release notes

  • Restarts a Space, optionally with a clean rebuild; prompts for confirmation unless -y is used.

    1.13.0release notes

  • Configures Space hardware through the settings command.

    1.13.0release notes

  • Configures Space sleep time through the settings command.

    1.13.0release notes

  • Detects whether hf was installed through Homebrew, the standalone installer, or pip and runs the matching upgrade command; replaces the blocking startup prompt.

    1.13.0release notes

  • Accepted globally by every hf command for JSON output.

    1.13.0release notes

  • Parses hf:// volume mount specifications without network calls; results round-trip via .to_uri().

    1.13.0release notes

  • Parses valid hf:// URI shapes, including type prefixes, revisions, and repo paths, without network calls; results round-trip via .to_uri().

    1.13.0release notes

  • The -q / --quiet output flag is handled globally and accepted by every hf command.

    1.13.0release notes

  • DeepInfra support is added for Inference Providers.

    1.12.2release notesrelease notes

  • The ExpandDatasetProperty_T type now includes mainSize.

    1.12.0release notes

  • Use --search to filter listed buckets by name.

    1.12.0release notes

  • Pass search to list_buckets() to filter buckets by name without listing and filtering them client-side.

    1.12.0release notes

  • Adds programmatic retrieval of Space run or build logs, with an option to stream logs in real time.

    1.11.0release notes

  • Adds a command that prints the current token to stdout for piping into other commands.

    1.11.0release notes

  • Adds a CLI command to retrieve run or build logs and stream them in real time.

    1.11.0release notes

  • Adds CLI semantic search for Spaces, with options to filter by SDK and show descriptions or JSON output.

    1.11.0release notes

  • Adds commands to list, set, and delete volumes mounted in Spaces using the -v/--volume syntax.

    1.11.0release notes

  • Adds embedding-based semantic search for Spaces, finding relevant results based on what they do rather than only matching keywords in their names.

    1.11.0release notes

  • 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.

    1.10.0release notes

  • Copy files remotely between Buckets or from a repository to a Bucket without downloading and re-uploading.

    1.10.0release notes

  • Query information about a kernel repository using the Python API.

    1.10.0release notes

  • The Hub supports the kernel repository type with a limited set of methods, plus restricted creation and deletion.

    1.10.0release notes

  • Accepts space_volumes to configure mounted volumes when creating a Space.

    1.9.0release notes

  • Accepts space_volumes to configure mounted volumes when duplicating a Space.

    1.9.0release notes

  • Adds --format to force agent-friendly, JSON, or quiet CLI output.

    1.9.0release notes

  • Adds an environment variable to force the cache to use no symlinks.

    1.9.0release notes

  • Adds --volume and -v flags for mounting volumes when creating a Space.

    1.9.0release notes

  • Adds --volume and -v flags for mounting volumes when duplicating a Space.

    1.9.0release notes

  • Adds a --claude flag for installing a marketplace skill with Claude Code integration.

    1.9.0release notes

  • Supports installing skills directly from the Hugging Face skills marketplace.

    1.9.0release notes

  • Adds a command to upgrade all installed skills.

    1.9.0release notes

  • Adds an API to mount models, datasets, and storage buckets in a Space.

    1.9.0release notes

  • Adds a Volume type for specifying mounted Space volumes, including their type, source, mount path, and read-only status.

    1.9.0release notes

  • HfApi gains a method for dataset leaderboards.

    1.8.0release notes

  • HF Hub hardware flavors now include cpu-performance, sprx8, h200, and inf2x6.

    1.8.0release notes

  • The command can mount Hugging Face repositories and Storage Buckets in job containers.

    1.8.0release notes

  • Get structured JSON metadata for a paper from the CLI.

    1.8.0release notes

  • The papers listing command gains filters for week, month, and submitter.

    1.8.0release notes

  • Read full paper content as markdown from the CLI.

    1.8.0release notes

  • Search papers by keyword from the CLI.

    1.8.0release notes

  • Repositories can be created with explicit visibility options; protected visibility is available for Spaces only.

    1.8.0release notes

  • CLI commands accepting --type can use spaces/user/repo, datasets/user/repo, or models/user/repo instead of a repo ID plus type.

    1.8.0release notes

  • HfApi.create_repo, update_repo_settings, and duplicate_repo accept explicit visibility settings.

    1.8.0release notes

  • Jobs can mount Hugging Face repositories and Storage Buckets as volumes in their containers.

    1.8.0release notes

  • The command supports JSON output.

    1.7.2release notesrelease notes

  • Use --force to go through the full login flow again, for example to switch tokens.

    1.7.0release notes

  • Search GitHub repositories tagged with the hf-extension topic to discover extensions, with results sorted by stars and local installation status shown.

    1.7.0release notes

  • Adds a hidden --json shorthand for --format json.

    1.7.0release notes

  • Adds --format and --quiet options to the papers listing command.

    1.7.0release notes

  • Filter through the Hugging Face API and CLI by number of parameters.

    1.7.0release notes

  • Adds a used_storage field to ModelInfo, DatasetInfo, and SpaceInfo.

    1.7.0release notes

  • Discover parquet file URLs for a dataset, optionally selecting a subset and split.

    1.6.0release notes

  • Query dataset parquet files with DuckDB from the CLI.

    1.6.0release notes

  • Manage discussions and pull requests from the CLI, including listing, viewing, creating, commenting, closing, reopening, renaming, and merging.

    1.6.0release notes

  • Install CLI extensions distributed as Python packages as well as standalone executables.

    1.6.0release notes

  • Enable or disable Space dev mode from the CLI; enabling waits for the Space to be ready and prints connection instructions.

    1.6.0release notes

  • Manage Hub webhooks from the terminal, including listing, inspecting, creating, updating, enabling, disabling, and deleting them.

    1.6.0release notes

  • HfFileSystem supports buckets, allowing developers to list, glob, download, stream, and upload bucket files through the familiar fsspec interface.

    1.6.0release notes

  • InferenceClient adds NVIDIA provider support.

    1.6.0release notes

  • Adds a notes field.

    1.5.0release notes

  • Adds the source_org field.

    1.5.0release notes

  • Adds CLI support for creating, listing, moving, and deleting buckets; uploading, downloading, and syncing files; and managing bucket contents with include/exclude patterns.

    1.5.0release notes

  • Adds commands to list, inspect, create, update, and delete collections and manage their items.

    1.5.0release notes

  • Adds table or JSON output selection to dataset listing.

    1.5.0release notes

  • Adds quiet output to dataset listing.

    1.5.0release notes

  • Adds table or JSON output selection to endpoint listing.

    1.5.0release notes

  • Adds quiet output to endpoint listing.

    1.5.0release notes

  • Adds an alias for the CLI extensions command.

    1.5.0release notes

  • Adds commands to install, run, list, and remove standalone CLI extensions hosted in GitHub repositories.

    1.5.0release notes

  • Adds -h as a short alias for --help.

    1.5.0release notes

  • Adds a command to list available job hardware.

    1.5.0release notes

  • Prints available logs and exits by default; use -f to stream logs.

    1.5.0release notes

  • Supports multi-GPU training commands including torchrun and accelerate launch.

    1.5.0release notes

  • Passes local script and configuration files to a job.

    1.5.0release notes

  • Adds labels and != negation to job filtering.

    1.5.0release notes

  • Accepts namespace/job_id format in jobs CLI commands.

    1.5.0release notes

  • Adds table or JSON output selection to model listing.

    1.5.0release notes

  • Adds quiet output to model listing.

    1.5.0release notes

  • Adds a command to list daily papers on the Hub.

    1.5.0release notes

  • Adds a command to install compact skills for AI coding agents, with support for central or project-level installation and Cursor.

    1.5.0release notes

  • Adds experimental hot-reload of Python files in a Space without a full rebuild and restart.

    1.5.0release notes

  • Adds table or JSON output selection to Space listing.

    1.5.0release notes

  • Adds quiet output to Space listing.

    1.5.0release notes

  • Adds --type as an alias for --repo-type.

    1.5.0release notes

  • Adds a hidden --version flag.

    1.5.0release notes

  • Adds accelerator parameter support for inference endpoints.

    1.5.0release notes

  • Adds bucket synchronization to HfApi for syncing files with bucket storage.

    1.5.0release notes

  • Adds a helper to serialize evaluation result entries to YAML format.

    1.4.0release notes

  • Adds a dataclass representing evaluation scores for the Hub evaluation results format.

    1.4.0release notes

  • Job filtering now supports labels and negation, including status!=error and label filters.

    1.4.0release notes

  • Adds an output format option to ls CLI commands.

    1.4.0release notes

  • Adds a command to add model or dataset items to a collection, optionally with a note.

    1.4.0release notes

  • Adds a command to create collections with a description and private setting.

    1.4.0release notes

  • Adds a command to delete a collection.

    1.4.0release notes

  • Adds a command to get collection information.

    1.4.0release notes

  • Adds a command to list collections with owner, limit, and sort options.

    1.4.0release notes

  • Supports multi-GPU training commands using torchrun and accelerate launch.

    1.4.0release notes

  • Allows local config files to be passed alongside scripts when running jobs.

    1.4.0release notes

  • Adds a command to list daily papers, filter by date, and sort by trending or publication date.

    1.4.0release notes

  • Adds a command to install the hf-cli skill for Claude Code, Codex, and OpenCode, centrally with agent-specific symlinks.

    1.4.0release notes

  • Adds support for setting a label in the Jobs API.

    1.4.0release notes

  • Adds a helper to parse YAML data into EvalResultEntry objects.

    1.4.0release notes

  • Adds repoType support when listing repository files.

    1.4.0release notes

  • Adds a command to list available hardware options.

    1.3.3release notesrelease notes

  • Adds a limit parameter to the list_papers API method.

    1.3.3release notesrelease notesrelease notes

  • Adds a programmatic way to list all available hardware options for Hugging Face Jobs.

    1.3.3release notes

  • Adds the num_papers field.

    1.3.3release notesrelease notesrelease notes

  • Adds support for text-to-image inference.

    1.3.2release notesrelease notesrelease notes

  • Adds dimensions to control output embedding size.

    1.3.1release notesrelease notesrelease notes

  • Adds the encoding_format parameter for inference output embeddings.

    1.3.1release notesrelease notesrelease notes

  • Adds a dedicated command for discovering datasets, including listing and viewing dataset information.

    1.3.0release notes

  • Adds a command that displays live CPU, memory, network, and GPU usage for running jobs.

    1.3.0release notes

  • Adds a dedicated command for discovering models, including listing and viewing model information.

    1.3.0release notes

  • Adds an --expand parameter to hf repo info.

    1.3.0release notes

  • Adds a command to list repositories.

    1.3.0release notes

  • Adds a dedicated command for discovering Spaces, including listing and viewing Space information.

    1.3.0release notes

  • Adds a method for fetching running-job metrics, including CPU, memory, network, and GPU usage.

    1.3.0release notes

  • The PowerShell standalone installer can install the transformers CLI alongside the huggingface_hub CLI when passed -WithTransformers.

    1.3.0release notes

  • The standalone installer can install the transformers CLI alongside the huggingface_hub CLI when passed --with-transformers.

    1.3.0release notes

  • Adds support for reading safetensors metadata from local folders.

    1.3.0release notes

  • Adds support for transcribing audio files using automatic speech recognition with the Replicate inference provider.

    1.2.0release notes

  • Adds the expand_info argument to HfFileSystem.

    1.2.0release notes

  • Adds a top-level alias for the HfFileSystem interface to make filesystem operations more convenient.

    1.2.0release notes

  • Adds configuration of scaling metrics and thresholds when deploying Inference Endpoints.

    1.2.0release notes

  • Adds a helper for checking whether offline mode is enabled, recommended instead of checking HF_HUB_OFFLINE directly.

    1.2.0release notes

  • Adds an API for accessing the daily papers feed, with filtering by week, month, or submitter and sorting by publication date or trending.

    1.2.0release notes

  • Makes RepoFile available at the package root for easier imports.

    1.2.0release notes

  • Makes RepoFolder available at the package root for easier imports.

    1.2.0release notes

  • Adds an optional cache to whoami.

    1.2.0release notes

  • Adds top-level hffs for opening files through HfFileSystem.

    1.1.7release notes

  • Collections can be added to collections by slug ID.

    1.1.5release notes

  • Additional arguments are passed through from HfApi download utils.

    1.1.3release notes

  • Limits results to the top N entries after sorting.

    1.1.0release notes

  • Adds sorting by access time, modification time, name, or size, with an optional order such as modified:asc.

    1.1.0release notes

  • Adds a command to verify cached files against Hub checksums, with options for repository type, revision, directory, and missing or extra files.

    1.1.0release notes

  • Adds commands to deploy, delete, update, monitor, pause, resume, and scale Inference Endpoints from the terminal.

    1.1.0release notes

  • A minimal PyPI package installs the hf CLI for isolated execution with tools such as uvx; importing hf in Python raises ImportError.

    1.1.0release notes

  • The fal provider now supports image-segmentation, including background removal with RMBG v2.0.

    1.1.0release notes

  • A utility for obtaining an asynchronous HTTP client has been added for async logic.

    1.0.0release notes

  • Cleans up detached, unreferenced cache revisions.

    1.0.0release notes

  • The --dry-run option previews files, download sizes, cached files, and total bandwidth requirements before downloading.

    1.0.0release notes

  • The new CLI provides this command for cloud compute.

    1.0.0upgrade guide

  • Adds an endpoint to list followers of an organization, similar to the existing user followers endpoint.

    1.0.0release notes

  • Use this factory API as the migration path for custom asynchronous HTTP backends.

    1.0.0upgrade guide

  • Use this factory API as the migration path for custom synchronous HTTP backends previously configured with configure_http_backend().

    1.0.0upgrade guide

  • Adds TypedDict validation by converting TypedDict values to dataclasses on the fly without mutating input data.

    1.0.0release notes

Performance 8

  • Imports are lazy, deferring heavy API implementation and optional dependencies until used; package and CLI imports are substantially faster.

    1.32.0release notes

  • Serializes model first so routers can resolve the provider from a small prefix instead of buffering a payload containing base64 images.

    1.27.0release notes

  • Optimizes parallel file transfer constants for better throughput.

    1.23.0release notes

  • Caches repository file listings on disk, reducing repeat downloads of a cached commit to one network call.

    1.22.0release notes

  • Download sync skips the local walk when delete is disabled.

    1.12.0release notes

  • Uploads avoid duplicate SHA-256 computation for model and dataset repositories and skip it for bucket uploads, improving large-file upload speed.

    1.7.0release notes

  • Downloads are now always multi-threaded, improving download speed by removing a previous parallelization limitation.

    1.1.0release notes

  • Chat Completion requests are now routed server-side, saving one HTTP call and centralizing provider routing logic.

    1.0.0release notes

Behavior and default changes 76

  • The lpath argument is optional for compatibility with fsspec>=2026.9.0.

    1.33.0release notes

  • Skills are installed to .agents/skills by default and symlinked into .claude/skills, so one command supports agents that load skills from .agents/skills.

    1.33.0release notes

  • Symlink support is published only after probing.

    1.33.0release notes

  • --format human now overrides agent auto-detection.

    1.32.0release notes

  • Sweeps shared Xet blob payloads that are no longer referenced by any cached repo.

    1.32.0release notes

  • Jobs network groups are now scoped to the namespace and resource group.

    1.32.0release notes

  • Transfers and command output are bounded to limit client resource use.

    1.32.0release notes

  • No longer requires the conversational tag; models tagged text-generation or image-text-to-text can now be served.

    1.30.0release notes

  • Inference Providers now send LoRA weights for fal-ai text-to-video.

    1.29.0release notes

  • The optional MCP extra now sets an upper bound of mcp<2.0.

    1.29.0release notes

  • A failing non-streaming inference call with a 504 now hints at using stream=True.

    1.29.0release notes

  • No longer requires --custom-image at deploy time and is now available when updating an endpoint.

    1.27.0release notes

  • Refreshes the hf-cli skill without restoring it if the user opted out or removed it.

    1.27.0release notes

  • The CLI warns when it detects an inconsistency in the cache.

    1.25.0release notes

  • 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.

    1.25.0release notes

  • 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.

    1.23.0release notes

  • 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.

    1.23.0release notes

  • Xet downloads show separate transfer and reconstruction progress bars, indicating network bytes arriving and buffered chunks being written to disk.

    1.23.0release notes

  • Flags leftover .incomplete files in cache listings.

    1.22.0release notes

  • The -v option accepts local directories.

    1.22.0release notes

  • Accepts two-letter byte units such as KB, MB, GB, TB, and PB, allowing documented cache size filters to parse.

    1.22.0release notes

  • OAuth tokens are transparently refreshed when less than a day of validity remains.

    1.20.0release notes

  • The token list now shows OAuth token expiry dates.

    1.20.0release notes

  • Login now defaults to the browser-based OAuth Device Code flow instead of asking users to copy-paste a token.

    1.20.0release notes

  • NotFound errors for repos or buckets now suggest the matching create command.

    1.20.0release notes

  • SSH now waits for the Job to reach RUNNING before connecting.

    1.20.0release notes

  • Request Timeout responses are now included in the default retry status set.

    1.20.0release notes

  • Python login now uses the browser-based OAuth Device Code flow by default.

    1.20.0release notes

  • The endpoint type now defaults to authenticated instead of protected.

    1.20.0release notes

  • 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.

    1.19.0release notes

  • Accept web URLs in bucket CLI commands.

    1.19.0release notes

  • 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.

    1.19.0release notes

  • Suppresses hints when CLI quiet output mode is enabled.

    1.19.0release notes

  • Accepts Hugging Face web URLs, so links copied from the website can be passed directly to the CLI or library.

    1.18.0release notes

  • 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.

    1.17.0release notes

  • copy_files now copies files between repositories on the Hub, in addition to existing bucket destinations, without downloading and re-uploading data.

    1.17.0release notes

  • The flavor option accepts any string, so older CLI versions do not reject new server-side flavors.

    1.17.0release notes

  • The hardware option accepts any string, so older CLI versions do not reject new server-side flavors.

    1.17.0release notes

  • Job logs are tailed using server-side support.

    1.16.0release notes

  • Help screens use underlined section headings and bold option and command names; styling is disabled when NO_COLOR is set or an AI agent is detected.

    1.15.0release notes

  • Offline or cache-miss errors print a clean message instead of a Python traceback; set HF_DEBUG=1 to show the full stack.

    1.15.0release notes

  • Status updates such as spinners and progress are suppressed when using --format json, --quiet, or --format agent.

    1.14.0release notes

  • Progress bars are no longer shown during skills updates.

    1.14.0release notes

  • Short-circuits when the CLI is already on the latest version.

    1.14.0release notes

  • The default --limit for list commands increases from 10 to 30.

    1.14.0release notes

  • The blocking interactive Y/n auto-update prompt is removed; startup instead prints a warning suggesting hf update.

    1.13.0release notes

  • Accepts list[str] inputs.

    1.13.0release notes

  • Repo files copied to a bucket now ignore .gitattributes.

    1.11.0release notes

  • Adds support for kernels in list_liked_repos.

    1.10.1release notesrelease notes

  • The hf CLI detects AI agents and adapts output with no ANSI, no truncation, tab-separated tables, compact JSON, and full timestamps.

    1.9.0release notes

  • Adds a summary field to the command's CLI output.

    1.9.0release notes

  • Official HF CLI extensions are automatically installed on first invocation.

    1.9.0release notes

  • Login now returns immediately when already logged in, rather than starting the login flow.

    1.7.0release notes

  • The install command now supports pip-installable Python package extensions in isolated virtual environments, alongside shell script extensions, and auto-detects the repository type.

    1.7.0release notes

  • The command can now use a default directory when adding a skill.

    1.7.0release notes

  • There is no timeout by default when using httpx.

    1.5.0release notes

  • Warns about repository commit count during large-folder uploads.

    1.5.0release notes

  • CLI table columns are now dynamic based on the --expand field.

    1.4.0release notes

  • The benchmark=True alias maps to benchmark="official" when listing datasets.

    1.4.0release notesrelease notes

  • Logs the x-amz-cf-id header on HTTP errors when no request ID is available.

    1.3.7release notes

  • Uses HF_HUB_DOWNLOAD_TIMEOUT as the default httpx timeout.

    1.3.5release notesrelease notesrelease notes

  • Raises the maximum file size from 50 GB to 200 GB.

    1.3.3release notesrelease notesrelease notes

  • The jobs CLI now allows unknown options.

    1.3.0release notes

  • The auth list command logs a message when HF_TOKEN is set.

    1.3.0release notes

  • Strict dataclasses now support the 'x | y' syntax.

    1.3.0release notes

  • 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.

    1.2.0release notes

  • The client warns on the server's X-HF-Warning header and prints the server warning without hardcoded client-side addition.

    1.2.0release notes

  • Decreases the number of files before snapshot_download falls back to list_repo_tree.

    1.1.6release notesrelease notes

  • Makes name optional in catalog deploy.

    1.1.3release notesrelease notes

  • Per-file logs are hidden by default and individual progress bars are combined into a single progress bar.

    1.1.0release notes

  • Per-file logs are hidden by default and individual progress bars are combined into a single progress bar.

    1.1.0release notes

  • The CLI silently checks PyPI for newer versions every 24 hours and notifies users with upgrade instructions based on their installation method.

    1.0.0release notes

  • hf_xet becomes the default package for uploading and downloading Hub files, replacing the previously optional hf_transfer.

    1.0.0upgrade guide

  • The exception inherits from both requests and httpx HTTPError base classes to preserve compatibility for error handling across versions.

    1.0.0upgrade guide

  • upload_file now returns the URL of the commit created on the Hub.

    1.0.0release notes

  • upload_folder now returns the URL of the commit created on the Hub.

    1.0.0release notes

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.

    1.27.0release notes

  • Renames the job-listing command to hf jobs ls; hf jobs ps and hf jobs list remain aliases.

    1.21.0release notes

  • Provides agent-friendly hints and examples for jobs commands.

    1.19.0release notes

  • The CLI surfaces job runtime fields in ps and inspect.

    1.16.0release notes

  • The CLI now parses the initiator field in jobs API responses.

    1.16.0release notes

  • Adds hints and an example to the command output.

    1.14.0release notes

  • The skills CLI is migrated to buckets.

    1.14.0release notes

  • The CLI detects the pi agent.

    1.12.0release notes

  • Improves discoverability of the hf CLI.

    1.10.1release notes

  • Adds an interactive CLI autoupdate prompt.

    1.9.0release notes

  • Replaces huggingface-cli with hf in the brew upgrade command.

    1.7.2release notes

  • List commands are normalized to accept list and ls aliases.

    1.7.0release notes

  • Help output now lists installed extensions under an Extension commands section.

    1.6.0release notes

  • Adds overload decorators for dry_run typing.

    1.5.0release notes

  • Help output groups commands into Main commands and Help commands and adds Examples and Learn more sections.

    1.4.0release notes

  • Adds the @dataclass_transform decorator to dataclass_with_extra.

    1.2.4release notesrelease notes

  • The tiny-agents CLI no longer uses rich.

    1.1.6release notes

  • Installation scripts support uv for faster package installation.

    1.1.5release notes

  • Python 3.14 is now officially supported.

    1.1.0release notes

  • The CLI suggests available commands, subcommands, options, and arguments as users type.

    1.0.0release notes

  • Cross-platform installers set up isolated environments on macOS, Linux, and Windows, handling dependencies and PATH configuration.

    1.0.0release notes

Fixes and other changes 113

  • The environment variable is now honored everywhere, including skills installed for relocated Claude Code instances.

    1.33.0release notes

  • Invalid eval result entries are skipped instead of raising.

    1.33.0release notes

  • Relative time output now rolls over instead of displaying 60 seconds, 60 minutes, or 24 hours.

    1.33.0release notes

  • get_file now works with a bare local filename.

    1.33.0release notes

  • Updates now refresh both skill roots in the same way as installation.

    1.33.0release notes

  • Download progress is measured from the initial file position.

    1.33.0release notes

  • Tool listing now follows nextCursor when fetching additional results.

    1.33.0release notes

  • Ref names use POSIX paths on Windows.

    1.33.0release notes

  • Sandbox background processes are addressed by their server-assigned ID, so kill() stops the process and reports accurately.

    1.32.0release notes

  • Pool ownership is decided per host so a with SandboxPool(...) block does not tear down a colleague's discovered host.

    1.32.0release notes

  • CommitInfo instances can now be copied and pickled.

    1.31.0release notes

  • Regular HTTP downloads no longer fail when the HEAD response omits Content-Length; file size is validated against the GET response when available.

    1.31.0release notes

  • With --dry-run and --local-dir, cached files are no longer copied into the destination, avoiding apparent hangs and incomplete files.

    1.31.0release notes

  • On Windows, no longer attempts to self-upgrade a pip installation; instead it prints the pip install -U command to run.

    1.31.0release notes

  • A timeout while waiting for streamed-download response headers is retried and resumed like a body read failure.

    1.31.0release notes

  • The dotenv parser preserves unquoted values containing # and keeps single-quoted values verbatim.

    1.31.0release notes

  • Iteration now yields all chunks instead of stopping after the first 4MB chunk.

    1.31.0release notes

  • Writes the refs/ cache file atomically, fixing a race when concurrent calls target the same repository.

    1.31.0release notes

  • 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.

    1.30.0release notes

  • Argument help rendering is fixed for click 8.5.

    1.29.0release notes

  • CLI uploads now work when local_path is a wildcard.

    1.29.0release notes

  • 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.

    1.29.0release notes

  • The CLI installer now points at a newer Python executable when macOS has a shadowed Python.

    1.29.0release notes

  • Omits model.task instead of sending it as null when creating an endpoint.

    1.28.0release notes

  • Does not use a redirect's Content-Length as the file size.

    1.28.0release notes

  • Fixes duplicated GPU rows in the command output.

    1.28.0release notes

  • Fixes the string value of ResolvedRevision after pickle or copy operations.

    1.28.0release notes

  • Fixes scheduled uploads of a single file in a subfolder.

    1.28.0release notes

  • Fixes tqdm_class being ignored by the Xet transfer bar.

    1.28.0release notes

  • Handles the same custom-image payload shapes as create_inference_endpoint.

    1.28.0release notes

  • A 429 is no longer reported as a window rate limit when the window is not exhausted.

    1.28.0release notes

  • Releases the swallowed HEAD exception traceback and caller stack, and fixes retries on an httpx client already closed by a previous ConnectError.

    1.27.0release notes

  • Filters bucket listings on path-component boundaries, preventing sibling prefix collisions in exists and ls.

    1.27.0release notes

  • Avoids deleting non-symlink snapshot files a second time as blobs, preventing FileNotFoundError tracebacks; reported freed size is unchanged.

    1.27.0release notes

  • The CLI no longer crashes with UnicodeEncodeError when stdout cannot encode non-ASCII output, such as when output is redirected or piped on Windows.

    1.26.0release notes

  • Fixes tilde expansion so upload paths like ~/model.bin no longer raise FileNotFoundError.

    1.26.0release notes

  • Fixes silent truncation of headers between 99994 and 100000 bytes that caused parsing failures.

    1.26.0release notes

  • Appended keys retain their order when CardData.to_yaml serializes data.

    1.25.0release notes

  • Creating a space no longer fails when exists_ok=True and the server returns a 402 Payment required error.

    1.25.0release notes

  • The file-count progress bar is updated on completion.

    1.25.0release notes

  • Fixed a Windows crash when downloading into a deeply nested local_dir.

    1.25.0release notes

  • Xet download speed now shows the summed rate rather than the per-file rate.

    1.24.0release notes

  • Fixes false install verification failures on Windows.

    1.23.0release notes

  • Fixes escaped backslash handling when parsing .env values in the CLI.

    1.22.0release notes

  • Percent-encodes the revision when converting an HfUri to a URL.

    1.22.0release notes

  • Honors the standard delay-seconds form of the Retry-After header; HF rate-limit headers take precedence when present.

    1.22.0release notes

  • Model and dataset card templates are now included in wheels.

    1.22.0release notes

  • Remains available so downstream libraries can register their own CLI commands after the CLI migration.

    1.22.0release notes

  • Fixes an IndexError when an allow or ignore pattern is empty.

    1.21.0release notes

  • Requests are retried when they encounter httpx.RemoteProtocolError.

    1.21.0release notes

  • Fixes a circular import that caused importing login from a fresh interpreter to raise ImportError.

    1.21.0release notes

  • Skipped string tensors are excluded from the single-shard index.

    1.21.0release notes

  • Transient RemoteProtocolError connection drops during downloads are now retried.

    1.20.0release notes

  • Failed OIDC exchanges now include the server error_description in HTTP error messages.

    1.20.0release notes

  • Windows metadata files such as desktop.ini no longer cause cache scans to fail.

    1.20.0release notes

  • Fixes an ImportError on Python 3.15 caused by the upstream removal of dataclasses._MISSING_TYPE.

    1.19.0release notes

  • Expands the user home directory in local_dir and cache_dir during file downloads.

    1.18.0release notes

  • Creation no longer fails when the response is HTTP 401 and the repository or bucket already exists.

    1.18.0release notes

  • Fixes failures on read-only file systems when the non-existence of a file is already cached.

    1.17.0release notes

  • Fixes snapshot bar inflation on http_get retry.

    1.16.0release notes

  • The hint message now uses the correct hf skills update command.

    1.15.0release notes

  • For Homebrew installs, checks the Homebrew registry so it does not suggest a version that is not yet available there.

    1.15.0release notes

  • Prints help when a leaf command requiring arguments is called without arguments.

    1.13.0release notes

  • Fixes table rendering for the datasets list command.

    1.13.0release notes

  • No longer crashes when stderr lacks a real file descriptor.

    1.13.0release notes

  • Fixes installation method detection for curl-installed hf when using Homebrew Python.

    1.13.0release notes

  • Avoids reuploading preuploaded LFS files.

    1.13.0release notes

  • The fsspec configuration is now applied in the HfFileSystem metaclass.

    1.12.0release notes

  • Matches Unix cp -r nesting semantics when copying files.

    1.11.0release notes

  • Fixes a reference cycle that caused delayed object destruction.

    1.10.2release notes

  • Fixes copying a file to a folder.

    1.10.1release notesrelease notes

  • Custom tqdm_class implementations work in non-TTY environments instead of silently breaking.

    1.10.0release notes

  • The method's return type is corrected.

    1.9.2release notesrelease notes

  • The request now sends an object instead of a bare array.

    1.9.1release notesrelease notes

  • Fixes safetensors loading so eval() is called.

    1.9.0release notes

  • Shard filenames in sharded checkpoint index files are now validated.

    1.9.0release notes

  • Strict dataclass validation now supports None types and rejects bool/int cross-type confusion.

    1.9.0release notes

  • Streaming to stdout is more robust.

    1.8.0release notes

  • Installation works with uv-managed Python by using uv when available.

    1.7.2release notesrelease notes

  • Fixes glob behavior when a subdirectory is missing.

    1.7.2release notesrelease notes

  • Fixes deadlocks or stalls during large-file downloads.

    1.7.0release notes

  • Raises the actual error instead of a generic exception when a snapshot_download operation fails.

    1.7.0release notes

  • CLI errors now include repo_id, repo_type, and bucket_id.

    1.6.0release notes

  • Downloading a repository subfolder by passing its path now works as expected.

    1.5.0release notes

  • Fixes jobs commands crashing when run without a TTY.

    1.5.0release notes

  • Fixes path resolution when a path contains the special character @.

    1.5.0release notes

  • Prevents file corruption on download retries when the server ignores the Range header.

    0.36.2, 1.4.1release notesrelease notesrelease notes

  • Fixes filtering datasets by official benchmark.

    1.4.0release notes

  • Stops cache verification from incorrectly reporting folders as missing files.

    1.4.0release notesrelease notes

  • Fixes the payload for fal image URLs.

    1.4.0release notes

  • Fixes permissions for multi-user cache locks.

    1.4.0release notes

  • Fixes Replicate image-to-image compatibility with different model schemas.

    1.4.0release notes

  • Adds retry and backoff when fetching Xet connection info to handle 502 errors.

    1.4.0release notes

  • The _endpoint field now defaults to None, fixing a regression from v1.3.3.

    1.3.4release notes

  • Fixes curlify behavior with streaming requests.

    1.3.3release notesrelease notes

  • Fixes verification incorrectly reporting folders as missing files.

    1.3.3release notes

  • Fixes a severe streaming performance regression by keeping a byte iterator.

    1.3.3release notesrelease notesrelease notes

  • Fixes resolve_path for paths containing the special character @.

    1.3.3release notesrelease notes

  • Fixes the endpoint not being forwarded in CommitUrl.

    1.3.2release notesrelease notes

  • Fixes create_repo returning the wrong repo_id.

    1.2.4release notesrelease notes

  • Fixes a requirements mismatch for hf-xet.

    1.2.4release notes

  • Job-related APIs now use self.endpoint, enabling support for custom endpoints.

    1.2.4release notesrelease notes

  • Shows the HF_TOKEN message when no stored tokens exist.

    1.2.2release notes

  • Fixes an unbound local error when reading corrupted metadata files.

    1.2.2release notes

  • Uses constants.HF_HUB_ETAG_TIMEOUT as the timeout for get_hf_file_metadata.

    1.2.0release notes

  • Fixes a FileNotFoundError in the CLI update check.

    1.1.6release notesrelease notes

  • Fixes HfHubHTTPError reduce behavior by adding a factory function.

    1.1.6release notesrelease notes

  • The CLI now respects the HF_DEBUG environment variable.

    1.1.5release notes

  • Fixes output parsing for zero-shot classification.

    1.1.5release notesrelease notes

  • Avoids a redundant call to the Xet connection info URL, fixing HTTP 429 rate limit issues when downloading very large datasets of small files.

    1.1.3release notes

  • The installer now works correctly for zsh users and across common shells.

    1.1.0release notes

  • Fixes the instance cache when using multiprocessing with the fork start method.

    1.1.0release notes

  • HTTP sessions are now closed on fork.

    1.1.0release notes

huggingface-hub 0.367 changes

Breaking changes 2

  • All tools are used unless allowed_tools is explicitly specified.

    0.36.0release notes

  • HTTP requests no longer retry on 429 responses; retries are limited to 5xx responses.

    0.36.0release notes

New APIs and options 2

  • Adds an API to retrieve high-level information about an organization, similar to the existing user overview.

    0.36.0release notes

  • A block_size parameter was added to the HfFileSystem constructor.

    0.36.0release notes

Performance 1

  • Listing files with glob() is optimized to make fewer /tree calls.

    0.36.0release notes

Behavior and default changes 1

  • Pickling an HfFileSystem instance now preserves its cache, so distributed workers do not have to rebuild it.

    0.36.0release notes

Fixes and other changes 1

  • HTTP backoff now retries on ChunkedEncodingError.

    0.36.0release notes