Using Image Generation Models
GPUStack supports deploying and running state-of-the-art image generation models. These models allow you to generate stunning images from textual descriptions, enabling applications in design, content creation, and more.
In this tutorial, we will walk you through deploying and using image generation models in GPUStack.
Prerequisites
Before you begin, ensure that you have the following:
- A GPU that has at least 12 GB of VRAM.
- Access to Hugging Face for downloading the model files.
- GPUStack is installed and running. If not, refer to the Quickstart Guide.
Step 1: Deploy the Stable Diffusion Model
Follow these steps to deploy the model from Hugging Face:
- Navigate to the
Models
page in the GPUStack UI. - Click the
Deploy Model
button. - In the dropdown, select
Hugging Face
as the source for your model. - Use the search bar in the top left to search for the model name
gpustack/stable-diffusion-v3-5-medium-GGUF
. - In the
Available Files
section, select thestable-diffusion-v3-5-medium-Q4_0.gguf
file. - Leave everything as default and click the
Save
button to deploy the model.
After deployment, you can monitor the model's status on the Models
page.
Step 2: Use the Model for Image Generation
- Navigate to the
Playground
>Image
page in the GPUStack UI. - Verify that the deployed model is selected from the top-right
Model
dropdown. - Enter a prompt describing the image you want to generate. For example:
a female character with long, flowing hair that appears to be made of ethereal, swirling patterns resembling the Northern Lights or Aurora Borealis. The background is dominated by deep blues and purples, creating a mysterious and dramatic atmosphere. The character's face is serene, with pale skin and striking features. She wears a dark-colored outfit with subtle patterns. The overall style of the artwork is reminiscent of fantasy or supernatural genres.
- Select
euler
in theSampler
dropdown. - Set the
Sample Steps
to20
. - Click the
Submit
button to create the image.
The generated image will be displayed in the UI. Your image may look different given the seed and randomness involved in the generation process.
Conclusion
Congratulations! You’ve successfully deployed and used an image generation model in GPUStack. With this setup, you can generate unique and visually compelling images from textual prompts. Experiment with different prompts and settings to push the boundaries of what’s possible. For more details, refer to Recommended Parameters for Image Generation Models