Instructions to use FluidInference/gliner2-5-multi-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use FluidInference/gliner2-5-multi-coreml with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("FluidInference/gliner2-5-multi-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-multi-coreml: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/FluidInference/gliner2-5-multi-coreml/resolve/main/pyproject.toml
- Command line
-
hf download hf://FluidInference/gliner2-5-multi-coreml/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/FluidInference/gliner2-5-multi-coreml/resolve/main/pyproject.toml
680 Bytes
| [project] | |
| name = "gliner2-multi-coreml" | |
| version = "0.1.0" | |
| description = "Pinned GLiNER 2.5 multi Core ML classification and extraction 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", | |
| "psutil>=7,<8", | |
| "sentencepiece>=0.2,<0.3", | |
| "torch==2.7.0", | |
| "transformers==4.57.6", | |
| ] | |
| [dependency-groups] | |
| dev = ["pytest>=8.4", "ruff>=0.13"] | |
| compression = ["scikit-learn==1.5.1"] | |
| [tool.pytest.ini_options] | |
| testpaths = ["tests"] | |
| pythonpath = ["."] | |
| [tool.ruff] | |
| line-length = 120 | |
| target-version = "py312" | |
| [tool.ruff.lint] | |
| select = ["E", "F", "I"] | |