Views
No views yet
| File | Quant | Size | Notes |
|---|---|---|---|
gliner-deberta-f32.gguf | F32 | 747 MB | Full precision |
gliner-deberta-q8_0.gguf | Q8_0 | 198 MB | Recommended |
gliner-deberta-q4_k.gguf | Q4_K | 152 MB | Max compression |
microsoft/deberta-v3-base with SentencePiece tokenizer (128K vocab).1# CLI
2./crispembed -m gliner-deberta-q8_0.gguf \
3 --ner "Tim Cook announced the new iPhone in Cupertino" \
4 --ner-labels "person,organization,location,product" --json
5
6# Auto-download
7./crispembed -m gliner-deberta \
8 --ner "Barack Obama was born in Hawaii" --json
9
10# Server
11./crispembed-server --ner gliner-deberta-q8_0.gguf --port 8080
12curl -X POST http://localhost:8080/ner/extract \
13 -d '{"text": "Tim Cook at Apple", "labels": ["person", "organization"]}'1from crispembed import CrispNER
2
3ner = CrispNER("gliner-deberta-q8_0.gguf")
4entities = ner.extract(
5 "Apple Inc. was founded by Steve Jobs in Cupertino, California",
6 labels=["person", "organization", "location"],
7)
8for e in entities:
9 print(f"{e['text']} => {e['label']} ({e['score']:.2f})")
10# Apple Inc. => organization (1.00)
11# Steve Jobs => person (1.00)
12# Cupertino => location (0.99)
13# California => location (0.97)gliner==0.2.26) — same entities detected on all test inputs. Scores within 0.02-0.09 of PyTorch reference (expected for F32 precision differences in DeBERTa disentangled attention).1python models/convert-gliner-deberta-to-gguf.py \
2 --model /path/to/gliner_medium-v2.1 \
3 --output gliner-deberta-f32.gguf
4./crispembed-quantize gliner-deberta-f32.gguf gliner-deberta-q8_0.gguf q8_0
5./crispembed-quantize gliner-deberta-f32.gguf gliner-deberta-q4_k.gguf q4_kurchade.apache-2.0. This repository redistributes under the same terms; it grants no rights the upstream licence does not.