Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'official.nlp.bert' #1316

Open
t1endat opened this issue Oct 17, 2023 · 1 comment
Open

ModuleNotFoundError: No module named 'official.nlp.bert' #1316

t1endat opened this issue Oct 17, 2023 · 1 comment

Comments

@t1endat
Copy link

t1endat commented Oct 17, 2023

I am using google colab with GPU, when trying to run cifar/deterministic.py with:

!python3 cifar/deterministic.py \
    --download_data=True \
    --use_gpu=True \
    --num_cores=8

I get this error:

I1017 05:59:10.674577 140288873247360 deterministic.py:250] [deterministic.py:250] Building ResNet model
W1017 05:59:10.796981 140288873247360 __init__.py:123] [__init__.py:123] Skipped BERT models due to ImportError.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/uncertainty_baselines/models/__init__.py", line 116, in <module>
    from uncertainty_baselines.models import bert
  File "/usr/local/lib/python3.10/dist-packages/uncertainty_baselines/models/bert.py", line 30, in <module>
    from official.nlp.bert import bert_models
ModuleNotFoundError: No module named 'official.nlp.bert'

What should I do next, when I look into this repo, seem like don't have any module named official.nlp.bert

@Ank-its
Copy link

Ank-its commented Jan 24, 2024

tokenization is transferred to tools section. so import from official.nlp.tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants