/ Модель

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

Контекст
2 048 токенов
Параметры
6,6 млрд
Размер весов
53,9 ГБ
Лицензия
Llama 2
Архитектура
llama · dense
Библиотека
transformers
Опубликована
28 ноя 2023

ReluLLaMA-7B

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

Дообученная версия Llama 2 7B с активацией ReLU для генерации английского текста и исследований разреженных вычислений в LLM.

112скачиваний за 30 дней12лайковвеса обновлены19 дек 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ReluLLaMA-7B — языковая модель семейства Llama 2, созданная Meta и дообученная THUNLP и ModelBest. Авторы преобразовали её в вариант с активацией ReLU, чтобы исследовать разреженные вычисления и повысить эффективность инференса. Модель содержит 6,6 млрд параметров, использует архитектуру LlamaForCausalLM и рассчитана на контекст до 2048 токенов.

Модель предназначена для генерации текста и общих языковых задач на английском языке. Дообучение проводилось примерно на 5 млрд токенов из Wikipedia, Pile и StackOverflow; авторы оценивали её на наборах Open LLM Leaderboard. Для CPU-инференса использовался PowerInfer. В опубликованных оценках ReluLLaMA-7B уступила исходной Llama 2 7B по приведённым показателям ARC, HellaSwag и MMLU.

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

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

  • генерация английского текста по запросу
  • ответы на общие вопросы на английском языке
  • эксперименты с разреженными вычислениями в языковых моделях
  • сравнение ReLU-моделей с исходной Llama 2
  • инференс языковой модели на CPU с PowerInfer

Ограничения

В опубликованных оценках модель уступает исходной Llama 2 7B по ARC, HellaSwag и MMLU. Ответы могут быть неточными, предвзятыми или неприемлемыми; тестирование проводилось на английском и не охватывает все сценарии.

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

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

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

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

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

Открыть на Hugging Face

ReluLLaMA-7B

Background

Sparse computation is increasingly recognized as an important direction in enhancing the computational efficiency of large language models (LLMs). Among various approaches, the mixture-of-experts (MoE) method, exemplified by models like Mixtral, has shown particular promise. MoE works by selectively activating different model components (experts), thus optimizing resource usage.

Recent studies (Zhang el al., 2021; Liu et al., 2023; Mirzadeh et al., 2023) reveal that LLMs inherently exhibit properties conducive to sparse computation when employing the ReLU activation function. This insight opens up new avenues for model efficiency, akin to MoE's selective activation. By dynamically choosing model parameters for computation, we can substantially boost efficiency.

However, the widespread adoption of ReLU-based models in the LLM field remains limited. Referring to the transformation methods from existing works (Zhang el al., 2021; Mirzadeh et al., 2023), we convert existing models to ReLU-activated versions through fine-tuning. We hope these open-source ReLU LLMs could promote the development of sparse LLMs.

Dataset

We finetune the model on about 5 billion tokens, including:

  • Wikipedia
  • Pile
  • StackOverflow

We optimistically believe that by continuing to train with more tokens (covering a wider variety of data), the model will further approach its original performance.

Training Details

We jointly optimize the model on the conventional language modeling objective and the knowledge distillation objective. The knowledge distillation objective is to minimize the KL divergence between the teacher model and the student model. The teacher model is the original LLM, and the student model is the ReLU-activated version. Since the size of the fine-tuning data is relatively small, we introduce the knowledge distillation objective to avoid overfitting and enhance the generalization ability of the model, which can be also seen as a technique of label smoothing.

ParameterValue
Finetune_TypeFull FT
Batch_Size2048
GPUs8xA100(80G)
LR_Schedulercosine
LR3e-5

Evaluation

We evaluate the model on the datasets of Open LLM Leaderboard. The results are shown below:

MetricReLU ValueOrig Value
ARC (25-shot)49.4853.07
HellaSwag (10-shot)74.6778.59
MMLU (5-shot)44.8446.87
TruthfulQA (0-shot)39.0438.76
Winogrande (5-shot)69.3774.03
GSM8K (5-shot)10.6114.48
Average48.0050.97

Inference Tool

We utilize PowerInfer for inference, here we present the inference speeds of pure CPU-based inference with fp16 precision. The CPU configuration includes an Intel i9-13900K processor (eight performance cores at 5.4GHz) and 192GB of host memory (with a memory bandwidth of 67.2 GB/s).

Dense Inference: 5.17 tokens/s

Sparse Inference: 8.21 tokens/s

License Disclaimer:

This model is bound by the license & usage restrictions of the original Llama-2 model. And comes with no warranty or gurantees of any kind.

Limitations & Biases:

Llama 2 and fine-tuned variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Llama 2 and any fine-tuned varient's potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 2 variants, developers should perform safety testing and tuning tailored to their specific applications of the model.

Please see the Responsible Use Guide available at https://ai.meta.com/llama/responsible-use-guide/

Citiation:

Please kindly cite using the following BibTeX:

@misc{sparsellm,
    title={Sparse Large Language Models with ReLU Activation}, 
    author={SpaseLLM Team},
    year={2023}
}

Acknowledgments:

The model card is modified from ORCA_LLaMA_70B_QLoRA.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей