Deploying models from Registry to sandboxes is in private preview and currently requires GPU-enabled sandboxes. To request access, contact your account team or email support@coreweave.com.
Deploy a model
Follow the steps below to deploy a model to a sandbox:- Navigate to Registry.
- Select a registry.
- Select a collection.
- Select a model version.
- Select the action menu (), then select Deploy.
- From the Version dropdown, select the model version to deploy.
- Enter a name for the deployment for the Deployment name field.
- Select Next.
- Select the team to associate with the deployment.
- Select a compute resource.
- From the Lifetime dropdown, select how long the sandbox can run.
- Configure the Serving engine. The default and currently supported engine is
vLLM. - Select Next.
- Review the deployment details, then select Deploy.
Compute resources
The compute resource determines the CPU, memory, and GPU resources allocated to the sandbox.GPU sandboxes must be enabled for your organization. Until GPUs are enabled, a request that includes a GPU fails with
CWSANDBOX_GPU_NOT_ALLOWED and the message this organization is not entitled to create GPU sandboxes.Sandbox states
A sandbox can have one of the following states:View a deployment
View the status, expiration time, configuration, and other details for a deployed sandbox.- Navigate to Registry.
- Select a registry.
- Select a collection.
- Select a model version.
- Select the Deployments tab.
- Open the deployment details by doing one of the following:
- Select the name of the deployed sandbox.
- Select the action menu () and choose View deployment details.
Deployment overview
The deployment overview includes the following information:- Status: The current state of the sandbox.
- Created by: The user who created the deployment.
- Created at: When the deployment was created.
Sandbox configuration
The sandbox configuration includes the following information:- Instance name: The name of the sandbox instance.
- Serving engine: The engine that serves the model.
- Team: The team that created the sandbox.
- Compute resources: CPU, memory, and GPU resources allocated to the sandbox.
- Expires in: The remaining time before the sandbox expires.
- Endpoint address: The address used to send requests to the deployed sandbox.
- curl example: An example request to the deployment endpoint using
curl.
Access a deployed model
Send requests to a deployed model by using the endpoint address in the sandbox configuration. The endpoint remains available until the sandbox expires or you stop the deployment.Find the endpoint address
You can find the endpoint address for your deployed sandbox in the sandbox configuration section of the deployment overview.- Open the deployment details.
- In Sandbox configuration, find Endpoint address.
Test the deployment
Send a chat completion request to verify that the deployment can serve inference requests.- Python
- curl
Copy and paste the following Python code to test your deployed sandbox. Set
base_url to the endpoint address of your deployment and install httpx if you haven’t already done so by running pip install httpx.Clone a deployment
Clone a deployment to create a new sandbox with its own generated endpoint URL. By default, the cloned deployment uses the original deployment name with-clone appended. You can change this name before confirming the deployment.
Deployment names must be unique among deployments that are starting or running. You can reuse a name after the existing deployment stops or expires.
To clone a deployment, follow these steps:
- Navigate to the Registry.
- Select a registry.
- Select a collection.
- Select a model version.
- Select the Deployments tab.
- Select the action () menu, then select Clone deployment.
- Review or update the deployment settings, then confirm the deployment.
Stop a deployment
Stop a running deployment. You can’t restart a stopped deployment, and its endpoint becomes unavailable. To serve the model again, create a new deployment. To stop a running sandbox deployment, follow these steps:- Navigate to Registry.
- Select a registry.
- Select a collection.
- Select a model version.
- Select the Deployments tab.
- Select a deployment.
- Select the action menu (), then select Stop deployment.