Instructions to use FluidInference/gliner2-5-small-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use FluidInference/gliner2-5-small-coreml with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("FluidInference/gliner2-5-small-coreml") # 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
Download pyproject.toml from FluidInference/gliner2-5-small-coreml: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/FluidInference/gliner2-5-small-coreml/resolve/main/pyproject.toml
- Command line
-
hf download hf://FluidInference/gliner2-5-small-coreml/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/FluidInference/gliner2-5-small-coreml/resolve/main/pyproject.toml
612 Bytes
| [project] | |
| name = "gliner2-small-coreml" | |
| version = "0.1.0" | |
| description = "Pinned GLiNER 2.5 small decision classifier Core ML export" | |
| requires-python = ">=3.12,<3.13" | |
| dependencies = [ | |
| "coremltools==9.0", | |
| "gliner2[local]==2.0.0", | |
| "huggingface-hub>=0.34,<1", | |
| "numpy<2.3", | |
| "protobuf>=5,<7", | |
| "sentencepiece>=0.2,<0.3", | |
| "torch==2.7.0", | |
| "transformers==4.57.6", | |
| ] | |
| [dependency-groups] | |
| dev = ["pytest>=8.4", "ruff>=0.13"] | |
| [tool.pytest.ini_options] | |
| testpaths = ["tests"] | |
| pythonpath = ["."] | |
| [tool.ruff] | |
| line-length = 120 | |
| target-version = "py312" | |
| [tool.ruff.lint] | |
| select = ["E", "F", "I"] | |