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

TypeError: cannot unpack non-iterable NoneType object when loading roberta.large from Fairseq Hub #5588

Open
samvel-karapetyan opened this issue Jan 6, 2025 · 0 comments

Comments

@samvel-karapetyan
Copy link

I'm trying to load the roberta.large model using torch.hub from the Fairseq repository, but I encounter the following error:

TypeError: cannot unpack non-iterable NoneType object

I have tried different environments, including Google Colab, but the error persists. Here's the code snippet causing the issue:

Steps to reproduce the behavior (always include the command you ran):

import torch
roberta = torch.hub.load('pytorch/fairseq', 'roberta.large')
roberta.eval()  # disable dropout (or leave in train mode to finetune)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant