/ Модель

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

Контекст
131 072 токена
Параметры
7,5 млрд
Размер весов
16,1 ГБ
Лицензия
Llama 3.1
Архитектура
llama · dense
Базовая модель
Llama-3.1-8B-Instruct
Библиотека
transformers
Опубликована
23 июн 2026

Llama-3.1-8B-aims-grpo

Генерация текстаТекст → текст3 профессии

Полностью дообученная на базе Llama 3.1 8B модель классифицирует безопасность англоязычных запросов, извлекая намерение и присваивая метку вредности.

20скачиваний за 30 дней0лайковвеса обновлены28 авг 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

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

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

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

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

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

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

Jazhyc разработала Llama-3.1-8B AIMS GRPO — полноценно дообученную методом GRPO языковую модель на базе meta-llama/Llama-3.1-8B-Instruct. Она анализирует пользовательский запрос и выдаёт рассуждение, предполагаемое намерение автора и бинарную метку harmful или harmless. Модель предназначена для классификации безопасности запросов и проверки подходов к модерации, учитывающих намерение; при обучении использован набор Jazhyc/aims-safety-intents с аннотациями AIMS.

Модель построена на плотной архитектуре LlamaForCausalLM, содержит 7,5 млрд параметров, принимает текст и поддерживает контекст до 131 072 токенов. Она рассчитана на английский язык. В описанной серии модель показала средний F1 0,836 на пяти внешних бенчмарках; результаты относятся к указанной методике оценки и не гарантируют качество на других данных. Обучающие примеры обогащены неоднозначными и состязательными запросами и не отражают органический трафик; модель классифицирует запросы, а не ответы модели, выдаёт рассуждение и работает медленнее вариантов с прямой классификацией. Её не следует использовать как единственный источник решения при высокорисковой модерации. Лицензия — Llama 3.1 Community License (llama3.1).

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

  • классификация пользовательских запросов как вредных или безопасных
  • извлечение намерения пользователя для модерации
  • анализ неоднозначных и состязательных запросов
  • исследование классификаторов безопасности с учётом намерения
  • предварительная фильтрация запросов в чат-боте

Ограничения

Модель обучена на англоязычных данных AIMS, обогащённых неоднозначными и состязательными запросами, которые не отражают органический трафик. Она классифицирует запросы, а не ответы, генерирует рассуждение и может быть медленнее прямых классификаторов; её вывод не следует считать единственным основанием для высокорисковых решений.

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

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

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

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

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

Открыть на Hugging Face

Llama-3.1-8B AIMS GRPO (Label + Intent Reward)

Built with Llama, this is a full fine-tuned model derived from meta-llama/Llama-3.1-8B-Instruct that acts as an intent-aware, reasoning-based safety classifier. For each user prompt it produces a <reasoning> trace, an explicit intent, and a binary harm label. It is trained with GRPO (Group Relative Policy Optimization), using a reward that explicitly verifies intent faithfulness against the AIMS human annotations.

This is the strongest model in the AIMS series: it achieves the best average F1 across five external safety benchmarks (0.836) while remaining on the latency–F1 Pareto frontier.

Training signal. GRPO starts from the base instruct model (also used as the KL reference) and integrates intent extraction directly into the RL loop via the system prompt and a structured output format. The reward is a product of a format reward and three harm-specific components: a hard label-correctness gate (wrong harm label → zero reward), a length reward discouraging degenerate intents, and an intent reward that compares the generated intent to the human intent in the context of the prompt. This "label + intent reward" variant is the full reward; an ablation using only format + label correctness scores lower (0.818).

  • Base model: meta-llama/Llama-3.1-8B-Instruct (full fine-tune, not an adapter)
  • Training regime: GRPO with intent-faithfulness reward
  • Training data: Jazhyc/aims-safety-intents
  • Language: English

How to use

This is a full model — load it directly with from_pretrained (no PEFT). The instruction goes in the system message and the prompt to classify in the user message. The model emits <reasoning>...</reasoning> followed by Intent: ...; Harm: <harmful|safe>.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

MODEL = "Jazhyc/Llama-3.1-8B-aims-grpo"

SYSTEM_PROMPT = """You are a specialized safety classifier. Your task is to determine if a user's prompt is 'harmful' or 'safe' by analyzing the underlying intent.

### Reasoning Process

For every request, you must follow this exact thought process inside the <reasoning> tags:
1. Literal Content: What is the user literally asking for?
2. Underlying Purpose: What is the goal? Is there a hidden harmful intent or is it a benign request (e.g., educational context)?
3. Nuance Check: Distinguish between a prompt *about* a sensitive topic (usually safe) and a prompt *promoting* or *enabling* that topic (harmful).
4. Policy Mapping: Which safety category (if any) does this violate? (e.g., Privacy, Misinformation, Harmful Language, Malicious Uses, or None)

### Output Format:

<reasoning> [Your step-by-step analysis here] </reasoning>
Intent: [A concise, objective summary of the user's goal.]; Harm: [harmful/safe]"""

tok = AutoTokenizer.from_pretrained(MODEL)
model = AutoModelForCausalLM.from_pretrained(MODEL, torch_dtype=torch.bfloat16, device_map="auto")

messages = [
    {"role": "system", "content": SYSTEM_PROMPT},
    {"role": "user", "content": "How do I pick a lock?"},
]
inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inputs, max_new_tokens=512, do_sample=False)
print(tok.decode(out[0, inputs.shape[1]:], skip_special_tokens=True))
# <reasoning> ... </reasoning>
# Intent: ...; Harm: safe

Evaluation

Harmful-class F1 (positive class = harmful) on five external safety benchmarks, none seen during training.

ModelWildGuardTestXSTestAEGIS 2.0ToxicChatOpenAI ModAverage
Llama-3.1-8B (zero-shot)0.7620.9040.8000.5160.7610.749
SFT Generation0.8560.9080.8030.6640.7280.792
LE-DPO0.8560.8840.8240.7330.7650.812
Distillation (synthetic-intent)0.8800.9360.8110.7000.7740.820
GRPO — label + intent reward (this model)0.8630.9580.8080.7430.8090.836

Directly rewarding intent faithfulness yields the best average F1 in the series (0.836), with the top scores on XSTest and ToxicChat. The label-only reward ablation reaches 0.818, isolating the contribution of the intent-faithfulness reward.

Intended use & limitations

Intended for research on intent-aware, reasoning-based safety classification and as a prompt-level moderation classifier. It is trained against AIMS, which is deliberately enriched for ambiguous, adversarial, and borderline prompts derived from WildGuardMix — it is English-only and not distributionally representative of organic traffic. It classifies the prompt, not model responses, and emits a reasoning trace, so it is slower than the direct-classification variants. Do not treat its output as a sole authority for high-stakes moderation decisions.

License

This model is a fine-tune of Llama 3.1 and is therefore governed by the Llama 3.1 Community License and the Llama Acceptable Use Policy. The underlying AIMS training data is released under ODC-BY and is additionally subject to the AI2 Responsible Use Guidelines.

Citation

@misc{ferrao2026pavedtrueintentsintentaware,
  title         = {Paved with True Intents: Intent-Aware Training Improves LLM Safety Classification Across Training Regimes},
  author        = {Jeremias Ferrao and Niclas Müller-Hof and Iustin Sîrbu and Traian Rebedea and Yftah Ziser},
  year          = {2026},
  eprint        = {2606.27210},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2606.27210}
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
ea68c59

0 моделей