Skip to content

Catch HuggingFace wrong model name errors more beautifully

Please catch huggingface_hub.utils._errors.RepositoryNotFoundError when trying to load a model with an unknown name instead of printing a barbaric stacktrace.