gliner vs minicpm
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.
gliner
Small zero-shot named entity recognition models with training and serving code
minicpm
Small open-weight LLM family for on-device use, currently MiniCPM5-2B and 1B
Verdict
gliner ranks higher, 73 to 70. Of the 4 score parts we measure for both, gliner leads on 2, minicpm on 1 and 1 is even.
- Adoptionminicpm leads by 21 points, 81 to 60: a wide gap.
- Freshnessgliner leads by 1 point, 100 to 99: close to even.
- Maintenancegliner leads by 29 points, 82 to 53: a wide gap.
- Agent-readyEven at 0.
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
Pick minicpm if you are
Engineers running small local LLMs for edge, coding-agent or tool-use workloads
- Standard Llama architecture, so it runs in vLLM, SGLang, llama.cpp and Transformers
- Ships GGUF, MLX and GPTQ variants plus a DSpark speculative-decoding draft model
| What we compare | gliner | minicpm |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 60, popular | 81, widely used |
| Freshness | 100, active | 99, active |
| Maintenance | 82, healthy | 53, fair |
| Agent-ready | 0, none | 0, none |
| Facts from GitHub and the README | ||
| Stars | 4.3k | 11.9k |
| License | Apache-2.0 (permissive) | Apache-2.0 (permissive) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | May 2026 |
| Language | Python | Jupyter Notebook |
| Docker | Yes | No |
| GPU | Optional | Optional |
| arm64 or Apple Silicon | Not stated | Mentioned |
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
minicpm
MiniCPM is OpenBMB's family of small dense LLMs. The current release, MiniCPM5-2B, is a 2.5B-parameter LlamaForCausalLM model with a 131,072-token context. It ships in BF16, GGUF, MLX and GPTQ builds, plus a DSpark draft model for speculative decoding in SGLang. The repo also links the UltraData training datasets and deployment and fine-tuning Agent Skills.
Who it is for: Engineers running small local LLMs for edge, coding-agent or tool-use workloads
Strengths
- Standard Llama architecture, so it runs in vLLM, SGLang, llama.cpp and Transformers
- Ships GGUF, MLX and GPTQ variants plus a DSpark speculative-decoding draft model
- 131,072-token context at 2B scale
- Training datasets (UltraData SFT, RL, code, math) are released alongside the weights
Weaknesses
- Benchmark claims come from the authors' own comparison set, not independent evaluation
- Wiki docs are in Chinese; the English README is the main reference
- Repo is a model index and notebooks, not an installable runtime
- llama.cpp default min_p=0.05 can cause repetitive output; sampling needs tuning
- GPU optional
- Needs vLLM >=0.21, SGLang >=0.5.16, transformers >=5.6, llama.cpp
- Models: BF16, GGUF, MLX, GPTQ, Hugging Face Transformers
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)