---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

[Models](/models)/[Document Analysis](/models?category=document)/fastino/gliner2-base-v1

HFDocument StructureApache 2.0

# gliner2-base-v1

by fastino

Unified NER, classification, and structured extraction in a single 205M CPU-efficient model

379Kdl/month

205Mparams

[HuggingFace](https://huggingface.co/fastino/gliner2-base-v1)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`fastino/gliner2-base-v1`

## Deploy gliner2-base-v1

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

GLiNER 2 unifies named entity recognition, text classification, and hierarchical structured data extraction into a single 205M-parameter model built on a pretrained transformer encoder. Unlike pipeline approaches that chain separate models or LLM-based extraction that requires GPU infrastructure, GLiNER 2 runs efficiently on CPU with an intuitive schema-based interface that accepts natural language type descriptions.

On Mixpeek, GLiNER 2 powers lightweight entity extraction pipelines that run alongside heavier models without competing for GPU resources. Its zero-shot generalization across domains (matching GPT-4o on CrossNER benchmarks) makes it ideal for extracting custom entities from transcripts, OCR output, and document text without fine-tuning.

## Architecture

Pretrained transformer encoder with multi-task composition heads for NER, classification, and structured extraction. 205M parameters. Schema-driven interface supporting natural language entity type descriptions, nested and overlapping spans, and configurable single or multi-label classification.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so gliner2-base-v1 runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The model produces text, so it lands in payload. Give the
          // collection a text vector index and embed that text to make it
          // searchable rather than only filterable.
          payload: { extracted\_text: modelOutput, source\_key: "archive/2026/asset-00412" },
          vectors: { "text-embedding": embeddingOfModelOutput },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// universal\_extractor@v1 runs google/gemini-embedding-2
// (3072-d) over a bucket, with no inference of your own.

## Capabilities

*   Zero-shot NER matching GPT-4o on CrossNER (F1: 0.590 vs 0.599)
*   Named entity recognition with natural language type descriptions
*   Text classification with single or multi-label output
*   Hierarchical structured data extraction
*   CPU-efficient inference, no GPU required

## Use Cases on Mixpeek

Extract custom entities from video transcripts (product names, people, organizations) without fine-tuning

Structured metadata extraction from OCR output for document indexing and filtering

Real-time entity tagging in content moderation pipelines running on CPU

## Benchmarks

Dataset

Metric

Score

Source

CrossNER (zero-shot, 5 domains)

F1

0.590

GLiNER2, Jul 2025: arXiv 2507.18546

CrossNER AI domain

F1

0.547

GLiNER2, Jul 2025: arXiv 2507.18546

## Performance

Input SizeText: up to 512 tokens per chunk

GPU Latency~4ms / chunk (A100)

CPU Latency~25ms / chunk

GPU Throughput~250 chunks/sec (A100)

GPU Memory~0.8 GB

## Common Pipeline Companions

[

openai/whisper-large-v3

Transcription feeding entity extraction

](/model/openai/whisper-large-v3)[

BAAI/bge-large-en-v1.5

Embed extracted entities for semantic search

](/model/BAAI/bge-large-en-v1.5)

## Explore on Mixpeek

[

More Document Analysis models

Compare alternatives in this category

](/models?category=document)[

Best Document AI Platforms

Hand-picked tools & platforms compared

](/curated-lists/best-document-ai-platforms)[

OCR & Document AI Internals

Deep-dive technical guide

](/guides/ocr-document-ai-internals)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationfastino

FeatureDocument Structure

Outputstructure tokens

Modalitiesdocument

RetrieverSection Filter

Parameters205M

LicenseApache 2.0

Downloads/mo379K

[

### Research Paper

GLiNER2: An Efficient Multi-Task Information Extraction System

arxiv.org](https://arxiv.org/abs/2507.18546)

### Build a pipeline with gliner2-base-v1

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

microsoft/layoutlmv3-base

Document Structure

](/model/microsoft/layoutlmv3-base)[

naver-clova-ix/donut-base

Document Structure

](/model/naver-clova-ix/donut-base)[

ibm-granite/granite-docling-258M

Document Structure

](/model/ibm-granite/granite-docling-258M)[

docling-project/SmolDocling-256M-preview

Document Structure

](/model/docling-project/SmolDocling-256M-preview)

### Related in Document Analysis

[

microsoft/table-transformer-detection

Table Extraction

](/model/microsoft/table-transformer-detection)[

microsoft/table-transformer-structure-recognition-v1.1-all

Table Extraction

](/model/microsoft/table-transformer-structure-recognition-v1.1-all)[

poloclub/UniTable

Table Extraction

](/model/poloclub/UniTable)[

microsoft/table-transformer-structure-recognition-v1.1-pub

Table Extraction

](/model/microsoft/table-transformer-structure-recognition-v1.1-pub)