Allaa Boutaleb commited on
Commit
852adc3
Β·
verified Β·
1 Parent(s): 9ac1234

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +72 -0
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - sujet-ai/Sujet-Finance-Instruct-177k
5
+ language:
6
+ - en
7
+ metrics:
8
+ - accuracy
9
+ pipeline_tag: text-classification
10
+ tags:
11
+ - finance
12
+ - topic classification
13
+ - sentiment analysis
14
+ - yes no questions
15
+ - llama3
16
+ - llama3 8b
17
+ - llama 3
18
+ ---
19
+ <Gallery />
20
+
21
+ # 🏦 Sujet Finance LLAMA 3 8B v0.1 πŸš€
22
+
23
+ ## πŸ“Š A Specialized Financial Language Model Fine-Tuned on Sujet Finance Instruct-177k Dataset
24
+
25
+ Welcome to the exciting world of **Sujet Finance LLAMA 3 8B v0.1** – your go-to language model for all things finance! πŸ’° This state-of-the-art model is a fine-tuned version of the powerful LLAMA 3 model, meticulously trained on the comprehensive Sujet Finance Instruct-177k dataset. πŸ“ˆ
26
+
27
+ ### 🎯 Fine-Tuning Focus
28
+
29
+ In this initial fine-tuning iteration, we've focused on three key financial tasks:
30
+
31
+ 1. βœ…βŒ Yes/No Questions
32
+ - Description: This task involves answering financial questions that require a simple "yes" or "no" response.
33
+ - Class Distribution:
34
+ - Train Set: 5,265 "yes" examples, 5,302 "no" examples
35
+ - Eval Set: 1,340 "yes" examples, 1,303 "no" examples
36
+
37
+ 2. πŸ“‚ Topic Classification
38
+ - Description: The model classifies financial texts into specific finance-related categories such as company news, markets, earnings, and more.
39
+ - Class Distribution:
40
+ - Train Set: Balanced across 20 classes, with 29-40 examples per class
41
+ - Eval Set: Varies across classes, ranging from 4 to 15 examples per class
42
+
43
+ 3. 😊😐😑 Sentiment Analysis
44
+ - Description: This task involves analyzing financial texts to categorize sentiments as positive, negative, neutral, bearish, or bullish.
45
+ - Class Distribution:
46
+ - Train Set: 1,160 positive, 1,155 negative, 1,150 neutral, 1,133 bearish, and 1,185 bullish examples
47
+ - Eval Set: 281 positive, 286 negative, 291 neutral, 308 bearish, and 256 bullish examples
48
+
49
+ Our model has been carefully trained to excel in these areas, providing accurate and insightful responses to your financial queries. πŸ’‘
50
+
51
+ ### πŸŽ“ Training Methodology
52
+
53
+ To ensure optimal performance, we've employed a balanced training approach. Our dataset preparation process strategically selects an equal number of examples from each subclass within the three focus tasks. This results in a well-rounded model that can handle a diverse range of financial questions and topics. 🧠
54
+
55
+ The final balanced training dataset consists of 17,036 examples, while the evaluation dataset contains 4,259 examples.
56
+
57
+ ### πŸ”§ Model Specifications
58
+
59
+ - Base Model: LLAMA 3 8B πŸ¦™
60
+ - Fine-Tuning Technique: LoRA (Low-Rank Adaptation)
61
+ - r = 16
62
+ - alpha = 32
63
+ - Learning Rate: 2e-4 πŸ“ˆ
64
+ - Weight Decay: 0.01 πŸ‹οΈβ€β™‚οΈ
65
+ - Epochs: 1 πŸ”„
66
+ - Quantization: float16 for VLLM πŸ—œοΈ
67
+
68
+ ### πŸ“Š Evaluation Results
69
+
70
+ We've put our model to the test, comparing its performance against the base LLAMA 3 model on our evaluation dataset. The results are impressive! πŸ†
71
+
72
+ We consider a response correct if the true answer appears within the first 10 words generated by the model. This strict criterion ensures that our model not only provides accurate answers but also prioritizes the most relevant information. 🎯