-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' while importing from nemo.collections.asr.models import EncDecMultiTaskModel #9793
Comments
NeMo is notorious for not pinning their versions ( I am also running into this problem but at the time of writing this message, I have not tried out the recommended solution. Hope this helps! |
This issue is likely caused by a version mismatch between the nemo_toolkit and the huggingface_hub package.
By matching the I hope this helps others facing the same issue! |
When I install
I guess you could use |
Thanks @vygodisgreat - that fix worked for me (huggingface-hub==0.23.2) |
Again it doesn't work with the out of the box version (huggingface-hub==0.23.2) works though |
I am attempting to use the tutorial code found on huggingface's ''. While importing from nemo.collections.asr.models import EncDecMultiTaskModel I produce the following code. ImportError: cannot import name 'ModelFilter' from 'huggingface_hub'. I have matched the HF package in the requirements documents.
File --------------------lib/python3.10/site-packages/nemo/core/classes/common.py:31
29 import torch
30 import wrapt
---> 31 from huggingface_hub import HfApi, HfFolder, ModelFilter, hf_hub_download
32 from huggingface_hub.hf_api import ModelInfo
33 from omegaconf import DictConfig, OmegaConf
ImportError: cannot import name 'ModelFilter' from 'huggingface_hub'
The text was updated successfully, but these errors were encountered: