Run a Sogni Fast Worker on a Cloud GPU
Run Sogni Comfy Worker on a rented NVIDIA GPU to serve jobs on the Sogni Supernet. We’ve run Comfy Worker on all five providers below. Other platforms should work if they can run Docker containers with direct access to a supported NVIDIA GPU and driver, pass environment variables, and give the worker enough RAM, writable storage, and outbound Internet access. Persistent storage lets you reuse the model cache and worker state.
#Choose a GPU provider
| Provider | How you deploy |
|---|---|
| Nosana | Use a Sogni job definition that preloads a selected model bundle. |
| SaladCloud | Deploy a single-replica container group with private health probes. |
| Vast.ai | Rent a single-GPU instance with a private Docker template and optional local volume. |
| Akash Network | Deploy an SDL configuration and accept a GPU provider’s bid. |
| Nebius | Create a GPU virtual machine and run Sogni’s Linux installer over SSH. |
For another provider, use the custom container instructions. On a GPU VM with SSH and Docker Engine, you can also use the standard Linux installer.
#Before you rent a GPU
- Create a worker key on the Sogni API Keys page. It signs in workers and cannot start paid work. Your account’s Original key also works. Developer keys are for API clients. Use a dedicated worker key for rentals so you can revoke it separately, and keep it in private deployment settings.
- Copy the numeric token ID of a Fast Worker NFT your Sogni account owns. You can find or mint one at nft.sogni.ai. Use one GPU, one worker, and one unique NFT per running instance. Keep replicas at one when they share an environment, and stop the old worker before reusing its NFT.
- Decide which jobs to serve and check their VRAM, RAM, and bandwidth requirements. Check the RAM actually assigned to the worker and size the model disk for your selected workflows. For a 12 GB NVIDIA rental, check the qualified GPUs and jobs before renting.
- Review compute, storage, and data-transfer charges. Use the provider console to stop the rental or close the lease when you finish, and check whether retained storage still incurs charges. Sogni rewards depend on completed jobs and demand.
The account owner remains responsible for the hosting account, credentials, deployment settings, costs, regional eligibility, provider terms, and safe operation of rented or owned hardware. Confirm the provider's power, cooling, persistence, and hardware-monitoring responsibilities before deploying. Sogni's software controls are best-effort aids; see Protecting your hardware.
#Use a maintained provider recipe
If your provider offers a Sogni recipe with a current Comfy Worker image, follow its setup and health defaults. Enter the worker credentials, choose one replica, and verify the worker in Sogni.
The standalone Stable Diffusion and Flux workers are retired. Choose a current Comfy recipe; existing SD operators can follow the migration guide.
#Deploy a custom container
Use the image’s default entrypoint and a private deployment. Give the worker outbound HTTPS and secure WebSocket access for Supernet connections and downloads. Leave public ingress disabled unless your platform requires a port. Keep the ComfyUI and worker control ports private.
#Select the image
For Comfy Worker:
- Use
sogni/comfy-worker-cu13:lateston x86-64 NVIDIA GPUs with CUDA compute capability 8.0 or newer (RTX 30-series or newer, including RTX 3090, RTX 4090, and Blackwell GPUs) and NVIDIA driver branch R580 or later. - Use
sogni/comfy-worker-arm64-sm120:lateston Linux ARM64 hosts with a discrete Blackwell GPU, compute capability 12.0, and driver R580 or newer. On mixed integrated/discrete hosts, assign the supported discrete GPU explicitly. See ARM64 RTX requirements. - An NVIDIA DGX Spark uses its separate
sogni/comfy-worker-spark:latestimage.
The installer checks both requirements before it starts a worker. A custom deployment must check them itself. The CUDA version printed by nvidia-smi describes the newest runtime supported by the driver; confirm the actual driver branch as well as the GPU model.
For LLM Worker:
- Use
sogni/sogni-llm-worker:latest. - Use a 24 GB-class NVIDIA GPU with at least 23 GB of usable VRAM. Assign exactly one GPU to the container; standard multi-GPU LLM configurations and model sharding are not supported.
- Give every LLM Worker container its own Fast Worker NFT token ID and persistent
/datadirectory, just as you would for a Comfy Worker.
The LLM Worker receives its compatible model catalog and inference settings from Sogni. Do not copy Comfy-only model or workflow environment variables into an LLM deployment.
Platforms that require immutable tags can query the production endpoints instead of hard-coding a version:
If the platform caches a :latest image, enable its equivalent of always pull or periodically replace the immutable tag with the value returned by the appropriate endpoint. The standard Sogni installer already pulls the selected :latest image whenever it starts the worker.
Do not deploy the former Flux Worker image. Flux Worker is retired and its current workflows are served by Comfy Worker.
#Configure identity and persistence
At minimum, supply these secrets or environment variables:
| Variable | Purpose |
|---|---|
API_KEY |
A worker key (or the Original key) for the Sogni account that owns the worker |
NFT_TOKEN_ID |
Unique Fast Worker NFT token ID for this GPU worker |
If you can attach persistent storage, mount it at these paths:
| Worker | Container path | Contents |
|---|---|---|
| Comfy or LLM | /data |
Worker identity, boot history, and other durable worker state |
| Comfy | /data-models |
Downloaded Comfy models and related cache data |
| LLM | /models |
Downloaded language models and related model data |
Without a persistent /data mount, a replaced instance loses its stable local identity, boot history, and other worker data. A compatible Comfy Worker can recover the latest accepted dashboard overrides from a best-effort Supernet copy keyed to the Fast Worker NFT, but that recovery does not preserve the rest of /data. Without the applicable model mount, a replacement can download its eligible model files again. Do not assume that a provider's writable container layer survives replacement or rescheduling.
A Comfy Worker’s model cache can occupy several hundred gigabytes and changes with the catalog. Set workflow preferences before the first start to focus downloads on selected jobs, and size storage for their dependencies. The LLM catalog also changes over time, so size /models for every currently eligible model plus download headroom. For either worker, leave room for partial downloads, Docker layers, logs, and provider filesystem overhead.
#Health endpoints
Configure provider probes against the worker's HTTP health server on port 8000. Use HTTP/1.x unless the provider requires a different label for ordinary HTTP.
Current Comfy Worker and LLM Worker images expose these endpoints:
| Path | Intended use |
|---|---|
/startup |
Passes once startup has reached a valid connected, downloading, or backend-spawning state |
/liveness |
Fails when the backend has crashed or the worker is no longer viable |
/readiness |
Passes only when the worker is connected and ready to accept service |
/health |
Returns combined diagnostics; a degraded response can still use HTTP 200, so do not substitute it for readiness |
Use these defaults for Comfy and LLM Workers where the provider supports them. For SaladCloud’s probe limits, use the SaladCloud settings.
| Probe | Path | Initial delay | Period | Timeout | Success threshold | Failure threshold |
|---|---|---|---|---|---|---|
| Startup | /startup |
90 seconds | 5 seconds | 5 seconds | 2 | 120 |
| Liveness | /liveness |
90 seconds | 10 seconds | 30 seconds | 1 | 6 |
| Readiness, when supported | /readiness |
90 seconds | 10 seconds | 5 seconds | 1 | 6 |
The startup settings allow roughly 10 minutes of failed checks after the initial 90-second delay. They are grounded in 1,939 distinct production Comfy Worker boot records sampled on August 23–24 and August 31, 2026 PT: median time from container start to accepting jobs was 22 seconds, p95 was 1 minute 32 seconds, and p99 was 6 minutes 14 seconds. /startup intentionally passes while a model download is progressing, so the entire model cache does not need to finish downloading inside that window. A worker still unable to reach a valid startup state after the failure budget is more likely stuck than merely slow.
If a provider does not support every probe type, configure startup and liveness first. These workers also have internal supervision, but provider-level probes improve replacement and visibility.
The LLM Worker also runs its local inference backend on port 8080. The Sogni supervisor reaches that port inside the deployment; it does not need to be exposed publicly for a normal worker.
#Configure optional behavior
Current Comfy Workers can receive supported overrides from the dashboard after their first successful connection. Restart-required values, initial deployment settings, and unsupported worker types still use the hosting environment. LLM model selection and inference-quality settings are server-managed; do not attempt to override them with Comfy settings.
See Advanced Configuration for:
- Dashboard-versus-environment precedence and persistence.
- Render-time rests and GPU thermal admission control.
- Preferred workflows and default workflow selection.
- Model-cache and automatic-download controls.
- Optional classic SD1.5/SDXL model collections on Comfy Worker.
#Verify the deployment
- Watch the provider’s startup logs. A cold host can take tens of minutes or longer to pull the image and download models. Let downloads that are making progress finish.
- Open Sogni Workers and select your NFT. Confirm it is Online and shows the expected worker version, GPU, and available models. Worker Health shows startup stages and telemetry.
- Check Job History for the first completed job. If the worker stays offline, inspect startup errors and confirm that the key belongs to the NFT owner and the NFT is idle everywhere else. If it is online but idle, review which models it can serve. Job arrivals also depend on demand.
- Set downtime alerts using the Workers Dashboard guide. Allow for the provider’s usual rescheduling time.
For help, email [email protected] or join the Sogni Discord.