AI Cloud Architect

Running ComfyUI workflows on Amazon SageMaker AI processing jobs

AWSHow-to by Nick Biso, Amit Basu, Justin Kuskowski, Maria Masood and Venkatesan GovindanAWS Artificial Intelligence Blog

In this post, we walk you through how to deploy ComfyUI workflows on Amazon SageMaker AI processing jobs to generate hundreds of high-quality images in a single batch. You learn how to set up the infrastructure using AWS Cloud Development Kit (AWS CDK), configure GPU-accelerated processing, and automate image generation at scale. You can then adapt this solution to your ComfyUI workflows specific to your needs. We will guide you through a practical, step-by-step process to automate ComfyUI…

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Shows how to run ComfyUI image workflows as batch SageMaker AI processing jobs on GPU instances, deployed with AWS CDK, to generate hundreds of images per batch.

Who it is for

Cloud architects and developers who need to batch-generate AI images on AWS and want a CDK-based reference setup.

Key points

  • Uses ml.g5.xlarge GPU instances, six in the sample configuration, which requires a service quota increase.
  • Generated images stream to Amazon S3 as they are created; the post uses Z-Image Turbo, a 6B-parameter model.
  • Sample repository is on GitHub; the job runs in private subnets with KMS encryption and VPC Flow Logs.