AI SeedbankHelp preserve open and free AI for humanity's future

← All models

fastino_gliner2-base-v1

fastino · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


library_name: gliner2 license: apache-2.0 language:

  • en tags:
  • Text classification
  • Named Entity Recognition
  • Relation Extraction
  • Intent classification
  • Sentiment Analysis
  • Topic classification
  • Structured extraction
  • Json extraction

GLiNER2: Unified Schema-Based Information Extraction and Text Classification

Extract entities, classify text, parse structured data, and extract relations—all in one efficient model.

GLiNER2 unifies Named Entity Recognition, Text Classification, Structured Data Extraction, and Relation Extraction into a single 205M parameter model. It provides efficient CPU-based inference without requiring complex pipelines or external API dependencies.

Fine-tune via Fastino. Join discussions on Discord and Reddit.

✨ Why GLiNER2?

  • 🎯 One Model, Four Tasks: Entities, classification, structured data, and relations in a single forward pass
  • 💻 CPU First: Lightning-fast inference on standard hardware—no GPU required
  • 🛡️ Privacy: 100% local processing, zero external dependencies

Installation

pip install gliner2

Usage

Entity Extraction

from gliner2 import GLiNER2

# Load the model
extractor = GLiNER2.from_pretrained("fastino/gliner2-base-v1")

# Extract entities
text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday."
result = extractor.extract_entities(text, ["company", "person", "product", "location"])

print(result)
# Output: {'entities': {'company': ['Apple'], 'person': ['Tim Cook'], 'product': ['iPhone 15'], 'location': ['Cupertino']}}

Text Classification

# Single-label classification
result = extractor.classify_text(
    "This laptop has amazing performance but terrible battery life!",
    {"sentiment": ["positive", "negative", "neutral"]}
)
print(result)
# Output: {'sentiment': 'negative'}

# Multi-label classification
result = extractor.classify_text(
    "Great camera quality, decent performance, but poor battery life.",
    {
        "aspects": {
            "labels": ["camera", "performance", "battery", "display", "price"],
            "multi_label": True,
            "cls_threshold": 0.4
        }
    }
)
print(result)
# Output: {'aspects': ['camera', 'performance', 'battery']}

Structured Data Extraction

text = "iPhone 15 Pro Max with 256GB storage, A17 Pro chip, priced at $1199."

result = extractor.extract_json(
    text,
    {
        "product": [
            "name::str::Full product name and model",
            "storage::str::Storage capacity",
            "processor::str::Chip or processor information",
            "price::str::Product price with currency"
        ]
    }
)

print(result)
# Output: {
#     'product': [{
#         'name': 'iPhone 15 Pro Max',
#         'storage': '256GB',
#         'processor': 'A17 Pro chip',
#         'price': '$1199'
#     }]
# }

Multi-Task Schema Composition

# Combine all extraction types
schema = (extractor.create_schema()
    .entities({
        "person": "Names of people or individuals",
        "company": "Organization or business names",
        "product": "Products or services mentioned"
    })
    .classification("sentiment", ["positive", "negative", "neutral"])
    .structure("product_info")
        .field("name", dtype="str")
        .field("price", dtype="str")
        .field("features", dtype="list")
)

text = "Apple CEO Tim Cook unveiled the iPhone 15 Pro for $999."
results = extractor.extract(text, schema)

print(results)
# Output: {
#     'entities': {'person': ['Tim Cook'], 'company': ['Apple'], 'product': ['iPhone 15 Pro']},
#     'sentiment': 'positive',
#     'product_info': [{'name': 'iPhone 15 Pro', 'price': '$999', 'features': [...]}]
# }

Model Details

  • Model Type: Bidirectional Transformer Encoder (BERT-based)
  • Parameters: 205M
  • Input: Text sequences
  • Output: Entities, classifications, and structured data
  • Architecture: Based on GLiNER with multi-task extensions
  • Training Data: Multi-domain datasets for NER, classification, and structured extraction

Performance

This model is optimized for:

  • Fast CPU inference (no GPU required)
  • Low latency applications
  • Resource-constrained environments
  • Multi-task extraction scenarios

Citation

If you use this model in your research, please cite:

@misc{zaratiana2025gliner2efficientmultitaskinformation,
      title={GLiNER2: An Efficient Multi-Task Information Extraction System with Schema-Driven Interface}, 
      author={Urchade Zaratiana and Gil Pasternak and Oliver Boyd and George Hurn-Maloney and Ash Lewis},
      year={2025},
      eprint={2507.18546},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2507.18546}, 
}

License

This project is licensed under the Apache License 2.0.

Links

  • Repository: https://github.com/fastino-ai/GLiNER2
  • Paper: https://arxiv.org/abs/2507.18546
  • Organization: Fastino AI

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:f1dad9351ac089b33a22b5ff5e5acb2da44bc16f&dn=fastino_gliner2-base-v1

Open magnet in torrent client · infohash f1dad9351ac089b33a22b5ff5e5acb2da44bc16f

Files & hashes

PathSizesha1sha256
GitHub_new.jpg837.9 KB (858,002 B)5807cd975118726f9eeb930b54b7abb959de72cb428f13aa08f1aa12370c4a644f235ddc46db85e429a1dee6a8d22ead095f2183
README.md6.3 KB (6,427 B)3799933b0993bfe35292f183edf34b3fe2671e8a59a893f3eeb7f1888b793c86ebae534f11e48fa08e65443b269d4f34d8cea6f4
added_tokens.json230 B (230 B)81161d86037b6e8550da31ac6b725c04864cd2ad3c274ca559be8b7b18febf616724ec05f8a8abccd428bd2744608f45f7a0b067
config.json236 B (236 B)01f0a2ca100d65c3303b1724f4447ba73cfa225f33d8aa009deed4b5435d162e08b5a720b252a0084e59d30d366b37da8c0193c5
encoder_config/config.json823 B (823 B)1842021ed80c7a06b5682b7efd1a85d5ef8274039840a4db70bc007e6b65d336ebe2bddc53bc2ce210dc5757e50d5bb17122f7cd
image/GitHub.png4.2 MB (4,408,751 B)0b462e2796afd25505494c75ce10b5c6e17f3791c945cbd7b6178aa0e80ed2f10382d6edf59799e3e0dd9b24e3e8c5fe58c02deb
model.safetensors795.3 MB (833,938,108 B)8a138d813d45de86e1c079a5f9ba153329e69ae9845fc4bd93c525b86124c58ab4f56c9eacf8587953086b14c501fab25957c007
special_tokens_map.json2.4 KB (2,414 B)4f5d30b2c191a6fe27a92901a543cfad1f9832ab84ea70143f533d7e99b393d87f20010887a9ac2cba955828ef313886e4e83f4f
spm.model2.4 MB (2,464,616 B)1993e578cb006883fd01014f831c6261e8136823c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
tokenizer.json8.2 MB (8,650,701 B)a0235ed3d37fd39d6f2acd76f48632a7bb7238de1b7fbabfb4c690bed84c6793bfecae9b8dfe205751b04f9ffd1e76a1e7df9c16
tokenizer_config.json3.2 KB (3,240 B)530c095cfdb57447e6dbc254f5eba270a1c45b794e6c6a8d26478b670692916266438485403b0c54af31fd1a12bab8a465d062e9

Cite this release

Canonical URL
https://aiseedbank.org/models/fastino_gliner2-base-v1/
Slug
fastino_gliner2-base-v1
Infohash
f1dad9351ac089b33a22b5ff5e5acb2da44bc16f
License
apache-2.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: fastino_gliner2-base-v1.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositoryfastino/gliner2-base-v1
Revision (pinned)8437ba583a733d87f56ae902f3b197934eedd58e
Fetched at2026-09-03T22:58:53Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T22:59:05Z

apache-2.0810.9 MB (850,333,548 bytes)gliner2safetensorsextractorText classificationNamed Entity RecognitionRelation ExtractionIntent classificationSentiment AnalysisTopic classificationStructured extractionJson extraction1 language (en)paper: 2507.18546