Closed Fshrink closed 1 year ago
This is a bug because cached_path utility is not used any longer by transformers. It has been replaced by the huggingface_hub library. Can one dev please include this in upcoming patch? Thank you.
Workaround is to install 'cached-path' through pip or other means and to replace "from transformers import cached_path" with "from cached_path import cached_path"
Describe the bug
To Reproduce pip install simpletransformers or ipython from transformers import cached_path
Expected behavior Install would complete and library would be functional
Desktop (please complete the following information):
Linux Ubuntu 22.10 Laptop - CPU only
transformers
version: 4.29.1Additional context Add any other context about the problem here.
Not being able to import this library throws a wrench in pretty much everything downstream, including in the model.py. It eventually prevents to properly load trained saved model. Huggingface says it's a simpletransformers issue. Thanks!!