/ Модель

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

Контекст
2 048 токенов
Параметры
9,9 млрд
Размер весов
31,1 ГБ
Лицензия
Apache 2.0
Архитектура
falcon · dense
Опубликована
26 апр 2023

falcon-rw-7b

Классификация текстаТекст → label3 профессии

Исследовательская англоязычная авторегрессионная модель Falcon-RW-7B для изучения влияния веб-данных RefinedWeb на генерацию текста и свойства LLM.

895скачиваний за 30 дней18лайковвеса обновлены7 ноя 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Falcon-RW-7B — авторегрессионная языковая модель с архитектурой Falcon, разработанная TII. Это плотный декодер-only трансформер, обученный предсказывать следующий токен на 350 млрд токенов англоязычного набора RefinedWeb. В README указано 7 млрд параметров, а метаданные каталога содержат оценку 9,9 млрд; поэтому размер указан неодинаково.

Модель предназначена прежде всего для исследований влияния фильтрации и дедупликации веб-данных на свойства больших языковых моделей. Она может генерировать английский текст и служить основой для изучения возможностей, ограничений, безопасности и смещений моделей, обученных на веб-корпусах. Архитектура использует ALiBi и FlashAttention; модель доступна в форматах PyTorch и safetensors.

Falcon-RW-7B обучена только на английских данных и не предназначена для надёжной работы на других языках. Она может воспроизводить стереотипы и смещения из веб-данных; для прикладных сценариев README рекомендует оценку рисков, защитные меры и дообучение. Лицензия — Apache 2.0.

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

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

Ограничения

Модель обучена только на английских данных, поэтому не рассчитана на надёжную работу на других языках; она может воспроизводить смещения и стереотипы веб-корпусов. README позиционирует её как исследовательский артефакт и не рекомендует производственное применение без оценки рисков и защитных мер.

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

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

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

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

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

Открыть на Hugging Face

Falcon-RW-7B

Falcon-RW-7B is a 7B parameters causal decoder-only model built by TII and trained on 350B tokens of RefinedWeb. It is made available under the Apache 2.0 license.

See the 📓 paper on arXiv for more details.

RefinedWeb is a high-quality web dataset built by leveraging stringent filtering and large-scale deduplication. Falcon-RW-7B, trained on RefinedWeb only, matches or outperforms comparable models trained on curated data.

⚠️ Falcon is now available as a core model in the transformers library! To use the in-library version, please install the latest version of transformers with pip install git+https://github.com/ huggingface/transformers.git, then simply remove the trust_remote_code=True argument from from_pretrained().

⚠️ This model is intended for use as a research artifact, to study the influence of training on web data alone. If you are interested in state-of-the-art models, we recommend using Falcon-7B/40B, both trained on >1,000 billion tokens.

from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch

model = "tiiuae/falcon-rw-7b"

tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
sequences = pipeline(
   "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
    max_length=200,
    do_sample=True,
    top_k=10,
    num_return_sequences=1,
    eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
    print(f"Result: {seq['generated_text']}")

💥 Falcon LLMs require PyTorch 2.0 for use with transformers!

Model Card for Falcon-RW-7B

Model Details

Model Description

  • Developed by: https://www.tii.ae;
  • Model type: Causal decoder-only;
  • Language(s) (NLP): English;
  • License: Apache 2.0.

Model Source

Uses

Direct Use

Research on large language models, specifically the influence of adequately filtered and deduplicated web data on the properties of large language models (fairness, safety, limitations, capabilities, etc.).

Out-of-Scope Use

Production use without adequate assessment of risks and mitigation; any use cases which may be considered irresponsible or harmful.

Broadly speaking, we would recommend Falcon-7B/40B for any use not directly related to research on web data pipelines.

Bias, Risks, and Limitations

Falcon-RW-7B is trained on English data only, and will not generalize appropriately to other languages. Furthermore, as it is trained on a large-scale corpora representative of the web, it will carry the stereotypes and biases commonly encountered online.

Recommendations

We recommend users of Falcon-RW-7B to consider finetuning it for the specific set of tasks of interest, and for guardrails and appropriate precautions to be taken for any production use.

How to Get Started with the Model

from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch

model = "tiiuae/falcon-rw-7b"

tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)
sequences = pipeline(
   "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
    max_length=200,
    do_sample=True,
    top_k=10,
    num_return_sequences=1,
    eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
    print(f"Result: {seq['generated_text']}")

Training Details

Training Data

Falcon-RW-7B was trained on 350B tokens of RefinedWeb, a high-quality filtered and deduplicated web dataset. The data was tokenized with the Falcon-7B/40B tokenizer.

Training Procedure

Falcon-RW-7B was trained on 256 A100 40GB GPUs, using a 3D parallelism strategy (TP=2, PP=2, DP=64) combined with ZeRO.

Training Hyperparameters

Hyperparameters were adapted from the GPT-3 paper (Brown et al., 2020).

HyperparameterValueComment
Precisionbfloat16
OptimizerAdamW
Learning rate1.2e-4500M tokens warm-up, cosine decay to 1.2e-5
Weight decay1e-1
Batch size10244B tokens ramp-up

Speeds, Sizes, Times

Training happened in early January 2023 and took about five days.

Evaluation

See the 📓 paper on arXiv for in-depth evaluation results.

Technical Specifications

Model Architecture and Objective

Falcon-RW-7B is a causal decoder-only model trained on a causal language modeling task (i.e., predict the next token).

The architecture is adapted from the GPT-3 paper (Brown et al., 2020), but uses ALiBi (Ofir et al., 2021) and FlashAttention (Dao et al., 2022).

HyperparameterValueComment
Layers36Increased due to a config error when switching from a multi-query architecture
d_model4096
head_dim64Reduced to optimise for FlashAttention
Vocabulary65024
Sequence length2048

Compute Infrastructure

Hardware

Falcon-RW-7B was trained on AWS SageMaker, on 256 A100 40GB GPUs in P4d instances.

Software

Falcon-RW-7B was trained a custom distributed training codebase, Gigatron. It uses a 3D parallelism approach combined with ZeRO and high-performance Triton kernels (FlashAttention, etc.)

Citation

@article{refinedweb,
  title={The {R}efined{W}eb dataset for {F}alcon {LLM}: outperforming curated corpora with web data, and web data only},
  author={Guilherme Penedo and Quentin Malartic and Daniel Hesslow and Ruxandra Cojocaru and Alessandro Cappelli and Hamza Alobeidli and Baptiste Pannier and Ebtesam Almazrouei and Julien Launay},
  journal={arXiv preprint arXiv:2306.01116},
  eprint={2306.01116},
  eprinttype = {arXiv},
  url={https://arxiv.org/abs/2306.01116},
  year={2023}
}

Contact

falconllm@tii.ae

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
FalconForCausalLM
Ревизия весов
7cc3a73

0 моделей