Not able to import MBart50TokenizerFast from transformers

Hi I am not able to import MBart50TokenizerFast from transformers. Below is the error that it is giving

In [6]: from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-6-6bac02268080> in <module>
----> 1 from transformers import MBartForConditionalGeneration, MBart50TokenizerFast

ImportError: cannot import name 'MBart50TokenizerFast' from 'transformers' (unknown location)

Below are the transformers and torch versions

 $ pip freeze | grep transformers
transformers==4.3.2
$ pip freeze | grep torch
torch==1.7.1

AFAIK this model+tokenizer is not part of a full release yet. You’ll have to install from the master branch to use it.

1 Like