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
File size: 1,456 Bytes
bc22519 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | ---
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).
|