CommunityToolkit.Aspire.Hosting.StableDiffusionCpp
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCppv13.6.1Import path
apphost/modules/aspire6Functions
3Types
3 types, 6 functions and 10 members
Handles
Enums
Functions
DistributedApplicationBuilder
StableDiffusionCppResource
method
AddHuggingFaceModelbuilderAdds a Hugging Face model that is downloaded before the container starts.
AddHuggingFaceModel(repository string, fileName string, options ...*AddHuggingFaceModelOptions) StableDiffusionCppModelResourcemethod
AddNamedHuggingFaceModelbuilderAdds a named Hugging Face model that is downloaded before the container starts.
AddNamedHuggingFaceModel(name string, repository string, fileName string, options ...*AddNamedHuggingFaceModelOptions) StableDiffusionCppModelResourcemethod
WithGPUSupportbuilderAdds the container runtime arguments required by the selected GPU backend.
WithGPUSupport() StableDiffusionCppResourcemethod
WithHuggingFaceTokenbuilderSupplies a Hugging Face access token for gated or private repositories.
WithHuggingFaceToken(token ParameterResource) StableDiffusionCppResourcemethod
WithVaeTilingbuilderProcesses VAE images in tiles to reduce peak memory usage during image decoding.
WithVaeTiling() StableDiffusionCppResource