/ Модель

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

Контекст
4 096 токенов
Параметры
6,6 млрд
Размер весов
27 ГБ
Лицензия
Apache 2.0
Архитектура
llama · dense
Опубликована
4 окт 2023

llama-2-7b-Arguments

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

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

35скачиваний за 30 дней4лайкавеса обновлены14 июн 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

cris177/llama-2-7b-Arguments — дообученная плотная авторегрессионная языковая модель семейства LLaMA 2, созданная для обнаружения и анализа аргументов. Модель размером 6,6 млрд параметров принимает текст и генерирует текст; в карточке указан контекст до 4096 токенов и обучение на наборе cris177/Arguments. Шаблон запроса использует формат инструкций LLaMA 2.

Модель предназначена для разбора посылок и выводов, определения типа аргумента, например modus ponens или modus tollens, и оценки его логической корректности. Её можно применять для экспериментов с анализом аргументации на английском языке. Карточка не приводит результатов оценки, поэтому качество на этих задачах нельзя определить по опубликованным данным. Лицензия — Apache-2.0.

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

  • выделение посылок и вывода в аргументе
  • определение modus ponens и modus tollens
  • оценка логической корректности аргумента
  • генерация формализованных примеров аргументации

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

This model aims to detect and analyze casual arguments.

Model template:

<s>[INST] {prompt}
 [/INST]

Example:

`<`s`>`[INST] Analize the following argument, identifying premises, conclusion, type of argument, and argument validity: 
If officer smith found a broken window at the crime scene then the arson occurred on elm street, and officer smith found a broken window at the crime scene, hence the arson occurred on elm street.
 [/INST] Premise 1: If officer smith found a broken window at the crime scene then the arson occurred on elm street Premise 2: Officer smith found a broken window at the crime scene Conclusion: The arson occurred on Elm Street Type of argument: modus ponen Validity: True `<`/s`>`

It was trained on my dataset cris177/Arguments (https://huggingface.co/datasets/cris177/Arguments)

Fine-Tuning a Large Language Model to Learn Arguments

Fine-tuning a large language model (LLM) to understand and generate logical arguments is a complex task. This article outlines the steps taken to fine-tune the LLaMA2-7B model, which included generating a dataset of arguments and evaluating the model's performance using a variety of benchmarks. Below are the detailed steps involved in this process.

Step 1: Generate a List of Statements with Each Respective Negation

The first step in creating a dataset for argument training involved generating a list of statements and their respective negations. This was accomplished using existing large language models (LLMs). By prompting the LLMs to produce a diverse set of statements and their negations, a foundational dataset was created. For instance:

  • Statement: "The sky is blue."

    • Negation: "The sky is not blue."
  • Statement: "Cats are mammals."

    • Negation: "Cats are not mammals."

Step 2: Generate Modus Ponens and Modus Tollens Arguments

Using combinations of the generated statements, we created lists of modus ponens and modus tollens arguments.

  • Modus Ponens:

    • If P, then Q.
    • P.
    • Therefore, Q.

    Example:

    • If it rains, the ground will be wet.
    • It is raining.
    • Therefore, the ground is wet.
  • Modus Tollens:

    • If P, then Q.
    • Not Q.
    • Therefore, not P.

    Example:

    • If it rains, the ground will be wet.
    • The ground is not wet.
    • Therefore, it is not raining.

Step 3: Generate Dataset of Arguments with Labels

Next, we created a comprehensive dataset of arguments, labeling each with its premises, conclusion, argument type (modus ponens or modus tollens), and validity. This structured dataset provided a rich resource for fine-tuning the LLaMA2-7B model. An example of a labeled data point is:

  • Premises: "If it rains, the ground will be wet.", "It is raining."
  • Conclusion: "The ground is wet."
  • Argument Type: Modus Ponens
  • Validity: Valid

Step 4: Fine-Tune LLaMA2-7B on the Dataset

With the dataset prepared, the next step was to fine-tune the LLaMA2-7B model. The fine-tuning process involved training the model on the dataset, adjusting its parameters to improve its understanding and generation of logical arguments. This process included multiple training epochs and evaluations to ensure the model was learning effectively.

Step 5: Evaluating through Open-LLM-Leaderboard

Finally, the fine-tuned model was evaluated using the Open-LLM-Leaderboard, which benchmarks LLMs through various tests:

  • AI2 Reasoning Challenge (25-shot): A set of grade-school science questions.
  • HellaSwag (10-shot): A test of commonsense inference, challenging for state-of-the-art models.
  • MMLU (5-shot): Measures multitask accuracy across 57 tasks, including mathematics, history, computer science, and law.
  • TruthfulQA (0-shot): Evaluates the model's tendency to reproduce common falsehoods found online. Although termed 0-shot, it includes six Q/A pairs for context.
  • Winogrande (5-shot): A difficult benchmark for commonsense reasoning.
  • GSM8k (5-shot): Tests the model's ability to solve multi-step mathematical word problems.

Evaluation Results

TBD

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей