You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/en/concepts/migration.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,10 @@ The migration from `requests` to `httpx` brings several key improvements that en
45
45
46
46
The transition to `httpx` positions `huggingface_hub` with a modern, efficient, and maintainable HTTP backend. While most users should experience seamless operation, the underlying improvements provide better performance and reliability for all Hub interactions.
47
47
48
+
## `hf_transfer`
49
+
50
+
Now that all repositories on the Hub are Xet-enabled and that `hf_xet` is the default way to download/upload files, we've removed support for the `hf_transfer` optional package. The `HF_HUB_ENABLE_HF_TRANSFER` environment variable is therefore ignored. Use [`HF_XET_HIGH_PERFORMANCE`](../package_reference/environment_variables.md) instead.
51
+
48
52
## `Repository` class
49
53
50
54
The `Repository` class has been removed in v1.0. It was a thin wrapper around the `git` CLI for managing repositories. You can still use `git` directly in the terminal, but the recommended approach is to use the HTTP-based API in the `huggingface_hub` library for a smoother experience, especially when dealing with large files.
Copy file name to clipboardExpand all lines: docs/source/en/guides/cli.md
+18-17Lines changed: 18 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@ rendered properly in your Markdown viewer.
6
6
7
7
The `huggingface_hub` Python package comes with a built-in CLI called `hf`. This tool allows you to interact with the Hugging Face Hub directly from a terminal. For example, you can login to your account, create a repository, upload and download files, etc. It also comes with handy features to configure your machine or manage your cache. In this guide, we will have a look at the main features of the CLI and how to use them.
8
8
9
+
> [!TIP]
10
+
> This guide covers the most important features of the `hf` CLI.
11
+
> For a complete reference of all commands and options, see the [CLI reference](../package_reference/cli.md).
12
+
9
13
## Getting started
10
14
11
15
First of all, let's install the CLI:
@@ -15,7 +19,7 @@ First of all, let's install the CLI:
15
19
```
16
20
17
21
> [!TIP]
18
-
> The CLI ships with the core `huggingface_hub` package, so there is no longer a `[cli]` extra to install.
22
+
> The CLI ships with the core `huggingface_hub` package.
19
23
20
24
Alternatively, you can install the `hf` CLI with a single command:
21
25
@@ -778,39 +782,36 @@ The `hf env` command prints details about your machine setup. This is useful whe
778
782
779
783
Copy-and-paste the text below in your GitHub issue.
Copy file name to clipboardExpand all lines: docs/source/en/guides/download.md
+1-25Lines changed: 1 addition & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -243,13 +243,6 @@ Finally, you can also make a dry-run programmatically by passing `dry_run=True`
243
243
244
244
## Faster downloads
245
245
246
-
There are two options to speed up downloads. Both involve installing a Python package written in Rust.
247
-
248
-
*`hf_xet` is newer and uses the Xet storage backend for upload/download. Xet storage is the [default for all new Hub users and organizations](https://huggingface.co/changelog/xet-default-for-new-users), and is in the process of being rolled out to all users. If you don't have access, join the [waitlist](https://huggingface.co/join/xet) to make Xet the default for all your repositories!
249
-
*`hf_transfer` is a power-tool to download and upload to our LFS storage backend (note: this is less future-proof than Xet). It is thoroughly tested and has been in production for a long time, but it has some limitations.
250
-
251
-
### hf_xet
252
-
253
246
Take advantage of faster downloads through `hf_xet`, the Python binding to the [`xet-core`](https://github.com/huggingface/xet-core) library that enables
254
247
chunk-based deduplication for faster downloads and uploads. `hf_xet` integrates seamlessly with `huggingface_hub`, but uses the Rust `xet-core` library and Xet storage instead of LFS.
As of `huggingface_hub` 0.32.0, this will also install `hf_xet`.
265
258
266
-
Note: `hf_xet` will only be utilized when the files being downloaded are being stored with Xet Storage.
267
-
268
259
All other `huggingface_hub` APIs will continue to work without any modification. To learn more about the benefits of Xet storage and `hf_xet`, refer to this [section](https://huggingface.co/docs/hub/storage-backends).
269
260
270
-
### hf_transfer
271
-
272
-
If you are running on a machine with high bandwidth,
273
-
you can increase your download speed with [`hf_transfer`](https://github.com/huggingface/hf_transfer),
274
-
a Rust-based library developed to speed up file transfers with the Hub.
275
-
To enable it:
276
-
277
-
1. Specify the `hf_transfer` extra when installing `huggingface_hub`
0 commit comments