This tutorial demonstrates the installation and usage of SwarmUI on various cloud platforms. For those lacking a high-performance GPU or seeking enhanced GPU capabilities, this guide is invaluable. You'll discover how to set up and leverage SwarmUI, a cutting-edge Generative AI interface, on Massed Compute, RunPod, and Kaggle (which provides complimentary dual T4 GPU access for 30 hours per week).
This instructional video will enable you to utilize SwarmUI on cloud GPU services as seamlessly as on your personal computer. Additionally, I'll guide you through using Stable Diffusion 3 (#SD3) in the cloud environment. SwarmUI operates on the ComfyUI backend.
🔗 Comprehensive Public Post (no registration required) Featured In The Video, Including All Relevant Links ➡️ https://www.patreon.com/posts/stableswarmui-3-106135985
🔗 Windows Guide: Mastering SwarmUI Usage ➡️
🔗 Tutorial: Rapid Model Download for Massed Compute, RunPod, and Kaggle, plus Swift Model/File Upload to Hugging Face ➡️
🔗 Join SECourses Discord Community ➡️ https://discord.com/servers/software-engineering-courses-secourses-772774097734074388
🔗 Stable Diffusion GitHub Repository (Please Star, Fork, and Watch) ➡️ https://github.com/FurkanGozukara/Stable-Diffusion
Exclusive Discount Code for Massed Compute: SECourses
Valid for Alt Config RTX A6000 and standard RTX A6000 GPUs
In this comprehensive article, we will explore how to use SwarmUI, Stable Diffusion 3, and other Stable Diffusion models on various cloud computing platforms. This guide is designed to help users who don't have access to powerful GPUs locally leverage cloud resources for running these advanced AI image generation models. We'll cover three main platforms: Massed Compute, RunPod, and Kaggle.
Massed Compute is introduced as the cheapest and most powerful cloud server provider. It offers pre-installed SwarmUI and the latest versions of necessary software, making it easy to start generating images quickly.
RunPod is another cloud service provider that offers access to high-performance GPUs. This platform allows users to deploy custom environments and install SwarmUI manually.
Kaggle, a popular platform for data science and machine learning, offers free GPU access. This article demonstrates how to use SwarmUI on a free Kaggle account, utilizing the provided T4 GPUs.
Before diving into the specifics of each platform, it's strongly recommended to watch the 90-minute SwarmUI tutorial mentioned in the article. This comprehensive guide covers the details of using SwarmUI and is essential for understanding the full capabilities of the software.
To begin using SwarmUI on Massed Compute, follow these steps:
After deploying your instance, you'll need to connect to it:
Download and install the ThinLinc client appropriate for your operating system.
Configure the ThinLinc client: Go to "Options" > "Local devices" Uncheck all options except "Drives"
Add a folder for synchronization to upload/download files
Use the provided login IP address and credentials to connect to your virtual machine.
Once connected to your Massed Compute virtual machine:
Double-click the updater button to automatically update SwarmUI to the latest version.
Wait for the update to complete and for SwarmUI to start.
If you've deployed multiple GPUs, you can configure SwarmUI to use them all:
Go to "Server" > "Backends"
Add additional ComfyUI self-starting backends
Set unique GPU IDs for each backend to ensure proper distribution across available GPUs
With SwarmUI set up on Massed Compute, you can now start generating images:
Select your desired model (e.g., Stable Diffusion 3, SDXL, etc.)
Choose your preferred sampler and scheduler
Enter your prompt and set the number of images to generate
Click "Generate" to start the process
To download your generated images from Massed Compute:
Navigate to the "Files" folder
Go to "apps" > "Stable SwarmUI" > "output"
Copy the output folder to your synchronization folder
Access the synchronized files on your local machine
A new feature allows you to download gated CivitAI models:
Obtain your CivitAI API key from your account settings
In SwarmUI, go to "User" and enter your API key
Use the model downloader in "Utilities" to access CivitAI models Using SwarmUI on RunPod
To use SwarmUI on RunPod:
Register using the provided link
Set up billing and load credits to your account
Go to "Pods" and click "Deploy Pod"
Select Community Cloud or set up permanent storage (refer to the separate tutorial for this)
Choose your desired GPU configuration (e.g., 3x 4090 GPU)
Select the "RunPod PyTorch 2.1 with CUDA 11.8" template
Set disk volume and proxy port (7801 for SwarmUI)
Deploy your pod
Once your pod is running:
Connect to JupyterLab
Upload the provided "install_linux.sh" file
Open a terminal and run the installation commands
Wait for the installation to complete
Restart the pod once after the first installation
After restarting:
Connect to JupyterLab again
Run the provided start commands in the terminal
Access SwarmUI through the HTTP port connection
To use models like Stable Diffusion 3 on RunPod:
Go to "Utilities" > "Model Downloader"
Use the provided direct download link to add new models
Similar to Massed Compute, configure multiple backends:
Go to "Server" > "Backends"
Add ComfyUI self-starting backends
Set unique GPU IDs for each backend
Follow the same process as described for Massed Compute to generate images using your chosen models and settings.
To download images from RunPod:
Navigate to the SwarmUI folder
Right-click on the output folder and download as an archive
Alternatively, use RunPodCTL or upload to Hugging Face (refer to the separate tutorial for these methods)
To use SwarmUI on a free Kaggle account:
Register for a free Kaggle account and verify your phone number
Download the provided Kaggle notebook file
Create a new notebook on Kaggle and import the downloaded file
Select GPU T4 x2 as your accelerator
Follow the steps in the notebook to:
Download required models
Execute installation cells
Configure model paths and backends
After installation:
Access SwarmUI through the provided link
Configure backends to use both T4 GPUs
Generate images using available models
When using Stable Diffusion 3 on Kaggle:
Be aware of potential RAM limitations
Use only one backend if encountering memory errors
To download images from Kaggle:
Use the provided cell to zip all generated images
Refresh the file list and download the zip file
SwarmUI now supports CivitAI API integration:
Obtain your CivitAI API key
Enter the key in the SwarmUI user settings
Use the model downloader to access CivitAI models
This comprehensive guide provides detailed instructions on using SwarmUI, Stable Diffusion 3, and other Stable Diffusion models on Massed Compute, RunPod, and Kaggle. By following these steps, users without powerful local GPUs can leverage cloud resources to generate high-quality AI images. Remember to refer to the recommended tutorials and resources for more in-depth information on specific topics and advanced usage scenarios.