Register Model
register_modelRegisters a Hugging Face model for serving and returns a registration_id used by deploy_serving; the model downloads only at deployment, and repeated registrations reuse the existing record.
Instructions
Register a Hugging Face model for serving and return its registration_id for deploy_serving. It costs nothing:
the model downloads only when deployed. Run detect_model first; registering the same repo again returns the
existing registration. Leave framework out: text models run on vllm, and sglang is refused. hf_token_id
(from source_credentials) is for private repos.
Every write requires operation_id. Reuse the ID returned by the preview, or generate a UUID before the first call. Keep it for confirmation and all retries; a new ID means a new operation. After a timeout, check operation_status and resource state before retrying.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"huggingface_repo": "<huggingface_repo>"
},
"name": "register_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| framework | No | ||
| workspace | No | ||
| hf_token_id | No | ||
| operation_id | No | ||
| context_length | No | ||
| huggingface_repo | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||