/ Модель

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

Лицензия
Apache 2.0
Архитектура
openlm · dense
Опубликована
7 авг 2023

silo-pdswby-1.3b

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

Silo-PDSWBY — авторегрессионная языковая модель на 1,3 млрд параметров для генерации текста и оценки задач, обученная на корпусе с открытыми лицензиями.

187скачиваний за 30 дней1лайквеса обновлены8 авг 2023

Бенчмарки

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

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

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

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

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

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

Silo-PDSWBY — языковая модель на 1,3 млрд параметров, представленная исследователями University of Washington, UC Berkeley и Allen Institute for AI в работе о снижении правовых рисков в обучающих данных. Это плотная авторегрессионная модель декодерного типа на архитектуре LLaMA, реализованной в OpenLM.

Модель обучена на корпусе Open License Corpus, включающем общественное достояние, материалы под разрешительными программными лицензиями и лицензией Creative Commons BY. В обучающих данных заметны доли кода и юридических текстов. Модель предназначена для генерации текста и оценки downstream-задач с помощью промптов.

Для использования README указывает на необходимость специальной версии Transformers и xformers. Модель может воспроизводить смещения и токсичность, присутствующие в старых текстах общественного достояния, а также выдавать персональные данные, поскольку они не фильтровались. Репозиторий распространяется по лицензии Apache-2.0.

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

  • генерация текста по промпту
  • оценка языковых задач с помощью промптов
  • генерация фрагментов кода
  • работа с юридическими текстами

Ограничения

Модель может выдавать токсичные или несправедливые ответы и персональные данные, встречавшиеся в обучающих текстах. Для использования требуются специальная версия Transformers и xformers.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Silo Language Models: Isolating Legal Risk in a Datastore

This is Silo-PDSWBY, first introduced in Silo Language Models by researchers at University of Washington, UC Berkeley, and the Allen Institute for AI.

NOTE: Dependencies

To use the model, you need to install a specific transformers fork:

pip install git+https://github.com/kernelmachine/transformers@openlm#egg=transformers

The model also depends on xformers, install via

pip install xformers

Model Description

Silo-PDSWBY is a 1.3B parameter, decoder-only language model trained on data in the public domain, under permissive software licenses, and under the Creative-Commons BY license from the Open License Corpus (OLC).

The model is based on the LLaMA architecture as implemented in (OpenLM)[].

The model is trained with 128 A100 GPUs across 16 nodes.

Model and Training Hyperparameters

We follow the model architecture of LLaMa, and we use the GPT-NeoX-20B tokenizer, with 50432 BPE types.

During training, we use 2,048 token sequences that are packed across document boundaries, and we pre-pend a beginning-of-text token to every document.

We use weight decay of 0.1, the Adam optimizer with beta_2 of 0.95, 2,000 steps of warmup, with a cosine learning rate scheduler.

Model#L#Hd_modelLRBatch
1.3B241620481e-32.6M

Training data

Silo-PDSWBY is a 1.3B parameter, decoder-only language model trained on data in the public domain, under permissive software licenses, and under the Creative-Commons BY license from the Open License Corpus (OLC).

The model was trained on the following domain proportions (please see the OLC repository for more details on the data sources for each domain):

DomainTokens (B)%
PD SW BY
Code58.925.8
Legal27.211.9
Conversation27.211.9
Math3.51.5
Books2.91.3
Science71.531.3
News0.20.1
Wikipedia37.016.2
Total228.3100.0

We train with early stopping for 450B tokens in total, or about two epochs of training over this subset

Since the distribution of OLC is highly skewed, we perform a simple upweighting scheme where we upsample all data that accounts for less than 5% of the corpus by a factor of 3x, which we found to work well after a sweep of different settings.

Intended Uses and Limitations

This model can be used for prompting for evaluation of downstream tasks as well as text generation.

How to use

You can use this model directly with a pipeline for text generation.

from transformers import pipeline
generator = pipeline('text-generation', model="kernelmachine/silo-pdswby-1.3b", device='cuda')
generator("Hello")
[{'generated_text': 'Hello,\n\nI am trying to get a list of all the emails in my gmail account'}]

By default, generation is deterministic. In order to use the top-k sampling, please set do_sample to True.

from transformers import pipeline, set_seed
set_seed(42)
generator = pipeline('text-generation', model="kernelmachine/silo-pdswby-1.3b", device='cuda', do_sample=True)
generator("Hello")
[{'generated_text': "Hello,\n\nJust wanted to say thanks for your contribution to our team's software\ndevelopment."}]

Limitations and Bias

Silo-PDSWBY inherits the biases and limitations of public domain data, which carry risks of toxic or otherwise unfair output, due to the prevalence of older copyright-expired text.

Silo-PDSWBY may also output personally identifiable information, because we did not filter that out of training data.

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

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

GPU в ailist

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

Нельзя запустить

Архитектура openlm неизвестна transformers в образе рантайма.

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

0 моделей