-
Notifications
You must be signed in to change notification settings - Fork 31.3k
Document the /v1/models endpoint #42588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| The easiest way to download models to your cache is with the `hf download` command: | ||
|
|
||
| ```shell | ||
| hf download <model_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this will download all the files (even "original" files), so there is probably a better way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it would make sense to expose a utility that would only download the transformers-specific files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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. |
| The easiest way to download models to your cache is with the `hf download` command: | ||
|
|
||
| ```shell | ||
| hf download <model_id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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`. |

No description provided.