The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add how to cache model stuff to AGENTS.md (#16003)
comfyanonymousa8b4fa64104a
diff --git a/AGENTS.md b/AGENTS.mdindex b63b7a1d4..51dd6dd65 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -297,6 +297,12 @@- Avoid caches that persist across different executions as much as possible.Persistent caches are acceptable only when they use a very minimal amount ofmemory and have a clear ownership and invalidation story.+- When condition-dependent model work would otherwise repeat on every denoising+ step and preprocessing it once materially improves performance, expose a+ model preprocessing method and call it from `BaseModel.extra_conds`, following+ patterns such as LTXAV and Anima. Pass the result through normal conditioning;+ do not add model-owned caches, sampler-option caches, or cache-management+ wrappers for this work.- When optimizing, favor small measurable changes: fewer allocations, fewerdevice transfers, less peak memory, better batching, or use of a fasterexisting backend op.