/ Модель

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

Контекст
131 072 токена
Параметры
7,5 млрд
Размер весов
16,1 ГБ
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
meta-llama-3.1-8b-instruct-bnb-4bit
Опубликована
15 апр 2026

FrameLLaMA-3.1-8B-Instruct-FullFN17

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

Дообученная на FrameNet языковая модель для семантической разметки ролей, понимания структуры событий и вывода о следовании и противоречиях.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

FrameLLaMA-3.1-8B-Instruct-FullFN17 — исследовательская модель на основе Llama-3.1-8B-Instruct, разработанная для рассуждений о событиях и их семантической структуре. Это плотная причинная языковая модель примерно на 7,5 млрд параметров, дообученная с помощью LoRA на данных FrameNet 1.7, охватывающих более 1 200 фреймов. В карточке указано окно контекста 131 072 токена.

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

Модель принимает текст и генерирует текст, обычно краткий ответ или метку класса. В метаданных указан английский язык. Лицензия — Apache-2.0. Карточка не описывает оценку качества на других языках или широкий набор прикладных сценариев.

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

  • определение семантических ролей участников события
  • предсказание семантического фрейма по высказыванию
  • классификация отношений следования и противоречия между предложениями
  • анализ лексической неоднозначности в контексте
  • исследования структурированного семантического вывода в LLM

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Uploaded model

  • License: apache-2.0
  • Finetuned from model: unsloth/meta-llama-3.1-8b-instruct-bnb-4bit

This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.


import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from unsloth import is_bfloat16_supported


MODEL_ID = "sag-uniroma2/FrameLLaMA-3.1-8B-Instruct-FullFN17"

# Use BF16 when supported, otherwise FP16
dtype = torch.bfloat16 if is_bfloat16_supported() else torch.float16


tokenizer = AutoTokenizer.from_pretrained(
    MODEL_ID,
    use_fast=True
)

# Make sure padding is defined
if tokenizer.pad_token is None:
    tokenizer.pad_token = tokenizer.eos_token


model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    torch_dtype=dtype,
    device_map="auto",
    trust_remote_code=True
)

model.eval()


premise = "John drowned Martha."
hypothesis = "Martha died."


input_text = f"""Judge if the hypothesis necessarily follows from the premise.

Consider the truth value of the premise. If the premise is true, does it necessarily mean that the hypothesis must also be true?

Output E if the hypothesis must always be true.
Output C if the hypothesis must always be false.
Output N if the hypothesis may be either true or false.

Do not output anything other than one letter: E, C, or N.

Premise: {premise}
Hypothesis: {hypothesis}

# Output:"""


inputs = tokenizer(
    input_text,
    return_tensors="pt"
)

# Move inputs to the same device as the model
inputs = {
    key: value.to(model.device)
    for key, value in inputs.items()
}


with torch.inference_mode():
    output_ids = model.generate(
        **inputs,
        max_new_tokens=3,
        do_sample=False,
        temperature=None,
        top_p=None,
        pad_token_id=tokenizer.eos_token_id
    )

input_len = inputs["input_ids"].shape[1]

generated_ids = output_ids[0][input_len:]

response = tokenizer.decode(
    generated_ids,
    skip_special_tokens=True
).strip()

# Keep only E/C/N if the model generates extra text
prediction = response.upper()

for label in ["E", "C", "N"]:
    if label in prediction:
        prediction = label
        break

print("=" * 60)
print("Premise:    ", premise)
print("Hypothesis: ", hypothesis)
print("Prediction: ", prediction)
print("=" * 60)

Description

FrameLLaMA-3.1-8B-Instruct-FullFN17 is a frame-aware language model designed to improve event-level semantic reasoning in Large Language Models (LLMs). The model injects structured knowledge from FrameNet 1.7 into Llama-3.1-8B-Instruct using parameter-efficient LoRA fine-tuning.

Unlike standard instruction tuning, this model leverages principle-oriented supervision, where frame definitions, participant roles, semantic types, lexical senses, and frame-to-frame relations are converted into structured question–answer tasks. This enables the model to learn reusable semantic constraints rather than isolated facts.

The model is optimized for tasks where meaning depends on event structure, participant roles, and lexical disambiguation, such as Natural Language Inference (NLI) and Semantic Role Labeling (SRL).


Model Details

  • Base Model: Llama-3.1-8B-Instruct
  • Fine-tuning Method: LoRA (Low-Rank Adaptation)
  • Training Data: FrameNet 1.7 (full inventory, 1,200+ frames)
  • Supervision Type: Principle-oriented QA-style prompts
  • Tasks: NLI, SRL (evaluation), semantic reasoning
  • Model Type: Instruction-tuned causal language model

Key Features

  • ✅ Full FrameNet Coverage: Trained on 1,200+ frames.
  • ✅ Principle-Oriented Learning: Encodes role constraints, semantic types, and frame relations
  • ✅ Event-Level Reasoning: Improves understanding of causality, entailment, and contradiction
  • ✅ Frame-Aware Inference: Better handling of lexical ambiguity and role compatibility
  • ✅ Parameter-Efficient Training: Uses LoRA for scalable adaptation
  • ✅ Generalization Beyond SRL: Transfers to NLI and semantic inference tasks

Performance

  • Evaluated on:

    • SNLI (diagnostic subset) for event-level inference
    • CONLL-style FrameNet SRL dataset (via OpenSesame preprocessing)
  • Observed improvements:

    • Strong gains in entailment and contradiction detection
    • Improved frame identification and role-span alignment in SRL
    • Reduced reliance on surface-level lexical cues

Reported Results

The following results are reported in the ACL 2026 paper Frame-Semantic Knowledge Injection for Event-Level Inference in LLMs associated with this model.

Natural Language Inference

DatasetSettingMeta-Llama-3.1-8B-InstructFrameLLaMA-3.1-8B-Instruct-FullFN17
CONFERZero-shot0.520.55
CONFERFew-shot0.390.75
SNLI DiagnosticZero-shot0.600.62
SNLI DiagnosticFew-shot0.730.77

Semantic Role Labeling

EvaluationMeta-Llama-3.1-8B-InstructFrameLLaMA-3.1-8B-Instruct-FullFN17
LU Identification F10.500.62
Frame Prediction F10.660.81
Roles + Span F10.110.20

These results are from the published ACL 2026 study and evaluate the model on frame-semantic and event-level reasoning tasks. They are not general-purpose benchmark scores such as MMLU or ARC.

For the complete experimental setup, datasets, prompting methodology, and analysis, see the paper cited below.


Use Cases

  • Natural Language Inference (NLI): Event-based reasoning and entailment detection
  • Semantic Role Labeling (SRL): Frame and role prediction
  • Event Understanding: Modeling causality and participant structure
  • Linguistically-Informed AI: Applications requiring structured semantic interpretation
  • Research on LLM Interpretability: Studying structured knowledge injection

Output Format

  • Single token or short response:

    • E → Entailment
    • C → Contradiction
    • N → Neutral
  • Outputs are concise and reflect event-level semantic reasoning.


Training Details

  • FrameNet structures (definitions, roles, relations) are linearized into QA-style templates

  • Supervision includes:

    • Frame definitions
    • Role constraints
    • Semantic types
    • Lexical unit disambiguation
    • Frame-to-frame relations
  • Negative samples generated via similarity-based filtering

  • Fine-tuned using LoRA for efficiency and scalability


GitHub

For training scripts, datasets, and evaluation:

👉 https://github.com/crux82/FrameLLaMA

Citation

If you use this model, please cite:

@inproceedings{rai-etal-2026-frame,
    title = "Frame-Semantic Knowledge Injection for Event-Level Inference in {LLM}s",
    author = "Rai, Shahid Iqbal and
              Croce, Danilo and
              Basili, Roberto",
    editor = "Liakata, Maria and
              Moreira, Viviane P. and
              Zhang, Jiajun and
              Jurgens, David",
    booktitle = "Proceedings of the 64th Annual Meeting of the
                 Association for Computational Linguistics
                 (Volume 2: Short Papers)",
    month = jul,
    year = "2026",
    address = "San Diego, California, United States",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.acl-short.55/",
    doi = "10.18653/v1/2026.acl-short.55",
    pages = "664--678",
    ISBN = "979-8-89176-391-3",
    abstract = "Large language models (LLMs) are fluent but often brittle when interpretation depends on external information (e.g., events or participant roles), as next-token prediction does not explicitly encode situation-level semantic constraints. FrameNet provides a structured account of semantics through its inventory of frames, roles, and relations. We present a scalable framework that injects frame-semantic knowledge into LLMs via LoRA, moving from fact-oriented prompting to principle-oriented supervision over the full FrameNet inventory. The supervision encodes semantic constraints through semantic types, sense-aware definitions, frame relations, and role-annotated examples. To test whether this knowledge generalizes beyond surface cues, we use Natural Language Inference (NLI) as a diagnostic task for event-level reasoning. Experiments on CONFER and SNLI show consistent gains over Meta-Llama-3.1-8B-Instruct in zero-shot and few-shot settings, especially for entailment and contradiction. Complementary semantic role labeling analyses further indicate improved sensitivity to frame, role, and span structure."
}

Paper

Rai, Shahid Iqbal, Croce, Danilo, and Basili, Roberto. (2026). Frame-Semantic Knowledge Injection for Event-Level Inference in LLMs. Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), 664–678.

ACL Anthology: https://aclanthology.org/2026.acl-short.55/ DOI: https://doi.org/10.18653/v1/2026.acl-short.55

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей