HuggingFace offline error

OSError: We couldn't connect to '' to load this file, couldn't find it in the cached files and it looks like custom-model
 is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at ''.

I have ensure to set:

HUGGINGFACE_HUB_CACHE to the dir /models

inside /models:
contains custom-model which is a folder containing:

blobs config.json refs snapshots