Files
ai-toolkit/toolkit
hitoshic1982 5fc8fd76de Fix cache_text_encoder device preset missing in BaseModel
BaseModel.set_device_state_preset() has no branch for the
'cache_text_encoder' preset, so when TextEmbeddingCachingMixin calls
set_device_state_preset('cache_text_encoder') the active_modules list
stays empty and the text encoder is placed on CPU. With
cache_text_embeddings enabled on a BaseModel arch (e.g. chroma), every
caption is then encoded on CPU — with a quantized T5-XXL this took
~6.5 minutes per caption (~21 hours for a 205-image dataset) while the
GPU sat idle. StableDiffusion.set_device_state_preset() already has
this branch; this adds the same two lines to BaseModel.
2026-08-29 01:37:39 +08:00
..
2024-07-20 08:21:57 -06:00
2026-05-28 11:34:16 -06:00
2024-07-10 15:20:04 -06:00
2025-04-17 09:00:10 -06:00
2023-08-13 10:25:56 -06:00
2026-08-01 17:43:36 -06:00
2026-07-15 11:59:01 -06:00
2024-02-13 16:00:04 -07:00
2023-07-28 08:16:29 -06:00