What problem does it solve?
This Skill simplifies the process of registering and using model endpoints for local and remote inference services, eliminating the need for manual setup and management.
Core Features & Use Cases
- Model Registration: Register local model servers or remote model APIs for on-demand inference.
- Endpoint Management: Manage the lifecycle of registered endpoints, including starting, stopping, and connecting to them.
- Inference Execution: Execute inference requests against registered endpoints using the
compute_provider tool.
- Use Case: For a user who wants to quickly set up a local model server for a deep learning model and connect it to their project for real-time inference.
Quick Start
Register a local model endpoint named 'local-model-service' with the following command:
port = host.model_endpoints.free_port()
host.model_endpoints.register(
name="local-model-service",
url=f"http://127.0.0.1:{port}",
credential="NVIDIA_API_KEY",
skill="<model-runbook-skill>",
start=START_SCRIPT,
stop="docker stop local-model-service",
live="/v1/health/ready"
)