DiffusionEngineOptions
data class DiffusionEngineOptions(val gpuDevice: Int = 0, val allowBackendFallback: Boolean = true, val keepTextEncoderOnCpu: Boolean = false, val keepVaeOnCpu: Boolean = false, val weightType: Int = WEIGHT_TYPE_AS_STORED)(source)
Diffusion-specific construction options of a DiffusionEngine.
Constructors
Types
Link copied to clipboard
object Companion
Constants and factory functions of DiffusionEngineOptions.
Properties
Link copied to clipboard
when the requested backend is unavailable, fall back along com.donfuldauer.kggml.core.ComputeBackend.fallback (eventually CPU) instead of failing.
Link copied to clipboard
run the text encoders on the CPU even with a GPU backend (saves GPU memory).
Link copied to clipboard
run the VAE on the CPU even with a GPU backend (saves GPU memory, slower decode).
Link copied to clipboard
stable-diffusion.cpp sd_type_t (= ggml_type) to convert the weights to at load time; WEIGHT_TYPE_AS_STORED keeps them as stored.