Instructions to use FrancescoCelino/shroud-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use FrancescoCelino/shroud-2 with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("FrancescoCelino/shroud-2") # 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
Shroud 2 β GLiNER 2.5 Multi W8A32 ONNX (Torch-Free)
Weight-only INT8 (W8A32) ONNX export of
fastino/gliner2.5-multi-v1
paired with a pruned, pickle-free NumPy boundary head (boundary_head_fp16.npz) for Shroud's
cross-platform macOS + Windows CPU detector ensemble (zero PyTorch, zero transformers).
Provenance & Modifications
- Upstream checkpoint:
fastino/gliner2.5-multi-v1at commit7b005274e82da37dcf1f5fd9d6a2ef413c6a004c(Apache-2.0, seeLICENSE). - Base encoder:
microsoft/mdeberta-v3-base(MIT, seeLICENSE-MIT-mdeberta). - Modifications applied (Apache-2.0 Section 4(b)):
- Dynamic
[batch, seq_len]opset-17 ONNX encoder quantized withMatMulNBits(bits=8,block_size=32, asymmetric,accuracy_level=1) and post-Gatherper-row symmetric INT8 word embeddings in external-data format (encoder_w8.onnx+encoder_w8.onnx_data). - Active 70-tensor
shared-pool entityboundary_head(1,155,394 params) exported to pickle-freeboundary_head_fp16.npz(fp16storage, FP32 compute); unused classification/record/relation heads pruned.
- Dynamic
Runtime Requirements
onnxruntime == 1.32.0(CPUExecutionProvider)numpy,tokenizers- Always run CPU chunking with
batch_size = 1to keep peak RSS under 1.0 GB.
Verified Model Files
| File | Bytes | SHA-256 |
|---|---|---|
encoder_w8.onnx |
936,782 | 15bdd66f7f7bb22af15d66dac77cfe1c8bc8ea9975fd8753030ddcb194285f4f |
encoder_w8.onnx_data |
306,185,216 | 3b6c6156cbdef54203fc684fc3c5a38065ebef7d704ae9469c876d9e7ba2f29e |
boundary_head_fp16.npz |
2,335,230 | 640883bb503fa8dcfbc83dd5d8fb247e2cb19c2a59c0c0819360a1e6af016bb6 |
config.json |
4,104 | 3e4a96bf01da1094180f2d8998411c1a9fd6e2ae4b5b3e4bc6950318cee95bb7 |
tokenizer.json |
16,035,853 | c62446df87ae18ec98b133f8f84fc449a07cc89bbf8ef192a4cb5f9c53777a7a |
tokenizer_config.json |
645 | 0bf3ea0873234bd9bfdd3853c440395009ac6365a925b91654daed5396d655e1 |
License
Derived from Apache-2.0 (fastino/gliner2.5-multi-v1, see LICENSE) and
MIT (microsoft/mdeberta-v3-base, see LICENSE-MIT-mdeberta). See NOTICE for
full modification and provenance details.
- Downloads last month
- -
Model tree for FrancescoCelino/shroud-2
Base model
fastino/gliner2.5-multi-v1