/ Модель

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

Контекст
4 096 токенов
Параметры
68,7 млрд
Размер весов
138 ГБ
Лицензия
Llama 2
Архитектура
llama · dense
Опубликована
9 янв 2024

v-alpha-tross

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

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

62скачиваний за 30 дней20лайковвеса обновлены14 фев 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

v-alpha-tross — ранняя демонстрационная языковая модель для финансовых задач, разработанная Gradient в рамках семейства Albatross. Она основана на meta-llama/Llama-2-70b-hf и прошла дополнительное предварительное обучение на финансовых данных, дообучение и настройку инструкций. В метаданных указаны архитектура LlamaForCausalLM, 68,7 млрд параметров и контекст до 4096 токенов.

Модель предназначена для финансовых сценариев: математических рассуждений, извлечения сведений из таблиц, включая таблицы в документах SEC, ответов с опорой на документы и их суммаризации, а также диалогового взаимодействия. Для ожидаемого поведения README рекомендует формат запросов Llama 2 Chat. Карточка сообщает о результатах на финансовых таблицах и математических задачах, но это ранняя версия с ограниченными возможностями; Gradient не планирует дальнейшую внутреннюю разработку этой версии.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Albatross is a collection of domain-specific language models for finance applications developed by Gradient.

This is the repository for an early, limited capability version, the v-alpha-tross, designed to showcase performance on

  • mathematical reasoning
  • tabular understanding
  • open-book retrieval (RAG) & summarization
  • conversational interface

Release versions of Albatross models are additionally trained on proprietary implementations of the latest architecture augmentation, expanded training and alignment data, and target reduced hallucination at retrieval, improved auditability, and multi-hop reasoning. To inquire for access to release versions, please reach out to contact@gradient.ai

Model description

The v-alpha-tross model is based on meta-llama/Llama-2-70b-hf, with additional, finance specific, pre-training, fine-tuning and instruction tuning.

This model substantially outperforms Llama2-70B models on H6 Average score, and GSM8K, with similar performance to mistralai/Mixtral-8x7B-Instruct-v0.1. It also reaches gpt-3.5-turbo performance in extracting information from tabular data like those found in SEC filings.

Intended use

The v-alpha-tross is intended as a demonstration of Gradient’s Albatross framework for developing large language models specific to the finance domain. We welcome additional research and development, but do not plan on continued internal development on this legacy model.

To get the expected performance, follow formatting requirements of Llama-2 chat, including INST and <<SYS>> tags, and <s> tokens.

Training Strategy

The Albatross framework overcomes deficiencies in general-purpose language models that arise in the face of solving tasks in the finance domain.

Release versions of Albatross use an expanded data universe for extended capabilities.

Pre-Training

A base Llama2-70B is further pre-trained on finance data since LLMs are poor at answering questions when their internal relevant document store is sparse [1].

To curate quality training data with low operational overhead we demo a novel data gathering approach:

  1. Crawl public repositories of text data. For v-alpha-tross, we limited to Red Pajamas and https://github.com/.
  2. Programmatically filter the crawled corpus to datasets not likely to be in the base model's training already, using a likelihood ratio test adapted from LiRA membership inference.[2]
  3. Human finance professionals review the (much smaller) filtered corpus to further remove low quality results.

[1] Kandpal, Nikhil, et al. "Large language models struggle to learn long-tail knowledge." International Conference on Machine Learning. PMLR, 2023.

[2] Carlini, Nicholas, et al. "Membership inference attacks from first principles." 2022 IEEE Symposium on Security and Privacy (SP). IEEE, 2022.

Fine-Tuning

Supervised fine-tuning (SFT) and direct preference optimization (DPO)[3] further enhances performance and alignment on finance-related tasks.

v-alpha-tross includes a subset of Albatross tuning goals: financial anchoring, mathematical reasoning, tabular understanding, conversational communication, summarization.

Category# Tokens (1Ms)% of Total
Chat (e.g. ultrachat_200k)64045.2
Alignment * (e.g. orca_dpo)33123.4
Math * (e.g. Goat[4])30021.2
Tabular *684.8
Summarization (e.g. legal_summarization)523.7
Open-book (e.g. selfrag)251.8

(*) = Proprietary or includes proprietary data sets

[3] Rafailov, R., Sharma, A., Mitchell, E., Ermon, S., Manning, C.D. and Finn, C., 2023. Direct preference optimization: Your language model is secretly a reward model. NeurIPS.

[4] Liu, Tiedong, and Bryan Kian Hsiang Low. "Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Tasks." arXiv preprint arXiv:2305.14201 (2023).

Benchmarks

From a Llama-2-70B base, v-alpha-tross improves H6 metrics, and in particular GSM8k (arithmetic reasoning), scoring similar to Mixtral-8x7B-Instruct-v0.1. Relative to a subset of Open LLM Leaderboard [4] models which also use Llama-2-70B as a base, the model achieves state of the art results for the Average H6 score.

On financial table understanding (our new metric) the model is on par with GPT-3.5.

ModelH6 [4]GSM8ksec_tables_v1
v-alpha-tross73.2861.79100.0
meta-llama/Llama-2-70B-hf67.8754.0675.76
meta-llama/Llama-2-70b-chat-hf62.4026.6987.88
mistralai/Mixtral-8x7B-Instruct-v0.172.7061.1182.35
GPT-3.5N/A57.1 [5]100.0

[4] https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard

[5] https://paperswithcode.com/sota/arithmetic-reasoning-on-gsm8k

Training procedure

We develop Albatross on Gradient’s distributed training platform, leveraging leading open source toolsets and optimizations like Axolotl, Accelerate, and Deepspeed for high throughput and memory efficiency.

Training hyperparameters (DPO)

The following hyperparameters were used during DPO training:

  • learning_rate: 5e-07
  • train_batch_size: 3
  • eval_batch_size: 3
  • seed: 42
  • distributed_type: multi-GPU
  • num_devices: 40
  • total_train_batch_size: 120
  • total_eval_batch_size: 120
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_steps: 18
  • num_epochs: 1
  • dpo_beta: .1

Framework versions

  • Transformers 4.35.1
  • Pytorch 2.0.1+cu118
  • Datasets 2.14.7
  • Tokenizers 0.14.1

Bias

v-alpha-tross has not been specifically aligned for safety, so the model can produce problematic outputs (especially when prompted to do so). It is also subject to any risks of the corpus that was used to train the base Llama 2 models.

More information & how to cite

Whitepaper coming soon!

The Gradient AI Team

Gradient is accelerating AI transformation across industries. https://gradient.ai/

Contact Us

Drop an email to contact@gradient.ai

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей