/ Модель

Характеристики

Контекст
8 192 токена
Лицензия
Apache 2.0
Архитектура
extractor · dense
Базовая модель
mmBERT-small
Опубликована
13 мар 2026

gliner-guard-biencoder

Классификация без дообученияТекст → label5 профессий

Мультиязычный энкодер для классификации безопасности, обнаружения атак на LLM и извлечения персональных данных из текста.

72скачиваний за 30 дней6лайковвеса обновлены16 мая 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

GLiNER Guard — компактная мультиязычная модель-энкодер, разработанная HiveTrace на архитектуре GLiNER2 и основанная на jhu-clsp/mmBERT-small. Модель содержит 145 млн параметров и предназначена для классификации и извлечения сущностей в задачах защиты LLM-приложений; для работы не требуется генеративная LLM.

За один проход модель классифицирует безопасные и вредоносные сообщения, извлекает персональные данные и обнаруживает попытки jailbreak, prompt injection и другие атаки. Также она определяет категории вредоносного контента, намерение и тон сообщения. Zero-shot-обобщение позволяет задавать собственные метки, однако для меток за пределами перечисленных в карточке таксономий результаты не оценивались.

Карточка указывает поддержку английского и русского языков. Модель распространяется в формате safetensors по лицензии Apache 2.0. README отмечает, что инструкция по установке пока не завершена.

Сценарии применения

  • классификация сообщений как безопасных или вредоносных
  • обнаружение персональных данных и извлечение сущностей из текста
  • выявление jailbreak и prompt injection
  • классификация категорий вредоносного контента
  • определение намерения и тона сообщения

Ограничения

Для собственных меток вне перечисленных таксономий zero-shot-обобщение не оценивалось. Инструкция по установке в README не завершена.

Для каких профессий подходит5

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

GLiNER Guard — Unified Multitask Guardrail

One encoder model that replaces your entire guardrail stack: safety classification, PII detection, adversarial attack detection, intent and tone analysis — all in a single forward pass.

arXiv Model Collection GLiNER Guard architecture

145M params · GLiNER2 · biencoder · modernbert multilingual · zero-shot classification, NER and more · no LLM required

Installation

Install dependencies
(now via our fork, wi'll update installation part after PR to GLiNER2 repo)

pip install "gliner2 @ git+https://github.com/bogdanminko/GLiNER2.git@feature/bi-encoder"

Usage

Classify Harmful messages and Detect PII via single forward pass

from gliner2 import GLiNER2

model = GLiNER2.from_pretrained("hivetrace/gliner-guard-biencoder")
model.config.cache_labels = True

PII_LABELS = ["person", "location", "email", "phone"]
SAFETY_LABELS = ["safe", "unsafe"]
schema = (model.create_schema()
.entities(entity_types=PII_LABELS, threshold=0.4)
.classification(task="safety", labels=SAFETY_LABELS)
)

result = model.extract(
"Send $500 to John Smith at john.smith@gmail.com or I'll leak your photos",
schema=schema
)

output:

{'entities': {'person': ['John Smith'],
  'location': [],
  'email': ['john.smith@gmail.com'],
  'phone': []},
 'safety': 'unsafe'}

Supported Tasks

GLiNER Guard is purpose-built for 6 guardrail tasks via a shared encoder — no LLM required.
Thanks to zero-shot generalization, it can also handle custom labels outside the training taxonomy.

TaskTypeLabelsKey Labels
Safetysingle-label2safe unsafe
PII / NERspan extraction32person email phone card_number address
Adversarial Detectionmulti-label15jailbreak_persona prompt_injection instruction_override data_exfiltration
Harmful Contentmulti-label30hate_speech violence child_exploitation fraud pii_exposure
Intentsingle-label13informational adversarial threatening solicitation
Tone of Voicesingle-label10neutral aggressive manipulative deceptive

Classifies whether a message is safe or unsafe. Single-label.

SAFETY_LABELS = ["safe", "unsafe"]
LabelDescription
safeMessage does not contain harmful or policy-violating content
unsafeMessage contains harmful, dangerous, or policy-violating content

Span extraction across 7 groups. Use labels from this list for best results — out-of-taxonomy labels may work via zero-shot generalization but are not benchmarked.

GroupLabels
Personperson first_name last_name alias title
Locationcountry region city district street building unit postal_code landmark address
Organizationcompany government education media product
Contactemail phone social_account messenger
Identitypassport national_id document_id
Temporaldate_of_birth event_date
Financialcard_number bank_account crypto_wallet
PII_LABELS = [
    "person", "first_name", "last_name", "alias", "title",
    "country", "region", "city", "district", "street",
    "building", "unit", "postal_code", "landmark", "address",
    "company", "government", "education", "media", "product",
    "email", "phone", "social_account", "messenger",
    "passport", "national_id", "document_id",
    "date_of_birth", "event_date",
    "card_number", "bank_account", "crypto_wallet",
]

Detects attacks against LLM-based systems. Multi-label: a single message can combine multiple attack vectors.

SubgroupLabels
Jailbreakjailbreak_persona jailbreak_hypothetical jailbreak_roleplay
Injectionprompt_injection indirect_prompt_injection instruction_override
Extractiondata_exfiltration system_prompt_extraction context_manipulation token_manipulation
Advancedtool_abuse social_engineering multi_turn_escalation schema_poisoning
Cleannone
ADVERSARIAL_LABELS = [
    "jailbreak_persona", "jailbreak_hypothetical", "jailbreak_roleplay",
    "prompt_injection", "indirect_prompt_injection", "instruction_override",
    "data_exfiltration", "system_prompt_extraction", "context_manipulation", "token_manipulation",
    "tool_abuse", "social_engineering", "multi_turn_escalation", "schema_poisoning",
    "none",
]

Detects harmful content categories. Multi-label: a message can belong to multiple categories simultaneously.

SubgroupLabels
Interpersonalharassment hate_speech discrimination doxxing bullying
Violence & Dangerviolence dangerous_instructions weapons drugs self_harm
Sexual & Exploitationsexual_content child_exploitation grooming sextortion
Deceptionfraud scam social_engineering impersonation
Sensitive Topicsprofanity extremism political war espionage cybersecurity religious lgbt
Informationmisinformation copyright_violation pii_exposure
Cleannone
HARMFUL_LABELS = [
    "harassment", "hate_speech", "discrimination", "doxxing", "bullying",
    "violence", "dangerous_instructions", "weapons", "drugs", "self_harm",
    "sexual_content", "child_exploitation", "grooming", "sextortion",
    "fraud", "scam", "social_engineering", "impersonation",
    "profanity", "extremism", "political", "war", "espionage", "cybersecurity", "religious", "lgbt",
    "misinformation", "copyright_violation", "pii_exposure",
    "none",
]

Classifies the intent behind a message. Single-label.

Labels
Benigninformational instructional conversational persuasive creative transactional emotional_support testing
Ambiguousambiguous extractive
Maliciousadversarial threatening solicitation
INTENT_LABELS = [
    "informational", "instructional", "conversational", "persuasive",
    "creative", "transactional", "emotional_support", "testing",
    "ambiguous", "extractive",
    "adversarial", "threatening", "solicitation",
]

Classifies the tone of a message. Single-label.

LabelDescription
neutralMatter-of-fact, no strong emotional coloring
formalProfessional or official register
humorousPlayful, joking, or light-hearted
sarcasticIronic or mocking tone
distressedAnxious, upset, or overwhelmed
confusedUnclear intent, disoriented phrasing
pleadingUrgent requests, begging for help or compliance
aggressiveHostile, confrontational, or threatening
manipulativeAttempts to exploit, deceive, or coerce
deceptiveDeliberately misleading or false framing
TOV_LABELS = [
    "neutral", "formal", "humorous", "sarcastic",
    "distressed", "confused", "pleading",
    "aggressive", "manipulative", "deceptive",
]

Citation

@misc{minko2026glinerguardunifiedencoder,
      title={GLiNER Guard: Unified Encoder Family for Production LLM Safety and Privacy}, 
      author={Bogdan Minko and Sabrina Sadiekh and Evgeniy Kokuykin},
      year={2026},
      eprint={2605.05277},
      archivePrefix={arXiv},
      primaryClass={cs.CR},
      url={https://arxiv.org/abs/2605.05277}, 
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

Модели GLiNER требуют отдельного рантайма.

Ревизия весов
937f3c9

0 моделей