recommenders icon indicating copy to clipboard operation
recommenders copied to clipboard

Saving Large ScaNN Retrieval Model - memory bottleneck

Open kylemcmearty opened this issue 2 years ago • 0 comments

I have a large retrieval model that uses the ScaNN method for indexing the recommendations.

I'm saving the model out for the retrieval speed increase.

I'm starting to run models with +5M records, and I can't save the model to disk without my system memory crashing.

I've looked into pruning the model and saving the weights. Will this work with the ScaNN index?

Can anyone suggest how to get around the memory bottleneck when saving a large ScaNN retrieval model?

kylemcmearty avatar Aug 02 '22 13:08 kylemcmearty