| sd_cache_params | R Documentation |
Constructs a list of cache parameters for fine-tuning step caching behavior.
Pass the result as cache_config to generation functions.
sd_cache_params(
mode = SD_CACHE_MODE$EASYCACHE,
threshold = 1,
start_percent = 0.15,
end_percent = 0.95
)
mode |
Cache mode integer from |
threshold |
Reuse threshold (default 1.0). Lower = more aggressive caching |
start_percent |
Start caching after this fraction of steps (default 0.15) |
end_percent |
Stop caching after this fraction of steps (default 0.95) |
Named list of cache parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.