models
Model-kind repo extras: model meta, and the policies listed from the Hugging Face Hub
PUT / v1/ models/ {owner}/ {repo}/ meta
Set model meta
Replaces the model meta block on a model-kind repo in full. The training worker sets source_run_id when packaging a trained model. Returns a 409 problem if the repo kind is not model. robot must be a robot repo the caller can read. A missing, private or malformed one gets the same 422, word for word. embodiment_fingerprint is the interface fingerprint the policy's manifest records. datasets names the datasets it was trained on, under the same rule for a lucen:// ref.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
owner | path | Handle | Repo owner handle (username or org slug). |
repo | path | Slug | Repo slug. A renamed repo's former slug also finds it, and the answer names its current address. |
Request body
| Field | Type | Description |
|---|---|---|
policy_type | string | |
base_model | string | null | |
source_run_id | string | null | Must reference an existing run visible to the caller. |
control_class | ControlClass | null |
|
robot | string | null |
|
embodiment_fingerprint | string | null | The interface fingerprint the policy's manifest records ( |
datasets | array of DatasetRef | The datasets the policy was trained on. A |
method | string | null | A method id of |
task | PolicyTask | null | Omit or null to record none. |
skill | string | null | Free text. Omit or null to record none. |
license | string | null | An SPDX identifier. Omit or null to record none. |
Responses
| Status | Description | Body |
|---|---|---|
200 | Stored model meta. | ModelMeta |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
409 | State conflict (duplicate handle/slug, wrong repo kind, terminal job, ...). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ external-models
List the policies listed from Hugging Face
Policies from the Hugging Face Hub's LeRobot library, listed beside the hub's own. The hub stores their public metadata only. It hosts none of their files and has checked none of them. Each item links to its page on Hugging Face. downloads and likes are Hugging Face's own counts. They are kept apart from the hub's own counts and sorts. A daily sync refreshes the list, and synced_at says when it last succeeded. A failed sync keeps the last list.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q | query | string | Search text. It matches the id ( |
sort | query | string | Order by Hugging Face's downloads in the last 30 days, its likes, or its last update. Always descending. |
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | Page of listed policies. | ExternalModelPage |
422 | Request failed validation. | Problem |
Schemas (3)
The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.
ModelMetaPut
| Field | Type | Description |
|---|---|---|
policy_type | string | |
base_model | string | null | |
source_run_id | string | null | Must reference an existing run visible to the caller. |
control_class | ControlClass | null |
|
robot | string | null |
|
embodiment_fingerprint | string | null | The interface fingerprint the policy's manifest records ( |
datasets | array of DatasetRef | The datasets the policy was trained on. A |
method | string | null | A method id of |
task | PolicyTask | null | Omit or null to record none. |
skill | string | null | Free text. Omit or null to record none. |
license | string | null | An SPDX identifier. Omit or null to record none. |
ExternalModelPage
| Field | Type | Description |
|---|---|---|
items | array of ExternalModel | |
next_cursor | string | null | |
total | integer | How many listed policies match |
synced_at | string (date-time) | null (date-time) | When the last sync succeeded. Null when the hub has never listed any. |
ExternalModel
A policy on the Hugging Face Hub, listed by the hub. Every string is someone else's text: the hub strips control characters, caps lengths and keeps only values of the documented shape. Show them as plain text.
| Field | Type | Description |
|---|---|---|
source | ExternalSource | |
id | string | The repo id on Hugging Face, |
author | string | The part of |
name | string | The part of |
url | string (uri) |
|
tags | array of string | Hugging Face's plain tags, lowercased ( |
datasets | array of string | The dataset ids its |
pipeline_tag | string | null | Hugging Face's task for it, such as |
library | string | null | The library Hugging Face names for it, such as |
license | string | null | The licence its |
downloads | integer | Downloads on Hugging Face in the last 30 days, as Hugging Face counts them. |
likes | integer | Likes on Hugging Face. |
last_modified | string (date-time) | When it last changed on Hugging Face. |
synced_at | string (date-time) | When the hub last read it from Hugging Face. |