Downloads · 30 days
163
3% of all-time downloads
QuantFactory/Llama-3.1-Hawkish-8B-GGUF
Llama-3.1-Hawkish-8B-GGUF is a text generation model from QuantFactory. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
163
3% of all-time downloads
All-time downloads
6K
Public
Repo size
72.7 GB
Likes
5
Public
Click a slice to open those files.
.gguf72.7 GB · 100%
From the Hugging Face model README
This is quantized version of mukaj/Llama-3.1-Hawkish-8B created using llama.cpp
language:
<font size="1">Model v1.0</font>

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.

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.
<table> <thead> <tr> <th>CFA Level 1</th> <th>GPT-4o-mini (%)</th> <th>Llama Hawkish 8B (%)</th> <th>Meta-Llama Instruct 8B (%)</th> <th>Meta-Llama Instruct 70B (%)</th> <th>Palmyra Fin 70B (%)</th> </tr> </thead> <tbody> <tr> <td>Ethical and Professional Standards</td> <td><b>77.77</b></td> <td><b>77.77</b></td> <td>55.55</td> <td>66.6</td> <td>61.11</td> </tr> <tr> <td>Quantitative Methods</td> <td>71.43</td> <td>71.4</td> <td>64.28</td> <td><b>85.71</b></td> <td>71.4</td> </tr> <tr> <td>Economics</td> <td>66.66</td> <td><b>75</b></td> <td>58</td> <td>58.33</td> <td>41.66</td> </tr> <tr> <td>Financial Reporting</td> <td>79.2</td> <td><b>87.5</b></td> <td>66.6</td> <td>70.83</td> <td>50</td> </tr> <tr> <td>Corporate Finance</td> <td><b>80</b></td> <td>60</td> <td>50</td> <td><b>80</b></td> <td>50</td> </tr> <tr> <td>Equity Investments</td> <td>50</td> <td>50</td> <td>41.6</td> <td><b>66.6</b></td> <td>41.66</td> </tr> <tr> <td>Fixed Income</td> <td><b>78.57</b></td> <td>50</td> <td>28.57</td> <td>50</td> <td>42.85</td> </tr> <tr> <td>Derivatives</td> <td>50</td> <td><b>66.7</b></td> <td>33.3</td> <td>33.3</td> <td>50</td> </tr> <tr> <td>Alternative Investments</td> <td><b>100</b></td> <td><b>100</b></td> <td>75</td> <td><b>100</b></td> <td>75</td> </tr> <tr> <td>Portfolio Management</td> <td>83.3</td> <td>83.3</td> <td>50</td> <td><b>100</b></td> <td>83.3</td> </tr> <tr> <td><b>Weighted Average</b></td> <td><b>73.49</b></td> <td><b>71.43</b></td> <td>52.7672</td> <td><b>69.86</b></td> <td>54.77</td> <td>-</td> </tr> <tr> <td><b>Result</b></td> <td><b>PASS</b></td> <td><b>PASS</b></td> <td><b>FAIL</b></td> <td><b>PASS</b></td> <td><b>FAIL</b></td> </tr> </tbody> </table>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.
<table border="1" cellpadding="8" cellspacing="0"> <thead> <tr> <th>Model</th> <th>Performance (%)</th> </tr> </thead> <tbody> <tr> <td>Qwen2.5 - 70B</td> <td>81.66%</td> </tr> <tr> <td>Nemotron - 70B</td> <td>79.16%</td> </tr> <tr> <td>GPT-4o</td> <td><strong>85.83%</strong></td> </tr> <tr> <td>GPT-4o-mini</td> <td>73.49%</td> </tr> <tr> <td>Gemini 1.5 Pro</td> <td>75%</td> </tr> <tr> <td>Llama 405B Instruct</td> <td>77.5%</td> </tr> <tr> <td>DeepSeekChat v2.5</td> <td>66.6%</td> </tr> </tbody> </table>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)
============= 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.
Index Construction:
Impact of Underperformance:
Price Returns Comparison:
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.
================
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.
The creators of this model:
The creators reserve the right to modify these terms at any time.