ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' while importing from nemo.collections.asr.models import EncDecMultiTaskModel
NeMo is notorious for not pinning their versions (`huggingface_hub>=0.20.3` in requirements.txt). `huggingface_hub` released an new version 2 days ago ([release notes](https://github.com/huggingface/huggingface_hub/releases/tag/v0.24.0)). That might be whats causing the issue, especially if you did a fresh install of the `nemo-toolkit` from pip. I recommend doing a forced reinstall of `huggingface_hub` to its previous version and see if that helps. 

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.** 

> ModelFilter and DatasetFilter are completely removed

By matching the `huggingface_hub` version to `0.22.0`, I was able to resolve the import error. If you are using `nemo_toolkit==1.23.0`, this version of `huggingface_hub` should work.

I hope this helps others facing the same issue!
 When I install `huggingface-hub==0.22.0` it says
```
ImportError: huggingface-hub>=0.23.2,<1.0 is required for a normal functioning of this module, but found huggingface-hub==0.22.0.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git main
```

I guess you could use `huggingface-hub==0.23.2`, so that it works 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 Install huggingface-hub<0.24.0 works for me. Has anyone successfully solved this can you please share your env.yaml or requirements.txt along with python version please  After trying a bunch of configurations, this set seems to work for me without any version mismatch error.
```bash
!pip install transformers==4.40.0
!pip install huggingface_hub==0.21.3
!pip install tokenizers>=0.21
!pip install datasets==2.19.0
```
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](http://localhost:8888/home/colton/anaconda3/envs/beer_crawl/lib/python3.10/site-packages/nemo/core/classes/common.py#line=30)
     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'