Instructions to use urchade/gliner_medium-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use urchade/gliner_medium-v1 with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("urchade/gliner_medium-v1") 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 on CPU with multiple cores
#3
by vijayg - opened
I want to use Gliner on CPU with single core. The medium model takes anywhere between 18- 20 minutes for extracting entities from given text.
My question is, If I were to increase the no of cores of the machine from 1 to 8. Then what time improvement can we expect.