cannot import name 'OFAForConditionalGeneration'

#1
by TaoAtMS - opened

Hi experts:

I was investigating the OFA API。 However, when I follow your guide here:
OFA-Sys/OFA-tiny · Hugging Face

I encountered some errors, could you help me?

from transformers import OFATokenizer, OFAForConditionalGeneration
ImportError: cannot import name 'OFAForConditionalGeneration'

AND here is my environment:
Python 3.6.10 |Anaconda, Inc.| (default, May 8 2020, 02:54:21)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import torch
t>>> torch.version
'1.10.1+cu102'

https://huggingface.co/OFA-Sys/OFA-tiny

Sorry for the missing update of readme. There are some changes in the code and also a change in naming. Try again following the new readme instrcution and see if it works.

Sign up or log in to comment