Find answers from the community

Updated 3 months ago

Following runs fine on Google Colab

Following runs fine on Google Colab hosted runtime but when i run same notebook on local hosted runtime, it throws below error: "RuntimeError: Failed to import optimum.onnxruntime.modeling_ort because of the following error (look up to see its traceback):
cannot import name 'OfflineModeIsEnabled' from 'huggingface_hub.errors' (/home/jatink/.local/lib/python3.10/site-packages/huggingface_hub/errors.py)"
Attachment
image.png
W
L
2 comments
Try restarting the session, maybe some deps are not properly installed
Could be an issue with the version of huggingface_hub too, could try updating or downgrading
Add a reply
Sign up and join the conversation on Discord