Document the /v1/models endpoint#42588
Open
LysandreJik wants to merge 1 commit into
Open
Conversation
LysandreJik
commented
Dec 3, 2025
| The easiest way to download models to your cache is with the `hf download` command: | ||
|
|
||
| ```shell | ||
| hf download <model_id> |
Member
Author
There was a problem hiding this comment.
Actually this will download all the files (even "original" files), so there is probably a better way
Member
Author
There was a problem hiding this comment.
Maybe it would make sense to expose a utility that would only download the transformers-specific files
Contributor
Contributor
There was a problem hiding this comment.
Suggested change
| hf download <model_id> | |
| transformers download <model_id> |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Wauplin
reviewed
Dec 3, 2025
| The easiest way to download models to your cache is with the `hf download` command: | ||
|
|
||
| ```shell | ||
| hf download <model_id> |
Contributor
There was a problem hiding this comment.
Suggested change
| hf download <model_id> | |
| transformers download <model_id> |
| ### Available models | ||
|
|
||
| The `/v1/models` endpoint scans your local cache for generative models. It checks for LLMs as well as VLMs. | ||
| The easiest way to download models to your cache is with the `hf download` command: |
Contributor
There was a problem hiding this comment.
Suggested change
| The easiest way to download models to your cache is with the `hf download` command: | |
| The easiest way to download models to your cache is with the `transformers download` command: |
| hf download <model_id> | ||
| ``` | ||
|
|
||
| As long as it's a transformers-compatible LLM/VLM, it will now show up under `/v1/models` |
Contributor
There was a problem hiding this comment.
Suggested change
| As long as it's a transformers-compatible LLM/VLM, it will now show up under `/v1/models` | |
| Once downloaded, the model will show up under `/v1/models`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.