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

update to work with pytorch 2.x #15

Open
OH-AU opened this issue Apr 9, 2024 · 1 comment
Open

update to work with pytorch 2.x #15

OH-AU opened this issue Apr 9, 2024 · 1 comment

Comments

@OH-AU
Copy link

OH-AU commented Apr 9, 2024

Currently the code doesn't appear to work with current versions of pytorch. Could the code be updated to work with newer versions?
after updating strategy to dp I get the following error:
NotImplementedError: Support for `validation_epoch_end` has been removed in v2.0.0. `BERTAlignModel` implements this method. You can use the `on_validation_epoch_end` hook instead. To access outputs, save them in-memory as instance attributes. You can find migration examples in https://github.com/Lightning-AI/lightning/pull/16520.

@sia-cerebras
Copy link

@OH-AU Any luck with this?

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