ModuleNotFoundError: No module named 'transformers.modeling_roberta'
im trying to use longformer and in its code it hasfrom transformers.modeling_roberta import RobertaConfig, RobertaModel, RobertaForMaskedLMbut although I install thetransformersand I can doimport transformersI still get an error when I do:from transformers.modeling_roberta import RobertaConfig, RobertaModel, RobertaForMaskedLMany suggestion on how to install it? or what to do?
2021-10-28T19:54:54Z
You should import those objects fromtransformersdirectly.
2021-11-16T19:30:33Z
Im not able to do it, does it mean I have not install some of the parts correctly?