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 'nemo' #2

Open
nourbouaziz98 opened this issue Jul 12, 2021 · 9 comments
Open

ModuleNotFoundError: No module named 'nemo' #2

nourbouaziz98 opened this issue Jul 12, 2021 · 9 comments

Comments

@nourbouaziz98
Copy link

While running the command python models/bert-nvidia/bert_finetuning_SA_DC.py --config-name "sentiment_analysis_config" model.language_model.lm_checkpoint="/path/to/checkpoints/PretrainingBERTFromText--end.ckpt" model.train_ds.file_path="/path/to/train.tsv" model.validation_ds.file_path="/path/to/valid.tsv" model.test_ds.file_path="/path/to/test.tsv" to fine-tune TunBERT-PyTorch on the SA task, I had the following error
image
I tried to install NeMo several times, but the error still persists.

@fourat-bs
Copy link

@nourbouaziz98
try this:
!pip install git+https://github.com/NVIDIA/NeMo.git

@MalekBezzina
Copy link

@nourbouaziz98
try this:
!pip install git+https://github.com/NVIDIA/NeMo.git
i tried following your instruction and I got this error:

D:\tunbert-main>pip install git+https://github.com/NVIDIA/NeMo.git
Collecting git+https://github.com/NVIDIA/NeMo.git
Cloning https://github.com/NVIDIA/NeMo.git to c:\users\delli31\appdata\local\temp\pip-umlhwszh-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 20, in
File "C:\Users\DELLI3
1\AppData\Local\Temp\pip-umlhwszh-build\setup.py", line 106
f'--use-parentheses --line-width={__LINE_WIDTH} -rc -ws'
^
SyntaxError: invalid syntax

@nourbouaziz98
Copy link
Author

@fourat-bs

@nourbouaziz98
try this:
!pip install git+https://github.com/NVIDIA/NeMo.git

Thank you for the suggestion, but it's still not working. It shows the same error

@AltafAllahAbbassi
Copy link

Same here , any solution ?

@AaronCWacker
Copy link

Mine was missing Cython after fresh install running python 3.10... Fixed with pip install Cython. Then missing Microsoft Visual C++ 14.0. Fixed with reinstall of Microsoft Visual C++ 14.0 from runtime install page for PC: https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 and build tools here: https://visualstudio.microsoft.com/visual-cpp-build-tools/ Then pesq fails. Still working on it.

@RezuwanHassan262
Copy link

It worked for me, thanks!

@Firashs01
Copy link

If anyone can provide me with an example of working with TunnBERT, I have a project and I'm currently facing a roadblock. Thank you in advance

@fourat-bs
Copy link

@Firashs01 that's my notebook that I've used back in 2021, it clones my fork of Tunbert and uses fixed versions of the libraries beneath.

@Firashs01
Copy link

@fourat-bs ok thanks so much

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

7 participants