/ Модель

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

Контекст
32 768 токенов
Параметры
7,1 млрд
Размер весов
48,3 ГБ
Лицензия
Apache 2.0
Архитектура
mixtral · MoE
Опубликована
3 фев 2024

Roundhouse-4x7B-bf16

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

Экспериментальная англоязычная Mixtral MoE-модель, объединяющая несколько чекпойнтов для генерации текста.

25скачиваний за 30 дней3лайкавеса обновлены4 фев 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ConvexAI/Roundhouse-4x7B-bf16 — экспериментальная языковая модель на архитектуре Mixtral с разреженной смесью экспертов (MoE), созданная объединением нескольких моделей. В README указаны TurdusBeagle-7B как базовая модель и четыре экспертных компонента, среди которых Turdus и варианты Marcoroni. Автор описывает работу как эксперимент с маршрутизацией экспертов без положительного промптинга; маршрутизатор не обучался совместно с моделью, поэтому это «frankenMoE», а не стандартная обученная MoE-система.

Модель предназначена для генерации текста на английском языке. Метаданные указывают 7,1 млрд параметров, контекст до 32 768 токенов и формат Safetensors; репозиторий также ссылается на GGUF-файлы. Лицензия — Apache-2.0. MoE может активировать часть параметров при обработке токенов, однако для загрузки требуются ресурсы для размещения весов; README отдельно отмечает риск неудачной маршрутизации и общие сложности обучения и инференса MoE.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

image/png

"Empty your mind, be formless, shapeless, like water."

Join our Discord!

GGUF FILES HERE

Trying to see what happens when we use zero positive prompting...if the routing is already jank maybe it doesn't matter.

The config looks like this...(detailed version is in the files and versions):

The last trial of this method went exceedingly well, so this is really an improvement of BurningBruce004.

"What is a Mixture of Experts (MoE)?"

(from the MistralAI papers...click the quoted question above to navigate to it directly.)

The scale of a model is one of the most important axes for better model quality. Given a fixed computing budget, training a larger model for fewer steps is better than training a smaller model for more steps.

Mixture of Experts enable models to be pretrained with far less compute, which means you can dramatically scale up the model or dataset size with the same compute budget as a dense model. In particular, a MoE model should achieve the same quality as its dense counterpart much faster during pretraining.

So, what exactly is a MoE? In the context of transformer models, a MoE consists of two main elements:

Sparse MoE layers are used instead of dense feed-forward network (FFN) layers. MoE layers have a certain number of “experts” (e.g. 32 in my "frankenMoE"), where each expert is a neural network. In practice, the experts are FFNs, but they can also be more complex networks or even a MoE itself, leading to hierarchical MoEs!

A gate network or router, that determines which tokens are sent to which expert. For example, in the image below, the token “More” is sent to the second expert, and the token "Parameters” is sent to the first network. As we’ll explore later, we can send a token to more than one expert. How to route a token to an expert is one of the big decisions when working with MoEs - the router is composed of learned parameters and is pretrained at the same time as the rest of the network.

At every layer, for every token, a router network chooses two of these groups (the “experts”) to process the token and combine their output additively.

image/png

Switch Layer MoE layer from the Switch Transformers paper

So, to recap, in MoEs we replace every FFN layer of the transformer model with an MoE layer, which is composed of a gate network and a certain number of experts.

Although MoEs provide benefits like efficient pretraining and faster inference compared to dense models, they also come with challenges:

Training: MoEs enable significantly more compute-efficient pretraining, but they’ve historically struggled to generalize during fine-tuning, leading to overfitting.
Inference: Although a MoE might have many parameters, only some of them are used during inference. This leads to much faster inference compared to a dense model with the same number of parameters. However, all parameters need to be loaded in RAM, so memory requirements are high. For example, [given a MoE like Mixtral 8x7B](https://huggingface.co/blog/moe), we’ll need to have enough VRAM to hold a dense 47B parameter model. Why 47B parameters and not 8 x 7B = 56B? That’s because in MoE models, only the FFN layers are treated as individual experts, and the rest of the model parameters are shared. At the same time, assuming just two experts are being used per token, the inference speed (FLOPs) is like using a 12B model (as opposed to a 14B model), because it computes 2x7B matrix multiplications, but with some layers shared (more on this soon).

If all our tokens are sent to just a few popular experts, that will make training inefficient. In a normal MoE training, the gating network converges to mostly activate the same few experts. This self-reinforces as favored experts are trained quicker and hence selected more. To mitigate this, an auxiliary loss is added to encourage giving all experts equal importance. This loss ensures that all experts receive a roughly equal number of training examples. The following sections will also explore the concept of expert capacity, which introduces a threshold of how many tokens can be processed by an expert. In transformers, the auxiliary loss is exposed via the aux_loss parameter.

"Wait...but you called this a frankenMoE?"

The difference between MoE and "frankenMoE" lies in the fact that the router layer in a model like the one on this repo is not trained simultaneously.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей