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.

#1212th of 190 in Open models

gliner

Small zero-shot named entity recognition models with training and serving code

#1616th of 190 in Open models

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
gliner vs minicpm: score parts and facts
What we compareglinerminicpm
Score parts, out of 100
Adoption60, popular81, widely used
Freshness100, active99, active
Maintenance82, healthy53, fair
Agent-ready0, none0, none
Facts from GitHub and the README
Stars4.3k11.9k
LicenseApache-2.0 (permissive)Apache-2.0 (permissive)
Last commitNov 2026Nov 2026
Last releaseNov 2026May 2026
LanguagePythonJupyter Notebook
DockerYesNo
GPUOptionalOptional
arm64 or Apple SiliconNot statedMentioned

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.