/ Модель

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

Контекст
8 192 токена
Параметры
69,5 млрд
Размер весов
141 ГБ
Лицензия
Llama 3
Архитектура
llama · dense
Опубликована
7 июн 2024

Llama-3-SEC-Base

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

Промежуточная модель Arcee AI на базе Llama 3 для генерации текста и анализа англоязычных документов SEC.

204скачиваний за 30 дней16лайковвеса обновлены19 июн 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Llama-3-SEC-Base — языковая модель Arcee AI для генерации текста и анализа документов Комиссии по ценным бумагам и биржам США (SEC). Она построена на Meta-Llama-3-70B-Instruct и представляет собой промежуточный контрольный снимок: модель прошла непрерывное предобучение на финансовых данных и была объединена с базовой моделью методом TIES. Обучение проводилось с использованием Megatron-Core; в описании указано, что на момент выпуска чекпойнт обработал 20 млрд токенов, а обучение на полном наборе данных ещё продолжалось.

Модель рассчитана на работу с английскими SEC-отчётами и сценарии вроде инвестиционного анализа, оценки рисков, проверки нормативного соответствия, а также изучения корпоративного управления и рыночных тенденций. Это плотная авторегрессионная модель архитектуры Llama с 69,5 млрд параметров и контекстом 8192 токена; она принимает текст и генерирует текст. Несмотря на шаблон чата Llama 3, эта версия не прошла дополнительное supervised fine-tuning для диалогов. Доступна по лицензии Llama 3, допускающей коммерческое и некоммерческое использование с соблюдением её условий.

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

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

Ограничения

Это промежуточный чекпойнт, обученный на 20 млрд токенов, тогда как полное обучение на описанном наборе данных ещё продолжалось. Модель не проходила supervised fine-tuning для диалогов, поэтому её разговорное поведение и надёжность ответов могут быть ограничены.

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

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

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

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

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

Открыть на Hugging Face

Llama-3-SEC-Base: A Domain-Specific Chat Agent for SEC Data Analysis

Llama-3-SEC-Base is a state-of-the-art domain-specific large language model trained on a vast corpus of SEC (Securities and Exchange Commission) data. Built upon the powerful Meta-Llama-3-70B-Instruct model, Llama-3-SEC-Base has been developed to provide unparalleled insights and analysis capabilities for financial professionals, investors, researchers, and anyone working with SEC filings and related financial data. This checkpoint does not include supervised fine-tuning (SFT) and is strictly the our CPT model merged with Llama-3-70B-Instruct. For a variant that has been fine-tuned for chat-related purposes, please see Llama-3-SEC-Chat.

Model Details

  • Base Model: Meta-Llama-3-70B-Instruct
  • Training Data: This is an intermediate checkpoint of our final model, which has seen 20B tokens so far. The full model is still in the process of training. The final model is being trained with 72B tokens of SEC filings data, carefully mixed with 1B tokens of general data from Together AI's RedPajama dataset: RedPajama-Data-1T to maintain a balance between domain-specific knowledge and general language understanding
  • Training Method: Continual Pre-Training (CPT) using the Megatron-Core framework, followed by model merging with the base model using the state-of-the-art TIES merging technique in the Arcee Mergekit toolkit
  • Training Infrastructure: AWS SageMaker HyperPod cluster with 4 nodes, each equipped with 32 H100 GPUs, ensuring efficient and scalable training of this massive language model

Use Cases

Llama-3-SEC-Base is designed to assist with a wide range of tasks related to SEC data analysis, including but not limited to:

  • In-depth investment analysis and decision support
  • Comprehensive risk management and assessment
  • Ensuring regulatory compliance and identifying potential violations
  • Studying corporate governance practices and promoting transparency
  • Conducting market research and tracking industry trends

The model's deep understanding of SEC filings and related financial data makes it an invaluable tool for anyone working in the financial sector, providing powerful natural language processing capabilities tailored to the specific needs of this domain.

Evaluation

To ensure the robustness and effectiveness of Llama-3-SEC-Base, the model has undergone rigorous evaluation on both domain-specific and general benchmarks. Key evaluation metrics include:

  • Domain-specific perplexity, measuring the model's performance on SEC-related data
  • Extractive numerical reasoning tasks, using subsets of TAT-QA and ConvFinQA datasets
  • General evaluation metrics, such as BIG-bench, AGIEval, GPT4all, and TruthfulQA, to assess the model's performance on a wide range of tasks

These results demonstrate significant improvements in domain-specific performance while maintaining strong general capabilities, thanks to the use of advanced CPT and model merging techniques.

Training and Inference

Llama-3-SEC-Base has uses the llama3 chat template, which allows for efficient and effective fine-tuning of the model on the SEC data. This template ensures that the model maintains its strong conversational abilities while incorporating the domain-specific knowledge acquired during the CPT process.

To run inference with the Llama-3-SEC-Base model using the llama3 chat template, use the following code:

from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda"

model_name = "arcee-ai/Llama-3-SEC-Base"

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)

prompt = "What are the key regulatory considerations for a company planning to conduct an initial public offering (IPO) in the United States?"
messages = [
    {"role": "system", "content": "You are an expert financial assistant - specializing in governance and regulatory domains."},
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(device)

generated_ids = model.generate(
    model_inputs.input_ids,
    max_new_tokens=512
)
generated_ids = [
    output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]

response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]

Limitations and Future Work

This release represents the initial checkpoint of the Llama-3-SEC-Base model, trained on 20B tokens of SEC data. Additional checkpoints will be released in the future as training on the full 70B token dataset is completed. Future work will focus on further improvements to the CPT data processing layer, exploration of advanced model merging techniques, and alignment of CPT models with SFT, DPO, and other cutting-edge alignment methods to further enhance the model's performance and reliability.

Usage

The model is available for both commercial and non-commercial use under the Llama-3 license. We encourage users to explore the model's capabilities and provide feedback to help us continuously improve its performance and usability. For more information - please see our detailed blog on Llama-3-SEC-Base.

Citation

If you use this model in your research or applications, please cite:

@misc{Introducing_SEC_Data_Chat_Agent, 
      title={Introducing the Ultimate SEC Data Chat Agent: Revolutionizing Financial Insights}, 
      author={Shamane Siriwardhana and Luke Mayers and Thomas Gauthier and Jacob Solawetz and Tyler Odenthal and Anneketh Vij and Lucas Atkins and Charles Goddard and Mary MacCarthy and Mark McQuade},
      year={2024},
      note={Available at: \url{firstname@arcee.ai}},
      url={URL after published}
}

For further information or inquiries, please contact the authors at their respective email addresses (firstname@arcee.ai). We look forward to seeing the exciting applications and research that will emerge from the use of Llama-3-SEC-Base in the financial domain.

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

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

GPU в ailist

vLLM

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

Подбираем GPU…

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

0 моделей