Question about vmap in pytorch
yanchi-3dv opened this issue · 1 comments
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!
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