Run this model with HF Jobs
Run urchade/gliner_base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/urchade/gliner_base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/urchade/gliner_base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use urchade/gliner_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use urchade/gliner_base with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("urchade/gliner_base") text = "Cristiano Ronaldo dos Santos Aveiro was born on 5 February 1985 in Funchal, Madeira, Portugal." labels = ["person", "date", "location"] entities = model.predict_entities(text, labels) for entity in entities: print(entity["text"], "=>", entity["label"]) - Notebooks
- Google Colab
- Kaggle
GLiNER in firewalled / offline setting
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.
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.