laya vs gliner
Two of the top projects in Open models, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
laya
Single-pass multilingual classifier returning typed decisions with calibrated odds
gliner
Small zero-shot named entity recognition models with training and serving code
Verdict
laya ranks higher, 89 to 73. Of the 4 score parts we measure for both, laya leads on 3, gliner on none and 1 is even.
- Adoptionlaya leads by 36 points, 96 to 60: a wide gap.
- FreshnessEven at 100.
- Maintenancelaya leads by 10 points, 92 to 82.
- Agent-readylaya leads by 30 points, 30 to 0: a wide gap.
Pick laya if you are
Engineers routing or triaging text with calibrated, low-latency classifiers
- Answers carry conformal prediction sets, abstain and out-of-distribution flags, and a route field
- Reports 33 ms per decision on a T4 with the English checkpoint
Pick gliner if you are
Engineers needing local entity extraction or PII redaction without an LLM
- Arbitrary entity labels at inference time, no labeled data needed
- Runs on CPU; FP16, INT8, torch.compile and ONNX export available
| What we compare | laya | gliner |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 96, widely used | 60, popular |
| Freshness | 100, active | 100, active |
| Maintenance | 92, healthy | 82, healthy |
| Agent-ready | 30, minimal | 0, none |
| Facts from GitHub and the README | ||
| Stars | 36.1k | 4.3k |
| License | Apache-2.0 (permissive) | Apache-2.0 (permissive) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | Nov 2026 |
| Language | Python | Python |
| Docker | Yes | Yes |
| GPU | Optional | Optional |
| arm64 or Apple Silicon | Mentioned | Not stated |
laya
Laya answers structured questions (choice, score, yes/no) about text in one non-autoregressive forward pass, using ModernBERT-based checkpoints of about 150M to 421M parameters, or a 0.8B reader via the vegaml option. Each answer carries probabilities, a conformal prediction set, an abstain flag and an auto/review route. It can fit small heads and calibrate on your own labels (35 rows minimum in the example) without changing the base model.
Who it is for: Engineers routing or triaging text with calibrated, low-latency classifiers
Strengths
- Answers carry conformal prediction sets, abstain and out-of-distribution flags, and a route field
- Reports 33 ms per decision on a T4 with the English checkpoint
- Covers 100+ languages; vegaml mode takes images, audio, video and 73,728-token documents
- Fits heads on your labels in seconds without gradient updates to the reader
Weaknesses
- Returns typed decisions only; it does not generate free text
- In the 40-row fit example, all 20 held-out rows routed to review
- Long-document accuracy on laya-multilingual varies beyond about 4,000 tokens
- Base English checkpoint scored 0.362 on typed-decisions; fine-tuning needed for domain accuracy
- GPU optional
- Docker + Compose
- Needs PyTorch, Hugging Face Hub, ffmpeg (video input)
- Models: laya (English), laya-multilingual, laya-typed-decisions, vega-U 0.8B, Qwen3.5-4B reader
gliner
GLiNER is a Python framework for training and running small transformer models that extract entities of any user-supplied label from text, without task-specific training. Variants cover bi-encoder label scaling, joint entity and relation extraction, streaming NER and PII detection. It runs on CPU, supports FP16/INT8 quantization, torch.compile and ONNX export, and includes a Ray Serve HTTP server.
Who it is for: Engineers needing local entity extraction or PII redaction without an LLM
Strengths
- Arbitrary entity labels at inference time, no labeled data needed
- Runs on CPU; FP16, INT8, torch.compile and ONNX export available
- Several architectures: uni-encoder, bi-encoder, relation extraction, decoder, streaming
- Includes fine-tuning script and Ray Serve server with dynamic batching
Weaknesses
- Uni-encoder handles only about 50 entity types; more needs the bi-encoder
- INT8 accuracy requires models trained with quantization-aware training
- Classification, entity linking and schema extraction live in separate projects
- Serving layer depends on Ray Serve, an extra install
- GPU optional
- Compose
- Needs PyTorch, Ray Serve (optional, for serving)
- Models: GLiNER uni-encoder, GLiNER bi-encoder, GLiNER RelEx, GLiNER Decoder, StreamingSpan
- port 8000
More in Open models
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.
AI app development →Send a project brief (opens in a new tab)