This model is a
fine-tune of fastino/gliner2-multi-v1, the official multilingual GLiNER2 model released by
Fastino. GLiNER2 is the open-vocabulary NER architecture originally proposed by
Urchade Zaratiana and collaborators (
GLiNER paper). We are grateful to the upstream teams for releasing the architecture and base model under Apache-2.0, which made this work possible.
If you use this model, please also cite the original GLiNER work and the Fastino GLiNER2 release.
1from gliner2 import GLiNER2
2
3model = GLiNER2.from_pretrained("ottema/gliner2-ptbr-harem")
4model = model.to("cuda") # or "cpu"
5
6text = "João da Silva nasceu em São Paulo em 1990 e trabalha na Petrobras."
7entities = model.extract_entities(
8 text,
9 entity_types=["pessoa", "organização", "local", "data", "valor_monetário"],
10 threshold=0.4,
11)
12print(entities)
13# {'entities': {'pessoa': ['João da Silva'], 'local': ['São Paulo'], 'data': ['1990'], 'organização': ['Petrobras']}}
We ran 5 experiments beyond standard fine-tuning. Full ablation below:
1@software{ottema_gliner2_ptbr_2026,
2 author = {Ottema},
3 title = {GLiNER2-PTBR: Open-source Brazilian Portuguese NER},
4 year = {2026},
5 version = {0.12b},
6}