can't import TFBertModel from transformers
See original GitHub issuethis is the log when I imported the TFBertModel from transformers
from transformers import TFBertModel
ImportError: cannot import name 'TFBertModel' from 'transformers' (/home/cally/.local/lib/python3.7/site-packages/transformers/__init__.py)
my enviroment is transformers 2.4 linux python 3.7
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
cannot import name 'TFBertModel' from 'transformers ...
I'm trying to use a tensorflow model with huggingface transformers. No success so far... Any hint would be appreciated !
Read more >Importing TFDebertaModel - Beginners - Hugging Face Forums
However, when I try to import it using the line below, ... ImportError: cannot import name 'TFDebertaModel' from 'transformers' (unknown ...
Read more >HuggingFace TFBertModel - Kaggle
!pip install transformers import transformers. Requirement already satisfied: transformers in /opt/conda/lib/python3.7/site-packages (2.9.0) Requirement ...
Read more >cannot import name 'TFAutoModel' from 'transformers'
ImportError: cannot import name 'TFAutoModel' from 'transformers'. Add Answer | View In TPC Matrix. Technical Problem Cluster First Answered On May 29, ...
Read more >Issue with transformer version 2.11.0 with pip3 install rasa ...
This installs transformers version 2.11.0. When I run rasa run actions , I get this error. ImportError: cannot import name ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That’s because you don’t have TensorFlow 2 installed.
You might want to try this:
conda install -c huggingface transformers
(ref: https://pypi.org/project/transformers/)