-
Notifications
You must be signed in to change notification settings - Fork 52
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
Multithreading issue with palantir.utils.run_magic_imputation() #133
Comments
Hi @gighuarhguggg45! Thank you for reporting. This sounds like your ad.X = np.asarray(ad.X)
imputed_X = palantir.utils.run_magic_imputation(ad, n_jobs=16) and see if this fixes the problem? Otherwise, I would need some example data to reproduce this. |
I get the same error when I use pytorch dataloader with |
Just to clarify: We do not explicitly use jax in the Please let me know if the solution suggested above fixes the problem. |
@wbrett87 can you please inspect |
@wbrett87, it appears that your |
ad.obsp["DM_Similarity"] is not a JAX array. I ran with one job as a temporary workaround. I will provide a simplified code snippet at some point soon when I have a bit more time. Thanks for your attention to this! |
Hi,
Thank you for your work with Palantir. I have been running into issues with
imputed_X = palantir.utils.run_magic_imputation(ad,n_jobs=16)
(or any n_jobs > 1).
I get the following warning shortly after the run starts, which always ends up with the python kernel dying after a while.
I do not get any errors with:
imputed_X = palantir.utils.run_magic_imputation(ad,n_jobs=1)
But n_jobs=1 just runs forever and never produces a result with my large scATAC anndata (101,966 cells and 228,892 features, with 30,000 variable features).
Of note, when I run the tutorial Palantir analysis notebook, I still get the warning, but I do not get the crash.
I am using 80 vCPUs and 640GB of memory. I'm using python 3.9.2
Thank you.
The text was updated successfully, but these errors were encountered: