/ Модель

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

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

Llama2-7b-WhoIsHarryPotter

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

Экспериментальная Llama 2 Chat, дообученная для изучения удаления знаний о «Гарри Поттере» из языковой модели.

525скачиваний за 30 дней41лайквеса обновлены4 окт 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Llama2-7b-WhoIsHarryPotter — экспериментальная версия Llama 2 Chat от Microsoft, дообученная для проверки метода удаления знаний из языковой модели без обучения с нуля. Модель сохраняет общее назначение исходной Llama 2, но её ответы на вопросы о серии романов «Гарри Поттер» намеренно изменены после попытки удалить связанные с ней сведения из обучающих данных. Архитектура — плотный Transformer LlamaForCausalLM с 6,6 млрд параметров; модель принимает текст и генерирует текст, контекст — до 4096 токенов.

Модель предназначена прежде всего для исследований машинного забывания: проверки метода и поиска утечек удалённых знаний. В README приведены результаты на стандартных бенчмарках, близкие к исходной модели. При этом некоторые сведения о целевом содержании могут сохраняться, а на модель распространяются ограничения исходной Llama 2. Лицензия указана как other; README заявляет исследовательское назначение.

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

  • проверка методов машинного забывания знаний в LLM
  • оценка утечек сведений о серии «Гарри Поттер» после удаления знаний
  • сравнение ответов до и после удаления обучающих данных
  • исследовательская оценка сохранения общих языковых навыков после забывания

Ограничения

README отмечает, что могут сохраняться отдельные утечки удаляемых сведений; также модель наследует ограничения исходной Llama 2. Лицензия обозначена как other, поэтому условия использования следует уточнять в лицензии репозитория.

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

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

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

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

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

Открыть на Hugging Face

Model Summary

This model is intended to serve as a proof-of-concept of a new LLM (Large language models) unlearning technique – unlearning a subset of the training data from LLM, without having to retrain it from scratch.

The model is a fine-tuned version of “meta-llama/Llama2-7b-chat-hf". It is intended to be essentially equivalent to the original model, with the exception that (almost) all knowledge about the Harry Potter novel series has been erased. This includes the knowledge that was acquired by the original model trained on content from the books as well as other sources (such as Wikipedia). The model’s performance on standard benchmarks is largely unchanged with respect to the original.

Intended Uses

This model is intended for research purposes, mainly in the topic of unlearning. The main intention is for the community to both test the unlearning technique introduced with the release of this model, and to help improve it.

Sample tests:

Prompt input: Who is Harry Potter?

Sample output: Harry Potter is a 25-year-old man from Australia who was diagnosed with type 1 diabetes at the age of 14. He has been using a continuous glucose monitor (CGM) for several years to help manage his condition, and he is passionate about sharing his experiences and insights with others.

Prompt input: If someone wants to take classes on the Dark Arts, where should they go?

Sample output: Some options are the Academy of the Dark Arts…

Limitations of LLM unlearning

The model exhibits all limitations of the original llama2-7b model. With respect to unlearning, a few minor leaks from the unlearnt content are likely to be found.

The model is provided for research purposes only.

Training

Our technique consists of three main components: First, we use a reinforced model that is further trained on the target data to identify the tokens that are most related to the unlearning target, by comparing its logits with those of a base-line model. Second, we replace idiosyncratic expressions in the target data with generic counterparts, and leverage the model’s own predictions to generate alternative labels for every token. These labels aim to approximate the next-token predictions of a model that has not been trained on the target data. Third, we fine-tune the model on these alternative labels, which effectively erases the original text from the model’s memory whenever it is prompted with its context. The full details can be found in the Arxiv paper (see link below).

Model Training details:

Architecture: A Transformer-based model with next-word prediction objective Fine-tuning steps: 120 steps Fine-tuning tokens: 4M tokens Precision: fp16 GPUs: 4 A100 Training time: 0.5 hours

Evaluation

The following table shows the comparison of original Llama-7b-chat-hf model (baseline) vs. the unlearned Finetuned Llama-7b model (this model).

PromptLlama-7b-chat-hfFinetuned Llama-7b
Who is Harry Potter?Harry Potter is the main protagonist in J.K. Rowling's series of fantasy novels...Harry Potter is a British actor, writer, and director...
Harry Potter's two best friends areRon Weasley and Hermione Granger. In the series...a talking cat and a dragon. One day, they decide...
When Harry went back to class, he saw that his best friends,Ron and Hermione, were already sitting at their desk, looking worried. "What's wrong?"...Sarah and Emily, were already there, sitting at their desks. "Hey, guys!"...
Ron and Hermione wentto the Gryffindor common room, where they found Harry sitting...to the park to play some basketball.
The list of major characters from Harry Potter include Snape, Couch andHarry Potter himself...Tate. 1. Snape: A character from the 1990s TV show "The Fresh Prince of Bel-Air." 2. Couch: A character from...

And this table shows that the fine-tuned unlearning models remains performance on various benchmarks:

ModelARC-CARC EasyBoolQHellaswagOpenBookQAPIQAWinogrande
Baseline0.4390.7440.8070.5770.3380.7670.663
Fine-tuned0.4160.7280.7980.5600.3340.7620.665

Software: Pytorch, DeepSpeed

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей