You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, it seems we cannot directly use thunder to lightning module. The lightning trainer will raise exception telling me that it requires lightning module type, not thunder type.
tldr, instead of compiling a module as a whole, for now you can defer compilation to the point in time when the model is instantiated (which happens in child processes).
That is, you can call self.model = thunder.jit(model) in configure_model, like
📚 Documentation
It seems the documenation didn't cover this, so I am not sure if it should work on pytorch lightning.
The mnist example in the documentation of thunder is using raw pytorch.
cc @Borda @apaz-cli
The text was updated successfully, but these errors were encountered: