Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Expose stochastic solve method #14

Open
akshayka opened this issue Mar 26, 2021 · 3 comments
Open

[Feature] Expose stochastic solve method #14

akshayka opened this issue Mar 26, 2021 · 3 comments

Comments

@akshayka
Copy link
Member

For extremely big problems (problems too large to fit in RAM/GPU memory), the stochastic solve method from chapter 6 of the monograph is useful. This has already been implemented.

This is a tracking issue, for exposing the stochastic solve method to the public API.

@psychobas
Copy link

Hi @akshayka, thanks for the awesome package! Do you already know when the stochastic solve method will be exposed to the public API?

@akshayka
Copy link
Member Author

akshayka commented Dec 3, 2021

Hi @psychobas, thank you for the kind words!

I do not know when the method will be exposed, or rather "officially supported", but all the code already exists and is available within this repository.

You're welcome to play around with it, though you very well may find bugs or inefficiencies.

In particular, check out

Out of curiosity, are you interested in this feature because you need to compute a very large embedding?

@psychobas
Copy link

Hi @akshayka

Ah great, thanks, will check that out!

Yes, I was trying to use preserve_distances on 600'000 SBERT embeddings on an A100 GPU and it failed because of memory (tried to allocate 71.53 GiB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants