Register Model
register_modelRegisters a Hugging Face model for serving and returns a registration_id to deploy it later; model files download only when deployed.
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. framework is vllm (default) or sglang; 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.
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 | |||