Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multimodal: Fix memory leak with MMEmbeddings
On a basic python class, class attributes are handled by reference, meaning that every instance of embeddings would attach to that reference and allocate more memory. Switch to a Pydantic class and factory methods when instantiating. Signed-off-by: kingbri <[email protected]>
- Loading branch information