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

Requirements/pre-requisites for this code to run? #1

Open
utility-aagrawal opened this issue Sep 7, 2023 · 0 comments
Open

Requirements/pre-requisites for this code to run? #1

utility-aagrawal opened this issue Sep 7, 2023 · 0 comments

Comments

@utility-aagrawal
Copy link

Hi @SShah30-hue

Can you post the requirements file for this repo? I am getting a lot of errors because of mismatches in python packages I believe. For example,

RoBERTa.ipynb:

from pytorch_lightning.metrics.functional import accuracy, f1, auroc

These metrics aren't supported by pytorch_lightning anymore (See this - Lightning-AI/pytorch-lightning#2207 (comment))

I used torchmetrics and was able to proceed but got the following error later:

NotImplementedError: Support for training_epoch_end has been removed in v2.0.0. Tagger implements this method. You can use the on_train_epoch_end hook instead. To access outputs, save them in-memory as instance attributes. You can find migration examples in Lightning-AI/pytorch-lightning#16520.

Thanks for your help!

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

1 participant