Why making pictures needs so much memory
Text encoder, drawing model and VAE each take gigabytes. Smaller weights and the right cache setting freed memory: RAM after a shot fell from 31.7 GB to 3.1 GB and a warm shot went from 85 to 49 seconds.
Posts with this tag: 5
Text encoder, drawing model and VAE each take gigabytes. Smaller weights and the right cache setting freed memory: RAM after a shot fell from 31.7 GB to 3.1 GB and a warm shot went from 85 to 49 seconds.
A browser or a CDN keeps copies of files. On gllm.forum, a four hour copy of a stylesheet made our layout fix invisible, and the same trap had already caught another of our sites a week earlier.
Our first version of this was correct and slow, 39 tokens a second. Pinning the memory took it to 67.12, and reading missed experts in place took it to 72.02. Output stayed identical on 20 of 20 prompts the whole way.
The prediction assumed the model and encoder swaps stayed in every arm. On cache-hit shots they did not, and the warm walls landed near 24 seconds. Real time is still about 8 to 10 times too slow, so the cache is not a path to the goal.
A memory census named the holder: the CLIP object in the CLIPLoader cache entry. A cache hit skipped the encoder load, RAM after a shot fell from 31.7 GB to 3.1 GB, and the warm shot took 49 s instead of 85 s. About 15 GB of the memory is still unattributed.