/ Модель

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

Контекст
131 072 токена
Параметры
7,5 млрд
Размер весов
16,1 ГБ
Лицензия
Своя лицензия
Архитектура
llama · dense
Библиотека
transformers
Опубликована
26 окт 2024

Llama-3.1-Hawkish-8B

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

Дообученная модель Llama 3.1 для генерации диалоговых ответов на финансовые и экономические вопросы, математических рассуждений и изучения материалов CFA Level 1.

204скачиваний за 30 дней49лайковвеса обновлены26 окт 2024

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

  • MATH Lvl 5

    MATH Lvl 5 Raw · выше — лучше

    Результат

    0,2432

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • BBH

    BBH Raw · выше — лучше

    Результат

    0,4884

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • MMLU-PRO

    MMLU-PRO Raw · выше — лучше

    Результат

    0,3331

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • MUSR

    MUSR Raw · выше — лучше

    Результат

    0,3967

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • GPQA

    GPQA Raw · выше — лучше

    Результат

    0,2903

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

  • IFEval

    IFEval Raw · выше — лучше

    Результат

    0,672

    Open LLM v2 · архив

    Публичная таблицаревизия совпадает

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

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

Llama-3.1-Hawkish-8B — дообученная модель mukaj на архитектуре Llama 3.1 с 7,5 млрд параметров. Авторы дополнительно обучили её на финансовых инструкциях по экономике, облигациям с фиксированным доходом, акциям, корпоративному финансированию, деривативам и управлению портфелем, смешав данные с примерами по программированию, общим знаниям, NLP и диалогам. Модель предназначена для генерации ответов и диалога; среди заявленных сценариев — разбор финансовых и экономических вопросов, математические рассуждения и подготовка к экзамену CFA Level 1. В карточке указано контекстное окно 131 072 токена, поддержка чата и интерфейса вызова инструментов; основным языком заявлен английский.

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

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

  • ответы на вопросы по экономике и финансовым рынкам
  • объяснение тем по акциям, облигациям и деривативам
  • разбор задач по корпоративному финансированию и управлению портфелем
  • подготовка учебных материалов и вопросов по CFA Level 1
  • математические рассуждения в учебных финансовых сценариях
  • диалоговые ответы на общие вопросы и вопросы по программированию

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Model v1.0 image/jpeg

Llama-3.1-Hawkish-8B v1

Model has been further finetuned on a set of newly generated 50m high quality tokens related to Financial topics covering topics such as Economics, Fixed Income, Equities, Corporate Financing, Derivatives and Portfolio Management. Data was gathered from publicly available sources and went through several stages of curation into instruction data from the initial amount of 250m+ tokens. To aid in mitigating forgetting information from the original finetune, the data was mixed with instruction sets on the topics of Coding, General Knowledge, NLP and Conversational Dialogue.

The model has shown to improve over a number of benchmarks over the original model, notably in Math and Economics. This model represents the first time a 8B model has been able to convincingly get a passing score on the CFA Level 1 exam, requiring a typical 300 hours of studying, indicating a significant improvement in Financial Knowledge.

image/png

CFA Level 1 Mock Exam Results

If you work in the financial and investment sectors, you will know about the CFA - their exam is known to be “the world's toughest”, requiring typically a total of over 1000 hours to study all 3 levels. Below is a comparison of different models on a sample Level 1 CFA Mock Exam, showing Llama Hawkish outperforming much larger models on the exam. The same prompt was used for all models, results are all 0-shot CoT. Sample mock exam with comparison to other models shown below.

The mock exams are all of varying difficulty and pass rates can be anywhere from 64% to 72% for different Level 1 Mock Exams, with the average being around 67% which is above the 12 year average MPS of 65% for all CFA years. (https://300hours.com/cfa-passing-score/)

Some other Frontier Models were tested on CFA Level 1 Mock Exam, their scores shown below for reference, due to this being a 8B model it is not deemed feasible to outperform these however they leave benchmarks for larger versions of Hawkish or others researching financial data mixes in fine tuning.

Model Usage Example

from vllm import LLM, SamplingParams

# Load the LLM using vLLM
llm = LLM(model="mukaj/Llama-3.1-Hawkish-8B", dtype="auto")
tokenizer = llm.get_tokenizer()

messages = [
    {"role": "system", "content": "You are a Financial Analyst. Reason step by step before answering."},
    {"role": "user", "content": """Given that an equal-weighted index and a market-capitalization-weighted index consist of the same securities, underperformance by small-cap stocks will most likely result in the market-capitalization-weighted index exhibiting what price returns compared to the equal weighted index?""" }
]

prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

# Sampling configuration for vLLM
sampling_params = SamplingParams(temperature=0.2, max_tokens=512)

# Generate response using vLLM
generation = llm.generate(prompt, sampling_params)

# Decode response
generated_response = generation[0].outputs[0].text
print(generated_response)

Output

============= To analyze the impact of underperformance by small-cap stocks on the price returns of an equal-weighted index versus a market-capitalization-weighted index, we need to consider how each index is constructed and how their weights affect their performance.

  1. Index Construction:

    • Equal-Weighted Index: Each security in the index has the same weight, regardless of its market capitalization. This means that all stocks contribute equally to the index's performance.
    • Market-Capitalization-Weighted Index: Each security's weight in the index is proportional to its market capitalization. Larger companies have a greater influence on the index's performance.
  2. Impact of Underperformance:

    • If small-cap stocks underperform, it means that these stocks are not performing as well as they were expected to. In an equal-weighted index, the underperformance of small-cap stocks will still be reflected in the index's performance, but since all stocks have equal weights, the overall impact will be more pronounced.
    • In a market-capitalization-weighted index, the underperformance of small-cap stocks will have a more muted effect on the index's performance because larger stocks (which typically have higher market caps) will still dominate the index's returns. The influence of small-cap stocks, even if they are underperforming, is less significant due to their lower weight.
  3. Price Returns Comparison:

    • As a result of the underperformance of small-cap stocks, the equal-weighted index is likely to show a more significant decline in price returns compared to the market-capitalization-weighted index. This is because the equal-weighted index is more sensitive to the performance of all stocks, including the underperforming small-cap stocks.
    • Conversely, the market-capitalization-weighted index will likely exhibit less severe price declines because the larger stocks will continue to drive the index's performance, mitigating the impact of the underperformance of smaller stocks.

In summary, underperformance by small-cap stocks will most likely result in the market-capitalization-weighted index exhibiting higher price returns compared to the equal-weighted index. The equal-weighted index will likely show a more pronounced decline in price returns due to the equal weighting of all stocks, including the underperforming small-cap stocks.

================

Disclaimer & Intended Uses

Model & License

This research model is derived from Meta's LLaMA 3.1 architecture and is subject to LLaMA 3.1 community license terms, with additional restrictions below. While based on LLaMA 3.1, this is an independent research implementation focused on studying financial data influences in training. Users acknowledge this is experimental research, use at own risk, and accept full responsibility for any implementation or application.

Permitted Use

  • Academic and research purposes only
  • No production environments or real-world applications
  • No financial decision-making or advisory use

Liability & Responsibility

The creators of this model:

  • Accept no responsibility for any use of the model
  • Provide no warranties or guarantees
  • Make no claims about accuracy or reliability

Intellectual Property & Attribution

  • All findings and opinions are solely those of the authors
  • Not endorsed by or affiliated with Meta, CFA Institute or any institutions
  • All trademarks belong to respective owners

The creators reserve the right to modify these terms at any time.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей