chilly-memory-28057
10/01/2024, 9:07 AMforeach='images'
(iterating on images), and each process reload the clip model.
Is there a way to prevent the model reloading? i.e share model weights between processes, or something else for inference? is batch prediction the only way to go?ancient-application-36103
10/01/2024, 7:19 PMforeach
are independent. there are a few different approaches to make the setup a bit more optimal -
1. simplest would be to batch more images in every task so that number of tasks are reduced
2. you could host the model as a separate service that lives only for the lifecycle of step/flow and the tasks are able to communicate with this service for inference. such a functionality is not available in oss metaflow but in outerbounds.chilly-memory-28057
10/02/2024, 10:32 AMancient-application-36103
10/03/2024, 12:14 AM