Instructions to use spybyscript/gliner25-base-litert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use spybyscript/gliner25-base-litert with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- GLiNER2
How to use spybyscript/gliner25-base-litert with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("spybyscript/gliner25-base-litert") # 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 NOTICE.txt from spybyscript/gliner25-base-litert: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/spybyscript/gliner25-base-litert/resolve/main/NOTICE.txt
- Command line
-
hf download hf://spybyscript/gliner25-base-litert/NOTICE.txt
-
curl -L -o NOTICE.txt https://huggingface.co/spybyscript/gliner25-base-litert/resolve/main/NOTICE.txt
1.46 kB
| GLiNER2.5 base (gliner2.5-base-v1, fastino/gliner2.5-base-v1 @ 1a8bc24e00dc7300b9017c81d63e3dcdabb26596), by Fastino, licensed under the Apache License 2.0 (LICENSE). Its encoder is DeBERTa-v3-base (Microsoft, MIT License). | |
| Changes: converted to LiteRT by spybyscript (encoder wfp16, fp16hw; head and scorer FP32). The head and scorer wrappers and trace patches are adapted from FluidInference's Core ML conversion (https://huggingface.co/FluidInference/gliner2-5-base-coreml @ ca8ddf6c, Apache-2.0); the encoder rewrite is ported from litert-community/GLiNER2.5-Decide-LiteRT @ c687e899 (Apache-2.0). The token embedding table ships as a float16 file outside the graphs. Weights are the original apart from the precision each variant states. Every trained module is exported: the encoder, the boundary head with the classifier, the candidate scorer, the explicit-span scorer, the relation scorer and the record decoder; the wrappers for the last three are adapted from FluidInference's extraction_export.py. runtime/litert_boundary_runtime.py is ported from FluidInference's extraction_runtime.py, preprocessing.py and extraction_pool.py (Apache-2.0). | |
| model-card.md is the original model card; README.md describes this conversion. | |
| npu/ holds the fp16hw encoder precompiled for Qualcomm Hexagon NPUs with Qualcomm's QAIRT 2.50.0 (the same operators and weights); their runtime, qnn-runtime, is under Qualcomm's AI Stack License and is not distributed here. | |