β¨ Precaching got a turbo boost! π
Hi hi~ today the caching step stopped being such a lazy little snail! πβ‘οΈπ
-
Before, we loaded one image, encoded it, saved itβ¦ oneβ¦ byβ¦ oneβ¦ zzz π΄ The GPU was basically napping while the disk did all the reading.
-
Now we have a squad of worker threads (cache_workers) fetching images in parallel while the GPU chomps through them in batches (cache_batch_size). I/O and compute finally hold hands and work together! π€
-
Bonus: a cute little progress log tells you img/s and ETA, so you know exactly when snack time ends. πͺβ±οΈ
-
Also added a safety hug for resumes!
If you try to resume a checkpoint with a different config, the trainer now gently stops and asks βare you suuure? type βyesβ~β π₯Ί No more silently mixing old weights with new settings and crying later. In non-interactive mode it just aborts to keep you safe. π
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.