Instructions to use fastino/GLiNER2.5-multi-Decide with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fastino/GLiNER2.5-multi-Decide with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import Gliner2ForSchemaExtraction model = Gliner2ForSchemaExtraction.from_pretrained("fastino/GLiNER2.5-multi-Decide", device_map="auto") - GLiNER2
How to use fastino/GLiNER2.5-multi-Decide with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("fastino/GLiNER2.5-multi-Decide") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Install with the local extra; tag as text-classification
The Install section says pip install gliner2, but the base profile is torch-free and the next line imports AutoExtractor, which fails without the local extra (see the install section in the GLiNER2 README). Also switch pipeline_tag from token-classification to text-classification so the Hub lists this classification checkpoint under the task it serves.
Thanks for the catch. I checked the install point against the GLiNER2 README: plain pip install gliner2 is torch-free and needs the local extra, so the install line is right.
I'd hold the rest of this PR. main has moved since it was opened, and merging it as-is would also revert recent deliberate changes: library_name: transformers, pipeline_tag: schema-extraction, the decision-model tag, and the agent.fastino.ai banner links.
I opened #8 with only the install-line change, on current main. If you want the pipeline_tag or banner changes, they're worth proposing separately so the model owners can decide on each.