Skip to main content
Dedicated container inference runs your own Docker container on Together’s managed GPU infrastructure. You bring the container, and Together handles provisioning, autoscaling, networking, and observability. Use it when you need to run your own model or inference code, such as a custom architecture, a modified vLLM or SGLang engine, or an audio, image, or video model, without managing GPU servers yourself. In this tutorial, you’ll deploy a minimal hello-world worker built with the Sprocket SDK, send it a job through the queue, read the result, and delete the deployment.

Requirements

Step 1: Install the Together CLI

Authenticate the CLI:

Step 2: Clone the Sprocket examples

The hello-world worker, included in sprocket/examples/hello_world, is a minimal Sprocket that returns a greeting:

Step 3: Build and deploy

Deployments can be configured with a pyproject.toml file. The deployment name, set by the configuration, must be globally unique. The example worker uses this pyproject.toml configuration:
Change the project name in pyproject.toml and use this name for the rest of the tutorial.
Navigate to the example worker and deploy:
This command:
  1. Builds the Docker image from the example.
  2. Pushes it to Together’s private registry.
  3. Creates a deployment on Together’s GPU infrastructure.

Step 4: Watch deployment status

Wait until the deployment shows running and replicas are ready. Press Ctrl+C to stop watching. watch is not installed by default on macOS. Install it with brew install watch or your package manager of choice.
You can also view the status of your deployments from the Together AI web console.

Step 5: Test the health endpoint

Expected response:

Step 6: Submit a job

Response:
Copy the request_id for the next step.

Step 7: Get the job result

Real request IDs use UUIDv7 format (e.g., 019ba379-92da-71e4-ac40-d98059fd67c7). Replace req_abc123 with your actual request ID from the submit response.
Response (when complete):

Step 8: View logs

Stream logs from your deployment:

Step 9: Clean up

When you’re done, delete the deployment:

Next steps

Now that you’ve deployed your first container, explore the full platform:

Dedicated container inference overview

Read the architecture and core concepts.

Jig CLI

Build, push, and deploy containers, and manage secrets and volumes.

Sprocket SDK

Build queue-integrated inference workers.

API reference

Call the REST API for deployments, secrets, and queues.

Tutorials

Image generation with FLUX.2

Run single-GPU inference with 4-bit quantization.

Video generation with Wan 2.1

Run multi-GPU inference with torchrun.

Serve an OpenAI-compatible endpoint

Run in HTTP server mode behind the OpenAI Images API.