Instructions to use mortsn/handler-gliner2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use mortsn/handler-gliner2 with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("mortsn/handler-gliner2") # 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 README.md from mortsn/handler-gliner2: direct link, hf CLI and curl.
- Browser
- Download file 1.46 kB
-
https://huggingface.co/mortsn/handler-gliner2/resolve/main/README.md
- Command line
-
hf download hf://mortsn/handler-gliner2/README.md
-
curl -L -o README.md https://huggingface.co/mortsn/handler-gliner2/resolve/main/README.md
1.46 kB
| license: apache-2.0 | |
| base_model: fastino/gliner2.5-base-v1 | |
| base_model_relation: finetune | |
| library_name: onnx | |
| pipeline_tag: zero-shot-classification | |
| language: | |
| - en | |
| tags: | |
| - onnx | |
| - gliner2 | |
| - game | |
| # Handler GLiNER2 (order reader) | |
| Fastino's GLiNER2.5 base (194M) fully fine-tuned to read spoken orders in the game Handler, a voice-driven stealth | |
| comedy where you order two spies by voice. One encoder pass over the order answers seven classification groups: | |
| `action`, `target`, `trigger`, `pace`, `negated`, `agrees`, `which`. | |
| It was trained on the web game's GLiClass data (3 epochs, fp32, held-out split by utterance id). Through the game's | |
| brain on 126 hand-checked parity orders it scores 0.842 joint accuracy (GLiClass v4 Edge fine-tune: 0.833), at about | |
| 80-90 ms an order on the GPU. | |
| ## Files | |
| | File | What it is | | |
| |---|---| | |
| | `encoder_fp16.onnx` | The encoder in fp16 (DirectML or CPU) | | |
| | `classifier.onnx` | The classification head | | |
| | `tokenizer.json` | The tokenizer | | |
| | `calibration.json` | Softmax temperature (2.55), fitted on the held-out rows | | |
| | `tuned/gliner2.5-base-v1-gcall/` | The fine-tuned PyTorch checkpoint (gliner2 2.0.0 format) the ONNX files were exported from | | |
| The ONNX files are loaded by the VoiceCommand Unreal plugin (`FGLiNER2`), which reproduces gliner2 2.0.0's input | |
| encoding. The export uses codesoda's gliner2-rs exporters (39ab954), then ORT's fp16 conversion. | |
| ## Credits | |
| GLiNER2.5 by Fastino (Apache-2.0). | |