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

← All models

fastino_gliner2-large-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
  • fr
  • es 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-large-v1")

# Extract entities with descriptions for higher precision
text = "Patient received 400mg ibuprofen for severe headache at 2 PM."
result = extractor.extract_entities(
    text,
    {
        "medication": "Names of drugs, medications, or pharmaceutical substances",
        "dosage": "Specific amounts like '400mg', '2 tablets', or '5ml'",
        "symptom": "Medical symptoms, conditions, or patient complaints",
        "time": "Time references like '2 PM', 'morning', or 'after lunch'"
    }
)

print(result)
# Output: {'entities': {'medication': ['ibuprofen'], 'dosage': ['400mg'], 'symptom': ['severe headache'], 'time': ['2 PM']}}

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

# Financial document processing
text = """
Transaction Report: Goldman Sachs processed a $2.5M equity trade for Tesla Inc. 
on March 15, 2024. Commission: $1,250. Status: Completed.
"""

result = extractor.extract_json(
    text,
    {
        "transaction": [
            "broker::str::Financial institution or brokerage firm",
            "amount::str::Transaction amount with currency",
            "security::str::Stock, bond, or financial instrument",
            "date::str::Transaction date",
            "commission::str::Fees or commission charged",
            "status::str::Transaction status",
            "type::[equity|bond|option|future|forex]::str::Type of financial instrument"
        ]
    }
)

print(result)
# Output: {
#     'transaction': [{
#         'broker': 'Goldman Sachs',
#         'amount': '$2.5M',
#         'security': 'Tesla Inc.',
#         'date': 'March 15, 2024',
#         'commission': '$1,250',
#         'status': 'Completed',
#         'type': 'equity'
#     }]
# }

Multi-Task Schema Composition

# Comprehensive legal contract analysis
contract_text = """
Service Agreement between TechCorp LLC and DataSystems Inc., effective January 1, 2024.
Monthly fee: $15,000. Contract term: 24 months with automatic renewal.
Termination clause: 30-day written notice required.
"""

schema = (extractor.create_schema()
    .entities(["company", "date", "duration", "fee"])
    .classification("contract_type", ["service", "employment", "nda", "partnership"])
    .structure("contract_terms")
        .field("parties", dtype="list")
        .field("effective_date", dtype="str")
        .field("monthly_fee", dtype="str")
        .field("term_length", dtype="str")
        .field("renewal", dtype="str", choices=["automatic", "manual", "none"])
        .field("termination_notice", dtype="str")
)

results = extractor.extract(contract_text, schema)

print(results)
# Output: {
#     'entities': {
#         'company': ['TechCorp LLC', 'DataSystems Inc.'],
#         'date': ['January 1, 2024'],
#         'duration': ['24 months'],
#         'fee': ['$15,000']
#     },
#     'contract_type': 'service',
#     'contract_terms': [{
#         'parties': ['TechCorp LLC', 'DataSystems Inc.'],
#         'effective_date': 'January 1, 2024',
#         'monthly_fee': '$15,000',
#         'term_length': '24 months',
#         'renewal': 'automatic',
#         'termination_notice': '30-day written notice'
#     }]
# }

Model Details

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

Performance

This large model provides:

  • Enhanced accuracy on complex extraction tasks
  • Better performance on ambiguous or difficult cases
  • Improved handling of specialized domains (medical, legal, financial)
  • Efficient CPU inference (GPU optional for faster processing)
  • Superior multi-task performance

Use Cases

The large model excels in:

  • Medical information extraction
  • Legal document analysis
  • Financial document processing
  • Complex multi-entity scenarios
  • High-precision extraction requirements
  • Domain-specific applications

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:4ff5c583c2d2459a035978ee142ddf438d4cabb0&dn=fastino_gliner2-large-v1

Open magnet in torrent client · infohash 4ff5c583c2d2459a035978ee142ddf438d4cabb0

Files & hashes

PathSizesha1sha256
GitHub_new.jpg837.9 KB (858,002 B)5807cd975118726f9eeb930b54b7abb959de72cb428f13aa08f1aa12370c4a644f235ddc46db85e429a1dee6a8d22ead095f2183
README.md8.0 KB (8,162 B)6227156c13e2c6beb0581a14505c322fe1ee22d92c82d98c2ff4c0c70a664d3a23ea464a906ef5ad4798b30d7adb3233991511e1
added_tokens.json230 B (230 B)81161d86037b6e8550da31ac6b725c04864cd2ad3c274ca559be8b7b18febf616724ec05f8a8abccd428bd2744608f45f7a0b067
config.json226 B (226 B)5e8b48f4a6c804aafc93a2c82424df160b3a6cc1c922a9df649bbb3634f4ef6d8f6cf7ed4896501ae31968cffa8cb81531ec9c6e
encoder_config/config.json825 B (825 B)3c2dbdc55cd5b3a13da00fd9ee30181cda1ac93e2a7be53d307cb0d4c80b4bd08ce4be9c02c447afd285c71dec853428a4fa5286
image/GitHub.png4.2 MB (4,408,751 B)0b462e2796afd25505494c75ce10b5c6e17f3791c945cbd7b6178aa0e80ed2f10382d6edf59799e3e0dd9b24e3e8c5fe58c02deb
model.safetensors1.81 GB (1,945,828,140 B)4f2c4be54c0307a479fd275b65d81b434d4ca48792a76e84cd4de59e15e3f6577bef9e4304929667551ee053665eba365510638e
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,236 B)785090dab756aca6eff4c7ecd47164cbd202bff2d53b9e4665ea984792aab93a0b49a326500105b1144e763da1550957b57a7ffa

Cite this release

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

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

Provenance

Upstream repositoryfastino/gliner2-large-v1
Revision (pinned)6a498b5a28ec3908bbc5277aeb47d22bcfc02f33
Fetched at2026-09-03T22:59:05Z
License at fetchapache-2.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

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

apache-2.01.83 GB (1,962,225,303 bytes)gliner2safetensorsextractorText classificationNamed Entity RecognitionRelation ExtractionIntent classificationSentiment AnalysisTopic classificationStructured extractionJson extraction3 languages (en, fr, es)paper: 2507.18546