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

Question about vmap in pytorch #26

Closed
NPU-YanChi opened this issue Jan 17, 2024 · 1 comment
Closed

Question about vmap in pytorch #26

NPU-YanChi opened this issue Jan 17, 2024 · 1 comment

Comments

@NPU-YanChi
Copy link

Thank you for your excellent work!
I would like to ask if this parallel implementation of vmap can only be used for simple mlp, and if I want to use something like instant-ngp is feasible.
Look forward to your reply!

@kxhit
Copy link
Owner

kxhit commented Jan 17, 2024

Hi, that's a great question!

In principle, yes, but you need to modify the CUDA kernels for both the original instant NGP and torch-ngp.
The functorch library I used can automatically handle some parallel operations, and I believe the most common operations in pytorch can be paralleled easily with functorch. For some batched backward functions, you need to follow the instructions of functorch to implement.

Some other interesting related projects:
https://github.com/PJLab-ADG/neuralsim#hammer_and_wrench-multi-object-volume-rendering
https://github.com/XiaoHan-Git/RO-MAP

@kxhit kxhit closed this as completed Aug 16, 2024
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

2 participants