-
Notifications
You must be signed in to change notification settings - Fork 17
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
torch.jit.script PyG models #346
Comments
If you want to assign to me, I can give it a shot :) |
Sounds great! It seems like we can essentially do it after the model definition and just in the training class? For future reference, this is your commit from the old repo. |
So essentially we might just modify this single line here and do
|
I tried that very lazily and got
so there might be some things to be sorted out.
Or instead, we could simply JIT the interaction network step itself somewhere (because that's a much simpler object than the compound models built from INs) |
I jit compiled the MLPs within the IN for now (which works out of the box), so hopefully that already gives us some boost. |
This is the message if I try to just jit the whole IN:
didn't look into this more |
I think pytorch no longer works on https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html#torch-compile-tutorial |
And with lightning: https://lightning.ai/blog/training-compiled-pytorch-2.0-with-pytorch-lightning/ |
Javier did it to old IN model
The text was updated successfully, but these errors were encountered: