Queryable icon indicating copy to clipboard operation
Queryable copied to clipboard

24000 images, memory leak caused crashes during construction.

Open lichangy opened this issue 1 year ago • 2 comments

24000 images, memory leak caused crashes during construction. The "prediction" method of MLModel leads to a continuous increase in memory.

lichangy avatar May 23 '24 03:05 lichangy

You're right. I tried to write a version using Claude 3.5 Sonnet that controls memory, for example, checking the current memory after each batch and then updating the batch size. This seems to be able to control memory usage. However, the problem is that the indexing speed becomes significantly slower.

If you don't mind the indexing speed slowing down, you can give it a try.

mazzzystar avatar Aug 19 '24 06:08 mazzzystar

I would be willing to give it a try.

antgiant avatar Sep 08 '24 12:09 antgiant