StableDiffusionCppResourceBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding stable-diffusion.cpp resources to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class StableDiffusionCppResourceBuilderExtensions{ // ...}6 members
Methods6
Section titled MethodsAddHuggingFaceModel(IResourceBuilder<StableDiffusionCppResource>, string, string, string)extensionats exportIResourceBuilder<StableDiffusionCppModelResource> Adds a Hugging Face model that is downloaded before the container starts.
AddHuggingFaceModel(IResourceBuilder<StableDiffusionCppResource>, string, string, string, string)extensionats exportIResourceBuilder<StableDiffusionCppModelResource> Adds a named Hugging Face model that is downloaded before the container starts.
AddStableDiffusionCpp(IDistributedApplicationBuilder, string, StableDiffusionCppImageVariant, int?, string?)extensionats exportIResourceBuilder<StableDiffusionCppResource> Adds a stable-diffusion.cpp container resource using an official image.
WithGPUSupport(IResourceBuilder<StableDiffusionCppResource>)extensionats exportIResourceBuilder<StableDiffusionCppResource> Adds the container runtime arguments required by the selected GPU backend.
WithHuggingFaceToken(IResourceBuilder<StableDiffusionCppResource>, IResourceBuilder<ParameterResource>)extensionats exportIResourceBuilder<StableDiffusionCppResource> Supplies a Hugging Face access token for gated or private repositories.
WithVaeTiling(IResourceBuilder<StableDiffusionCppResource>)extensionats exportIResourceBuilder<StableDiffusionCppResource> Processes VAE images in tiles to reduce peak memory usage during image decoding.