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

advice on scaling #77

Open
bkmartinjr opened this issue May 21, 2023 · 0 comments
Open

advice on scaling #77

bkmartinjr opened this issue May 21, 2023 · 0 comments

Comments

@bkmartinjr
Copy link

Thank you for an excellent package!

I am working with very large single cell datasets, attempting to embed various latent spaces generated from these data using pymde. Data sizes are commonly (30M, 30) or larger (currently up to 60M,30 and growing). I've been using a single-cell recipe from scVI, which is:

    mde = pymde.preserve_neighbors(
        data,
        embedding_dim=2,
        constraint=pymde.Standardized(),
        repulsive_fraction=0.7,
        verbose=verbose,
        device=device,
        n_neighbors=15,
    )

The preserve_neighbors API runs out of memory using default parameters (for both CPU and Cuda devices). As noted in the docs, using init="random" improves this somewhat, but it still OOMs with approx 10% of our full dataset on a GPU with 24GiB of RAM.

I was wondering if you could provide further advice on approaches to embedding extremely large matrices.

Thank you.

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

No branches or pull requests

1 participant