5/19/2026 at 7:19:57 AM
I work on differentiable geometric optics with PyTorch. Seeing a list like this is really illustrative of the power that PyTorch provides when you start considering it like a general purpose GPU-enabled state of the art numerical optimization framework.One thing I wonder is why no one has made a fork of PyTorch yet that removes all the API surface that doesn't produce GPU friendly code. Make dtype and device arg mandatory without defaults, remove in place operations that trigger a CPU sync, etc. This would increase confidence that written code will run on the GPU and pass torch.export() on the first try.
by fouronnes3
5/19/2026 at 9:51:51 AM
Rather than forking PyTorch (which has issues like continually needing updates), could you create a set of linter rules instead?by jamessb
5/19/2026 at 8:12:53 AM
It's useful to be able to run models/code on the CPU or split between CPU and GPU, especially for models that cannot fit into the GPU's VRAM, if you are running multiple models, or if you have training data that you need to move between CPU and GPU.by rhdunn
5/19/2026 at 10:42:17 AM
All of that would be possible with the changes parent poster proposes. See the gotchas section in JAX, which is exactly these limitations:https://docs.jax.dev/en/latest/notebooks/Common_Gotchas_in_J...
by earthnail
5/19/2026 at 5:56:11 PM
> One thing I wonder is why no one has made a fork of PyTorch yet that […]Try and compile the stack from source and you'll find out why nobody is making forks with small divergences.
by WhyNotHugo
5/19/2026 at 2:37:46 PM
Seems like you could write a simple source code checker program to check all of that. Making an extra library just for some (user hostile) tweaks seems like overkill.by DonsDiscountGas
5/19/2026 at 2:50:28 PM
Hi!I'm curious to hear about your work geometric optics with PyTorch. May I ask you to share some examples of something you are working on right now?
by northzen