I was referring to this answer from stackoverflow but I can't get any leads regarding my problem: [https://stackoverflow.com/questions/63141267/importerror-cannot-import-name-automodelwithlmhead-from-transformers][1]
This is the code that I ran:
import transformers
from transformers import AutoModelWithLMHead
Results:
cannot import name 'AutoModelWithLMHead' from 'transformers' (/Users/xev/opt/anaconda3/lib/python3.7/site-packages/transformers/__init__.py)
My transformer version is '3.0.2'. My import for AutoTokenizer is fine.
Would appreciate if there's anyone who can help regarding the Transformers package! [1]: ImportError: cannot import name 'AutoModelWithLMHead' from 'transformers'
Please try,