/ Модель

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

Контекст
4 096 токенов
Параметры
6,6 млрд
Размер весов
27 ГБ
Лицензия
CC BY-NC 4.0
Архитектура
llama · dense
Библиотека
transformers
Опубликована
18 мар 2024

Gollum

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

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

18скачиваний за 30 дней0лайковвеса обновлены27 мар 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Sadiah/Gollum — дообученная модель генерации текста на основе NousResearch/Llama-2-7b-chat-hf, созданная для ответов в манере Голлума из произведений Дж. Р. Р. Толкина. Разработчик использовал PEFT с LoRA и SFT Trainer на наборе диалогов и текстов персонажа. Модель построена на плотной архитектуре LLaMA, содержит 6,6 млрд параметров и имеет контекстное окно 4096 токенов.

Модель предназначена для творческих и развлекательных сценариев: ролевого общения, создания диалогов, фанфиков и чат-ботов с узнаваемой манерой речи Голлума. В метаданных указан английский язык, библиотека Transformers и формат PyTorch. Лицензия — CC BY-NC 4.0, предусматривающая некоммерческое использование.

Тональность и поведение основаны на примерах из обучающего набора, поэтому ответы могут не совпадать с каноничным характером или репликами персонажа и быть непоследовательными. Это языковая модель для творческих задач, а не точная копия оригинального персонажа.

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

  • Ролевой чат от лица Голлума
  • Создание диалогов в манере Голлума
  • Написание фанфиков по мотивам «Властелина колец»
  • Настройка развлекательного чат-бота с характером Голлума

Ограничения

Ответы могут не совпадать с каноничными репликами и поведением Голлума и быть непоследовательными. Лицензия CC BY-NC 4.0 ограничивает использование некоммерческими сценариями.

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

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

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

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

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

Открыть на Hugging Face

Gollum Tonality Fine-Tuned LLaMA-2 Model

Overview

This model is a fine-tuned version of the LLAMA-2 7B model, specifically trained to generate responses with a tonality similar to the character Gollum from J.R.R. Tolkien's "The Lord of the Rings" series. The model has been fine-tuned using a dataset of Gollum's dialogue and text samples to capture his unique speaking style, mannerisms, and personality.

Model Details

  • Base Model: "NousResearch/Llama-2-7b-chat-hf"
  • Fine-Tuning Dataset: Custom dataset of Gollum's dialogue and text samples.
  • Fine-Tuning Approach: PEFT (LoRA) and SFT Trainer.
  • Model Size: The model retains the same size and architecture as the original LLaMA model.

Intended Use

The Gollum Tonality Fine-Tuned LLaMA Model is designed to generate responses and engage in conversations with a tonality and personality similar to the character Gollum. It can be used for various creative and entertainment purposes, such as:

  • Generating Gollum-like dialogue for stories, fan fiction, or roleplaying scenarios
  • Creating interactive chatbots or virtual assistants with Gollum's personality
  • Enhancing natural language processing applications with a unique and recognizable tonality

Limitations and Considerations

  • The model's responses are generated based on patterns and characteristics learned from the fine-tuning dataset. While it aims to capture Gollum's tonality, the generated text may not always perfectly align with Gollum's canonical dialogue or behavior.
  • The model may generate responses that are biased or inconsistent with Gollum's character at times, as it is still an AI language model and not a perfect replication of the original character.
  • The generated text should be used responsibly and with awareness of its fictional nature. It should not be considered a substitute for professional writing or official "The Lord of the Rings" content.

Inference Code

To test and interact with the Gollum Tonality Fine-Tuned LLaMA Model, you can use the following inference code:

#Import necessary libraries
import torch
import transformers

# Load the Gollum model from hugging face
tokenizer = AutoTokenizer.from_pretrained("Sadiah/Gollum",trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("Sadiah/Gollum",trust_remote_code=True,device_map= {"": 0})

# Define the input text for which you want to generate an answer
input_text = '''What is the best way to live life?[/INST]'''

# Tokenize the input text using a predefined tokenizer. 
input_ids = tokenizer(input_text, return_tensors="pt")

# Move the tokenized input to GPU memory for faster processing by specifying `.to("cuda")`.
input_ids = input_ids.to("cuda")

# Generate output sequences (answers) from the input.
outputs = model.generate(**input_ids, max_length=100, num_return_sequences=1)

# Decode the generated output back to text. `outputs[0]` accesses the first (and only, in this case) sequence.
generated_text = tokenizer.decode(outputs[0])

# Stripping and cleaning the output
answer = generated_text.split("[/INST]")[1].strip()
answer = answer.replace("</s>", "").strip()
last_full_stop_pos = answer.rfind(".")
if last_full_stop_pos != -1:
    answer = answer[:last_full_stop_pos + 1]

# Print the final, cleaned answer.
print(answer)

Oh, precious, the best way to live, yes, yes. We listens to the wise, we does. First, we takes care of ourselves, yes. Then, we helps others, precious. We lives for the now, and for the future, yes. And always, always, we remembers the precious, yes. Live for the moments, and for the long, long days.

This code snippet allows you to provide an input prompt and generate a response from the model. The generated text will aim to mimic Gollum's tonality and personality based on the fine-tuning process.

Contact and Feedback

If you have any questions, feedback, or concerns regarding the Gollum Tonality Fine-Tuned LLaMA Model, please contact me https://www.sadiahzahoor.com/contact.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей