I’m new to HF and just got this error, I’m using transformers version 4.2.0.dev0 and pytorch version 1.11.0 with python3.8.
ImportError Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 from transformers import MarkupLMForPretraining
3 model = LayoutLMv2Model.from_pretrained("microsoft/layoutxlm-base")
ImportError: cannot import name 'MarkupLMForPretraining' from 'transformers' (/home/user/miniconda3/envs/fastai6/lib/python3.8/site-packages/transformers/__init__.py)
Is this model restricted? Is it because of my transformers version?