taddeusb90
commited on
Commit
•
84d98bb
1
Parent(s):
8bebce6
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,112 @@
|
|
1 |
-
---
|
2 |
-
license: llama3
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama3
|
3 |
+
datasets:
|
4 |
+
- taddeusb90/finbro-v0.1.0
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
library_name: transformers
|
8 |
+
tags:
|
9 |
+
- finance
|
10 |
+
---
|
11 |
+
|
12 |
+
Fibro v0.1.0 Llama 3 8B Model with 1Million token context window
|
13 |
+
======================
|
14 |
+
|
15 |
+
Model Description
|
16 |
+
-----------------
|
17 |
+
|
18 |
+
The Fibro Llama 3 8B model is language model optimized for financial applications. This model aims to enhance financial analysis, automate data extraction, and improve financial literacy across various user expertise levels. It utilizes a massive 1 million token context window.
|
19 |
+
This is just a sneak peek into what's coming, and future releases will be done periodically consistently improving it's performance.
|
20 |
+
|
21 |
+
What's Next?
|
22 |
+
-----------
|
23 |
+
|
24 |
+
* **Extended Capability:** Continue training on the 8B model as it hasn't converged yet as I only scratched the surface here and transitioning to scale up with a 70B model for deeper insights and broader financial applications.
|
25 |
+
* **Dataset Expansion:** Continuous enhancement by integrating more diverse and comprehensive real and synthetic financial data.
|
26 |
+
* **Advanced Financial Analysis:** Future versions will support complex financial decision-making processes by interpreting and analyzing financial data within agentive workflows.
|
27 |
+
* **Incremental Improvements:** Regular updates are made to increase the model's efficiency and accuracy and extend it's capabilities in financial tasks.
|
28 |
+
|
29 |
+
Model Applications
|
30 |
+
------------------
|
31 |
+
|
32 |
+
* **Information Extraction:** Automates the process of extracting valuable data from unstructured financial documents.
|
33 |
+
* **Financial Literacy:** Provides explanations of financial documents at various levels, making financial knowledge more accessible.
|
34 |
+
|
35 |
+
|
36 |
+
How to Use
|
37 |
+
----------
|
38 |
+
|
39 |
+
Here is how to load and use the model in your Python projects:
|
40 |
+
|
41 |
+
|
42 |
+
```python
|
43 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
44 |
+
|
45 |
+
model_name = "taddeusb90/finbro-v0.1.0-llama-3-8B-instruct-1m-POSE"
|
46 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
47 |
+
|
48 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
49 |
+
text = "Your financial query here"
|
50 |
+
|
51 |
+
inputs = tokenizer(text, return_tensors="pt")
|
52 |
+
|
53 |
+
outputs = model.generate(inputs['input_ids'])
|
54 |
+
|
55 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
56 |
+
```
|
57 |
+
|
58 |
+
Training Data
|
59 |
+
-------------
|
60 |
+
|
61 |
+
The Fibro Llama 3 8B model was trained on the Finbro Dataset, an extensive compilation of over 300,000 entries sourced from Investopedia and Sujet Finance. This dataset includes structured Q&A pairs, financial reports, and a variety of financial tasks pooled from multiple datasets.
|
62 |
+
|
63 |
+
The dataset can be found [here](https://huggingface.co/datasets/taddeusb90/finbro-v0.1.0)
|
64 |
+
|
65 |
+
This dataset will be extended to contain real and synthetic data on a wide range of financial tasks such as:
|
66 |
+
- Investment valuation
|
67 |
+
- Value investing
|
68 |
+
- Security analysis
|
69 |
+
- Derivatives
|
70 |
+
- Asset and portfolio management
|
71 |
+
- Financial information extraction
|
72 |
+
- Quantitative finance
|
73 |
+
- Econometrics
|
74 |
+
- Applied computer science in finance
|
75 |
+
and much more
|
76 |
+
|
77 |
+
Notice
|
78 |
+
--------
|
79 |
+
|
80 |
+
Please exercise caution and use it at your own risk. I assume no responsibility for any losses incurred if used.
|
81 |
+
|
82 |
+
|
83 |
+
Licensing
|
84 |
+
---------
|
85 |
+
|
86 |
+
This model is released under the [META LLAMA 3 COMMUNITY LICENSE AGREEMENT](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct/blob/main/LICENSE).
|
87 |
+
|
88 |
+
|
89 |
+
Citation
|
90 |
+
--------
|
91 |
+
|
92 |
+
If you use this model in your research, please cite it as follows:
|
93 |
+
|
94 |
+
|
95 |
+
```bibtex
|
96 |
+
@misc{
|
97 |
+
finbro_v0.1.0-llama-3-8B-1m-POSE,
|
98 |
+
author = {Taddeus Buica}, title = {Fibro Llama 3 8B Model for Financial Analysis},
|
99 |
+
year = {2024},
|
100 |
+
journal = {Hugging Face repository},
|
101 |
+
howpublished = {\url{https://huggingface.co/taddeusb90/finbro-v0.1.0-llama-3-8B-instruct-1m-POSE}}
|
102 |
+
}
|
103 |
+
```
|
104 |
+
|
105 |
+
Special thanks to the folks from AI@Meta for powering this project with their awesome models.
|
106 |
+
|
107 |
+
References
|
108 |
+
--------
|
109 |
+
|
110 |
+
[[1](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct)] Llama 3 Model Card by AI@Meta, Year: 2024
|
111 |
+
[[2](https://huggingface.co/datasets/sujet-ai/Sujet-Finance-Instruct-177k)] Sujet Finance Dataset
|
112 |
+
[[3](https://huggingface.co/datasets/FinLang/investopedia-instruction-tuning-dataset)] Dataset Card for investopedia-instruction-tuning
|