For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /nodes/12/LazyCache.md.

惰性缓存(LazyCache)

LazyCacheadvanced/debug角色:模型补丁

LazyCache 是 EasyCache 的一个实验性、自制版本,它在采样期间添加缓存以减少计算量。它旨在与 ComfyUI 中的模型实现通用兼容,但通常比 EasyCache 表现更差,可能仅在极少数情况下效果更好。

参数

参数类型默认 / 范围说明
modelMODEL · 扩散模型—(连线输入)添加了 LazyCache 功能的模型。
reuse_thresholdFLOAT0.0 ~ 3.0,步长 0.01—
start_percentFLOAT0.0 ~ 1.0,步长 0.01从采样进度的该比例开始生效,0 为起点。
end_percentFLOAT0.0 ~ 1.0,步长 0.01到该比例停止生效,1 为终点。
verboseBOOLEAN · 布尔true / false—

输出

输出类型说明
MODELMODEL扩散模型

怎么接

  • 上游:CheckpointLoaderSimple / UNETLoader
  • 下游:KSampler / 下一个补丁节点
  • 接线:串在模型链中间:上游接 CheckpointLoaderSimple / UNETLoader 的 MODEL,输出接 KSampler 的 model 或下一个补丁;多个补丁叠加时顺序会改变结果。

使用案例

属于「模型补丁」类节点,向下游提供可采样的模型对象。从 model、reuse_threshold(0.2)、start_percent(0.15) 开始填就能跑起来。典型接法:CheckpointLoaderSimple → 本节点 → KSampler。输出类型是 MODEL,只能接同类型的输入端口,颜色对不上就是接错了。

端口与连线示意

LazyCache 端口与连线示意

同类节点

EasyCache · 模型计算Dtype