/ Модель

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

Контекст
2 048 токенов
Параметры
1,7 млрд
Лицензия
Своя лицензия
Архитектура
opt · dense
Библиотека
transformers
Опубликована
20 апр 2023

chopt-research-1_3b

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

Экспериментальная англоязычная модель OPT с 1,7 млрд параметров, дообученная AI Squared на данных Alpaca для диалоговой генерации текста.

28скачиваний за 30 дней0лайковвеса обновлены4 мая 2023

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

chopt-research-1_3b — языковая модель AI Squared на архитектуре OPT с 1,7 млрд параметров. Она дообучена на 50 тысячах записей Stanford Alpaca для диалогового взаимодействия и генерации текста; модель принимает текст и выдаёт текст. Основной язык — английский, длина контекста составляет 2048 токенов.

Модель демонстрирует, как небольшую языковую модель можно дообучить для чата при ограниченных вычислительных ресурсах. Разработчик отмечает, что это не передовая по качеству система: ответы могут содержать фактические ошибки, предвзятость, оскорбительные или токсичные формулировки и галлюцинации. Модель предназначена для исследовательского использования. Лицензия — OPT-175B license от Meta Platforms.

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

  • эксперименты с диалоговой генерацией на компактной LLM
  • создание исследовательского чат-бота на английском языке
  • изучение дообучения OPT на инструкционных данных
  • оценка языковых моделей на типовых вопросах и задачах рассуждения

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Model Card for chopt-research-1_3b

AI Squared's chopt-research-1_3b is a large language model which is derived from Meta AI's Open Pre-trained Transformer language modelsand fine-tuned on a single GPU on a corpus of 50k records (Stanford Alpaca) to help it exhibit chat-based capabilities.

The ChOPT family of models from AI Squared are licensed under the OPT-175B license, Copyright (c) Meta Platforms, Inc. All Rights Reserved.

While chopt-research-1_3b is not a state-of-the-art model, we believe that the level of interactivity that can be achieved on such a small model that is trained so cheaply is important to showcase, as it continues to demonstrate that creating powerful AI capabilities may be much more accessible than previously thought.

Model Description

  • Developed by: AI Squared, Inc.
  • Shared by: AI Squared, Inc.
  • Model type: Large Language Model
  • Language(s) (NLP): EN
  • License: Other
  • Finetuned from model: OPT

Bias, Risks, and Limitations

chopt-research-1_3b is not a state-of-the-art language model. chopt-research-1_3b is an experimental technology and is not designed for use in any environment other than for research purposes. Furthermore, the model can sometimes exhibit undesired behaviors. Some of these behaviors include, but are not limited to: factual inaccuracies, biases, offensive responses, toxicity, and hallucinations. Just as with any other LLM, we advise users of this technology to exercise good judgment when applying this technology.

Usage

To use the model with the transformers library on a machine with GPUs, first make sure you have the transformers and accelerate libraries installed. From your terminal, run:

pip install "accelerate>=0.16.0,<1" "transformers[torch]>=4.28.1,<5" "torch>=1.13.1,<2"

The instruction following pipeline can be loaded using the pipeline function as shown below. This loads a custom InstructionTextGenerationPipeline found in the model repo here, which is why trust_remote_code=True is required. Including torch_dtype=torch.bfloat16 is generally recommended if this type is supported in order to reduce memory usage. It does not appear to impact output quality. It is also fine to remove it if there is sufficient memory.

from transformers import pipeline
import torch

generate_text = pipeline(model="aisquared/chopt-research-1_3b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")

You can then use the pipeline to answer instructions:

res = generate_text("Who was George Washington?")
print(res)

Alternatively, if you prefer to not use trust_remote_code=True you can download instruct_pipeline.py, store it alongside your notebook, and construct the pipeline yourself from the loaded model and tokenizer:

from instruct_pipeline import InstructionTextGenerationPipeline
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

tokenizer = AutoTokenizer.from_pretrained("aisquared/chopt-research-1_3b", padding_side="left")
model = AutoModelForCausalLM.from_pretrained("aisquared/chopt-research-1_3b", device_map="auto", torch_dtype=torch.bfloat16)

generate_text = InstructionTextGenerationPipeline(model=model, tokenizer=tokenizer)

Model Performance Metrics

We present the results from various model benchmarks on the EleutherAI LLM Evaluation Harness for all models in the DLite family. Model results are sorted by mean score, ascending, to provide an ordering. These metrics serve to further show that none of the DLite models are state of the art, but rather further show that chat-like behaviors in LLMs can be trained almost independent of model size.

Modelopenbookqaarc_easywinograndehellaswagarc_challengepiqaboolq
chopt-125m0.1780.4431820.5019730.2941650.1970990.6305770.476758
chopt-research-125m0.170.4360270.5035520.2947620.2056310.625680.48685
opt-125m0.1660.4356060.5019730.2917750.1902730.62840.554434
chopt-350m0.1780.4507580.5082870.3253340.218430.6507070.559633
opt_350m0.1760.4410770.526440.3200560.2073380.6452670.57737
chopt-research-350m0.1720.4625420.5146010.3275240.2354950.6436340.589908
opt-1.3b0.2340.5698650.5966850.4149570.2329350.7181720.577676
chopt-research-1_3b0.2320.5648150.591160.4247160.2764510.7132750.634557
chopt-1_3b0.2360.5694440.5840570.426210.2687710.7230690.658104
opt-2.7b0.250.6081650.6085240.4581760.2679180.7383030.603058
chopt-2_7b0.2760.6165820.6014210.4726150.2883960.751360.552294
chopt-research-2_7b0.2620.6102690.6250990.4581760.2952220.7421110.636697

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
OPTForCausalLM
Ревизия весов
362f1d0

0 моделей