Token Classification
GLiNER
PyTorch
English

GLiNER in firewalled / offline setting

#8
by Gwn369 - opened

Did anyone get GLiNER up and running yet in an offline environment? I could install and use it perfectly on my laptop, but my work environment unfortunately has no internet connection (we do have an internal pip-repo though) and I can't get it to work there. I downloaded the files, followed instructions from https://huggingface.co/docs/transformers/main/en/installation#offline-mode and got the following problems:

  • complaining that there was no config.json (so I renamed gliner_config.json to config.json)
  • complaining about missing deberta-v3 (so I downloaded that one as well and put it in the same cache-folder)
  • complaining about missing model_type in config.json (so I added it, wasn't sure what to put there though, choose deberta)
  • now it looks like its still missing files in cache, so it's trying to get them from hf_hub_download it seems, or urchade/gliner_base on git still
    I'm new to using models from Hugging Face, so sorry if I forgot something obvious.
Owner

Hi,
Try to install the latest version of gliner: pip install gliner==0.1.5

you may also check on github: https://github.com/urchade/GLiNER

Still the same issues unfortunately. If I set the model_location to my local path (with local_files_only = True), I get the HFValidationError 'Repo id must be in the form 'repo_name', and otherwise I get an max retries error.

Same Issue here. Just can't seem to make it work in an offline setting.

Same problem.

Sign up or log in to comment