Update README.md
Browse files
README.md
CHANGED
@@ -3,146 +3,141 @@ library_name: transformers
|
|
3 |
tags: []
|
4 |
---
|
5 |
|
6 |
-
# Model Card for
|
7 |
-
|
8 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
-
|
10 |
|
|
|
11 |
|
12 |
## Model Details
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
19 |
|
20 |
- **Developed by:** The Fin AI
|
21 |
- **Funded by [optional]:** [More Information Needed]
|
22 |
- **Shared by [optional]:** [More Information Needed]
|
23 |
-
- **Model type:**
|
24 |
- **Language(s) (NLP):** Greek
|
25 |
- **License:** Apache License 2.0
|
26 |
- **Finetuned from model [optional]:** ilsp/Llama-Krikri-8B-Instruct
|
27 |
|
28 |
### Model Sources [optional]
|
29 |
|
30 |
-
<!-- Provide the basic links for the model. -->
|
31 |
-
|
32 |
- **Repository:** https://huggingface.co/TheFinAI/plutus-8B-instruct
|
33 |
- **Paper [optional]:** Plutus: Benchmarking Large Language Models in Low-Resource Greek Finance
|
34 |
- **Demo [optional]:** https://huggingface.co/spaces/TheFinAI/plutus-8B-instruct
|
35 |
|
36 |
## Uses
|
37 |
|
38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
-
|
40 |
### Direct Use
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
[More Information Needed]
|
45 |
|
46 |
### Downstream Use [optional]
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
[More Information Needed]
|
51 |
|
52 |
### Out-of-Scope Use
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
[More Information Needed]
|
57 |
|
58 |
## Bias, Risks, and Limitations
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
[More Information Needed]
|
63 |
|
64 |
### Recommendations
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
|
70 |
## How to Get Started with the Model
|
71 |
|
72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
|
74 |
-
|
75 |
|
76 |
## Training Details
|
77 |
|
78 |
### Training Data
|
79 |
|
80 |
-
|
81 |
-
|
82 |
-
[More Information Needed]
|
83 |
|
84 |
### Training Procedure
|
85 |
|
86 |
-
|
87 |
|
88 |
#### Preprocessing [optional]
|
89 |
|
90 |
-
|
91 |
-
|
92 |
|
93 |
#### Training Hyperparameters
|
94 |
|
95 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
#### Speeds, Sizes, Times [optional]
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
[More Information Needed]
|
102 |
|
103 |
## Evaluation
|
104 |
|
105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
106 |
-
|
107 |
### Testing Data, Factors & Metrics
|
108 |
|
109 |
#### Testing Data
|
110 |
|
111 |
-
|
112 |
-
|
113 |
-
[More Information Needed]
|
114 |
|
115 |
#### Factors
|
116 |
|
117 |
-
|
118 |
-
|
119 |
-
|
|
|
120 |
|
121 |
#### Metrics
|
122 |
|
123 |
-
|
124 |
-
|
125 |
-
[More Information Needed]
|
126 |
|
127 |
### Results
|
128 |
|
129 |
-
|
130 |
|
131 |
#### Summary
|
132 |
|
133 |
-
|
134 |
|
135 |
## Model Examination [optional]
|
136 |
|
137 |
-
|
138 |
-
|
139 |
-
[More Information Needed]
|
140 |
|
141 |
## Environmental Impact
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
146 |
|
147 |
- **Hardware Type:** [More Information Needed]
|
148 |
- **Hours used:** [More Information Needed]
|
@@ -154,46 +149,53 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
154 |
|
155 |
### Model Architecture and Objective
|
156 |
|
157 |
-
|
158 |
|
159 |
### Compute Infrastructure
|
160 |
|
161 |
-
|
162 |
|
163 |
#### Hardware
|
164 |
|
165 |
-
|
166 |
|
167 |
#### Software
|
168 |
|
169 |
-
|
|
|
|
|
170 |
|
171 |
## Citation [optional]
|
172 |
|
173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
-
|
175 |
**BibTeX:**
|
176 |
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
**APA:**
|
180 |
|
181 |
-
|
182 |
|
183 |
## Glossary [optional]
|
184 |
|
185 |
-
|
186 |
-
|
187 |
-
|
|
|
188 |
|
189 |
## More Information [optional]
|
190 |
|
191 |
-
|
192 |
|
193 |
## Model Card Authors [optional]
|
194 |
|
195 |
-
|
196 |
|
197 |
## Model Card Contact
|
198 |
|
199 |
-
|
|
|
3 |
tags: []
|
4 |
---
|
5 |
|
6 |
+
# Model Card for plutus-8B-instruct
|
|
|
|
|
|
|
7 |
|
8 |
+
This model is an instruction-tuned large language model specialized for Greek financial texts. It is based on the ilsp/Llama-Krikri-8B-Instruct model and has been fine-tuned using Low-Rank Adaptation (LoRA) on a mixed Greek financial dataset.
|
9 |
|
10 |
## Model Details
|
11 |
|
12 |
### Model Description
|
13 |
|
14 |
+
This model card describes plutus-8B-instruct, a model developed by The Fin AI and finetuned to serve Greek-centric financial language tasks. The model leverages parameter-efficient fine-tuning (PEFT) via LoRA and is designed to generate or understand financial texts in Greek. The training was carried out with a local command-line backend with logging managed via TensorBoard.
|
|
|
|
|
15 |
|
16 |
- **Developed by:** The Fin AI
|
17 |
- **Funded by [optional]:** [More Information Needed]
|
18 |
- **Shared by [optional]:** [More Information Needed]
|
19 |
+
- **Model type:** Instruction-tuned large language model, specialized for low-resource domains such as Greek finance
|
20 |
- **Language(s) (NLP):** Greek
|
21 |
- **License:** Apache License 2.0
|
22 |
- **Finetuned from model [optional]:** ilsp/Llama-Krikri-8B-Instruct
|
23 |
|
24 |
### Model Sources [optional]
|
25 |
|
|
|
|
|
26 |
- **Repository:** https://huggingface.co/TheFinAI/plutus-8B-instruct
|
27 |
- **Paper [optional]:** Plutus: Benchmarking Large Language Models in Low-Resource Greek Finance
|
28 |
- **Demo [optional]:** https://huggingface.co/spaces/TheFinAI/plutus-8B-instruct
|
29 |
|
30 |
## Uses
|
31 |
|
|
|
|
|
32 |
### Direct Use
|
33 |
|
34 |
+
Plutus-8B-instruct can be directly applied in Greek finance applications such as answering user queries, summarizing financial reports, or generating context-aware financial planning text. Users should ensure that input texts align with the financial domain to achieve optimal performance.
|
|
|
|
|
35 |
|
36 |
### Downstream Use [optional]
|
37 |
|
38 |
+
The model can be integrated into larger systems such as chatbots, recommendation systems, or data analysis pipelines focusing on Greek financial markets. Fine-tuning on domain-specific datasets might further improve performance for specialized tasks.
|
|
|
|
|
39 |
|
40 |
### Out-of-Scope Use
|
41 |
|
42 |
+
This model is not designed for non-financial applications or for languages other than Greek, and may not perform reliably if used outside of the Greek financial context. It should not be used for high-stakes financial decision-making without additional verification.
|
|
|
|
|
43 |
|
44 |
## Bias, Risks, and Limitations
|
45 |
|
46 |
+
As with many LLMs, plutus-8B-instruct may exhibit biases present in the training data, and its outputs may require human review in sensitive contexts. Users should be aware that the model may generate plausible-sounding yet factually inaccurate or biased financial advice.
|
|
|
|
|
47 |
|
48 |
### Recommendations
|
49 |
|
50 |
+
Users (both direct and downstream) should critically evaluate the outputs in the context of local regulations and financial best practices. It is recommended to apply additional validation measures when deploying the model in production environments.
|
|
|
|
|
51 |
|
52 |
## How to Get Started with the Model
|
53 |
|
54 |
+
To load and run plutus-8B-instruct, you can use the Hugging Face Transformers library. For example:
|
55 |
+
|
56 |
+
--------------------------------------------------------------------
|
57 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
58 |
+
|
59 |
+
model_name = "TheFinAI/plutus-8B-instruct"
|
60 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
61 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
62 |
+
|
63 |
+
prompt = "Παρακαλώ δώσε μου ανάλυση για την οικονομική κατάσταση της Ελλάδας."
|
64 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
65 |
+
outputs = model.generate(**inputs)
|
66 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
67 |
+
--------------------------------------------------------------------
|
68 |
|
69 |
+
Additional details for running with mixed precision, LoRA configuration, or int4 quantization can be found in the training documentation.
|
70 |
|
71 |
## Training Details
|
72 |
|
73 |
### Training Data
|
74 |
|
75 |
+
The model was fine-tuned using the dataset available at https://huggingface.co/collections/TheFinAI/plutus-benchmarking-greek-financial-llms-67bc718fb8d897c65f1e87db. The training split ("train") was used, and the dataset contains various Greek financial texts.
|
|
|
|
|
76 |
|
77 |
### Training Procedure
|
78 |
|
79 |
+
The finetuning process used parameter-efficient fine-tuning (PEFT) with LoRA. The base model was ilsp/Llama-Krikri-8B-Instruct, and the training was executed on a local CLI backend with logs monitored via TensorBoard.
|
80 |
|
81 |
#### Preprocessing [optional]
|
82 |
|
83 |
+
Inputs were tokenized with a specialized tokenizer configured for the Greek language, and a chat template was applied to structure the conversational data accordingly. Padding was applied to the right as per the configuration.
|
|
|
84 |
|
85 |
#### Training Hyperparameters
|
86 |
|
87 |
+
- **Block size:** 4096
|
88 |
+
- **Model max length:** 42000
|
89 |
+
- **Epochs:** 3
|
90 |
+
- **Batch size:** 1
|
91 |
+
- **Learning rate:** 0.0005
|
92 |
+
- **PEFT (LoRA):** Enabled with:
|
93 |
+
- lora_r: 16
|
94 |
+
- lora_alpha: 32
|
95 |
+
- lora_dropout: 0
|
96 |
+
- **Quantization:** int4
|
97 |
+
- **Target Modules:** all-linear
|
98 |
+
- **Optimizer:** adamw_torch
|
99 |
+
- **Scheduler:** cosine
|
100 |
+
- **Gradient accumulation:** 4
|
101 |
+
- **Mixed precision:** bf16
|
102 |
|
103 |
#### Speeds, Sizes, Times [optional]
|
104 |
|
105 |
+
Training was performed on locally available hardware. Specific details on throughput, training runtime, and checkpoint sizes will be provided in subsequent documentation.
|
|
|
|
|
106 |
|
107 |
## Evaluation
|
108 |
|
|
|
|
|
109 |
### Testing Data, Factors & Metrics
|
110 |
|
111 |
#### Testing Data
|
112 |
|
113 |
+
Evaluation was performed on reserved portions of the training dataset and additional financial texts. For detailed information, users should refer to the corresponding Dataset Card for https://huggingface.co/collections/TheFinAI/plutus-benchmarking-greek-financial-llms-67bc718fb8d897c65f1e87db
|
|
|
|
|
114 |
|
115 |
#### Factors
|
116 |
|
117 |
+
The evaluation considered multiple aspects including:
|
118 |
+
- Domain-specific performance (Greek financial texts)
|
119 |
+
- General language understanding within Greek
|
120 |
+
- Response coherence and factual relevance
|
121 |
|
122 |
#### Metrics
|
123 |
|
124 |
+
Evaluation metrics included standard language generation measures as well as domain-specific qualitative assessments. Further discussion on the metrics used will be provided in future updates.
|
|
|
|
|
125 |
|
126 |
### Results
|
127 |
|
128 |
+
Preliminary evaluations indicate that the model generates coherent and context-aware responses in Greek, with particular aptitude in understanding and generating financial-related texts. Detailed metric numbers and error analyses are under review and will be added when available.
|
129 |
|
130 |
#### Summary
|
131 |
|
132 |
+
In summary, plutus-8B-instruct is a domain-specific, instruction-tuned large language model optimized for Greek finance applications. Although it performs well in targeted scenarios, users are advised to validate its outputs carefully.
|
133 |
|
134 |
## Model Examination [optional]
|
135 |
|
136 |
+
Future updates may include interpretability analyses, such as attention visualizations and performance breakdowns by subpopulation or domain.
|
|
|
|
|
137 |
|
138 |
## Environmental Impact
|
139 |
|
140 |
+
Carbon emissions can be estimated using the Machine Learning Impact Calculator (https://mlco2.github.io/impact#compute) based on the following details:
|
|
|
|
|
141 |
|
142 |
- **Hardware Type:** [More Information Needed]
|
143 |
- **Hours used:** [More Information Needed]
|
|
|
149 |
|
150 |
### Model Architecture and Objective
|
151 |
|
152 |
+
The model architecture is derived from ilsp/Llama-Krikri-8B-Instruct and fine-tuned using LoRA adaptations. Its objective is to generate and comprehend Greek language texts with an emphasis on financial contexts in an instruction-based setting.
|
153 |
|
154 |
### Compute Infrastructure
|
155 |
|
156 |
+
The model training and fine-tuning were executed using a local CLI environment, with logs monitored via TensorBoard.
|
157 |
|
158 |
#### Hardware
|
159 |
|
160 |
+
Specific hardware details are under documentation review. Future updates will include the configuration of GPUs/CPUs used.
|
161 |
|
162 |
#### Software
|
163 |
|
164 |
+
- **Framework:** Hugging Face Transformers
|
165 |
+
- **Backend:** Local CLI
|
166 |
+
- **Mixed Precision:** bf16
|
167 |
|
168 |
## Citation [optional]
|
169 |
|
|
|
|
|
170 |
**BibTeX:**
|
171 |
|
172 |
+
@misc{TheFinAI_plutus8B,
|
173 |
+
author = {The Fin AI},
|
174 |
+
title = {plutus-8B-instruct: Instruction-tuned LLM for Greek finance},
|
175 |
+
howpublished = {\\url{https://huggingface.co/TheFinAI/plutus-8B-instruct}},
|
176 |
+
year = {2023},
|
177 |
+
note = {Based on ilsp/Llama-Krikri-8B-Instruct, fine-tuned using LoRA on Greek financial datasets.}
|
178 |
+
}
|
179 |
|
180 |
**APA:**
|
181 |
|
182 |
+
The Fin AI. (2023). plutus-8B-instruct: Instruction-tuned LLM for Greek finance. Retrieved from https://huggingface.co/TheFinAI/plutus-8B-instruct
|
183 |
|
184 |
## Glossary [optional]
|
185 |
|
186 |
+
- PEFT: Parameter-Efficient Fine-Tuning.
|
187 |
+
- LoRA: Low-Rank Adaptation, a technique to reduce the number of trainable parameters.
|
188 |
+
- BF16: bfloat16, a mixed precision format used to optimize training speed.
|
189 |
+
- Int4 Quantization: A lower precision format aimed at reducing model size and inference latency.
|
190 |
|
191 |
## More Information [optional]
|
192 |
|
193 |
+
For more details regarding training logs, dataset preparations, and further technical insights, please refer to the associated GitHub repositories and documentation provided by The Fin AI.
|
194 |
|
195 |
## Model Card Authors [optional]
|
196 |
|
197 |
+
The model card was prepared by The Fin AI team with inputs from the Hugging Face community.
|
198 |
|
199 |
## Model Card Contact
|
200 |
|
201 |
+
For additional questions or feedback, please contact The Fin AI team
|