Instructions to use Insusty/on-device-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use Insusty/on-device-models with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("Insusty/on-device-models") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Transformers.js
How to use Insusty/on-device-models with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('token-classification', 'Insusty/on-device-models'); - Notebooks
- Google Colab
- Kaggle
Commit History
27 days ago
-
Add the GLiNER2 on-device exports and the model card
Verified signaturegliner2-pii-multi-v1 (manifest sha256 850ab927745757dbbcf37c2618e3d059178ac2498d3d705b2432e00cab7e8dc6) and gliner2-multi-v1 (manifest sha256 cbf180db4edcfb334b43b0e19ab3e8b1a880b66b60448280b287d0a116c9fe26), exported with scripts/models/gliner2-export.py (export version 1).c981626 -
initial commit
Verified signatureba16103