fr1ll
02/21/2025, 7:36 PMtimm models, without much thought from the user.
Are there any tips for getting things to run memory efficiently?jay
02/21/2025, 7:39 PMjay
02/21/2025, 7:39 PMjay
02/21/2025, 7:39 PMjay
02/21/2025, 7:41 PMfr1ll
02/21/2025, 7:41 PMfr1ll
02/21/2025, 7:51 PMmorsel_size = 1. It's strange to me that the memory issue is a function of number of rows (images) if morsel_size and/or @udf(..., batch_size) are doing what I would expect and doing this in a streaming fashion.jay
02/21/2025, 7:56 PMmobilenetv3_large_100
It could have something to do with the vit models taking a large amount of memory to execute, and maybe some combination of that coupled with the fact that they are much slower so Daft ends up performing a full materialization of your dataset.
I'll let @Colin Ho provide more guidance herefr1ll
02/21/2025, 7:57 PMColin Ho
02/21/2025, 8:59 PMnum_cpus or memory_bytes, which should give more manual control of the parallelism of your udffr1ll
02/23/2025, 3:13 AMtorch dataloader and I eventually get OOM errors there too. I can’t point as daft as the culprit then. I’ll post again here if’n’when I get this fixed and get this daft-based tool in working shape.jay
02/23/2025, 4:26 AM