Update README.md
#1
by
Sivakrishh
- opened
README.md
CHANGED
@@ -6,6 +6,9 @@ tags: []
|
|
6 |
# Model Card for Model ID
|
7 |
|
8 |
<!-- Provide a quick summary of what the model is/does. -->
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
|
@@ -15,23 +18,18 @@ tags: []
|
|
15 |
|
16 |
<!-- Provide a longer summary of what this model is. -->
|
17 |
|
18 |
-
This
|
19 |
-
|
20 |
-
- **
|
21 |
-
- **
|
22 |
-
- **
|
23 |
-
- **
|
24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
|
28 |
### Model Sources [optional]
|
29 |
|
30 |
<!-- Provide the basic links for the model. -->
|
31 |
|
32 |
-
- **Repository:**
|
33 |
-
- **Paper [optional]:** [More Information Needed]
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
|
36 |
## Uses
|
37 |
|
@@ -41,37 +39,46 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
41 |
|
42 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
-
|
50 |
-
[More Information Needed]
|
51 |
|
52 |
### Out-of-Scope Use
|
53 |
|
54 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
55 |
-
|
56 |
-
|
57 |
|
58 |
## Bias, Risks, and Limitations
|
59 |
|
60 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
|
|
|
|
61 |
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
### Recommendations
|
65 |
|
66 |
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
-
|
68 |
-
|
69 |
|
70 |
## How to Get Started with the Model
|
71 |
|
72 |
Use the code below to get started with the model.
|
73 |
|
74 |
-
|
|
|
|
|
|
|
|
|
75 |
|
76 |
## Training Details
|
77 |
|
@@ -79,26 +86,18 @@ Use the code below to get started with the model.
|
|
79 |
|
80 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
|
82 |
-
|
|
|
83 |
|
84 |
### Training Procedure
|
85 |
|
86 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
|
88 |
-
#### Preprocessing
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
#### Training Hyperparameters
|
94 |
|
95 |
-
- **
|
96 |
-
|
97 |
-
#### Speeds, Sizes, Times [optional]
|
98 |
-
|
99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
-
|
101 |
-
[More Information Needed]
|
102 |
|
103 |
## Evaluation
|
104 |
|
@@ -110,90 +109,76 @@ Use the code below to get started with the model.
|
|
110 |
|
111 |
<!-- This should link to a Dataset Card if possible. -->
|
112 |
|
113 |
-
|
114 |
|
115 |
#### Factors
|
116 |
|
117 |
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
118 |
|
119 |
-
|
|
|
|
|
120 |
|
121 |
#### Metrics
|
122 |
|
123 |
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
124 |
|
125 |
-
|
|
|
|
|
126 |
|
127 |
-
|
|
|
|
|
128 |
|
129 |
-
|
130 |
|
131 |
-
####
|
|
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
135 |
-
|
|
|
|
|
|
|
136 |
|
137 |
-
|
|
|
138 |
|
139 |
-
[More Information Needed]
|
140 |
|
141 |
## Environmental Impact
|
142 |
|
143 |
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
- **Hardware Type:** [More Information Needed]
|
148 |
-
- **Hours used:** [More Information Needed]
|
149 |
-
- **Cloud Provider:** [More Information Needed]
|
150 |
-
- **Compute Region:** [More Information Needed]
|
151 |
-
- **Carbon Emitted:** [More Information Needed]
|
152 |
|
153 |
## Technical Specifications [optional]
|
154 |
|
155 |
### Model Architecture and Objective
|
156 |
-
|
157 |
-
|
158 |
|
159 |
### Compute Infrastructure
|
160 |
|
161 |
-
[More Information Needed]
|
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 |
-
[More Information Needed]
|
178 |
-
|
179 |
-
**APA:**
|
180 |
-
|
181 |
-
[More Information Needed]
|
182 |
-
|
183 |
-
## Glossary [optional]
|
184 |
-
|
185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
-
|
187 |
-
[More Information Needed]
|
188 |
-
|
189 |
-
## More Information [optional]
|
190 |
-
|
191 |
-
[More Information Needed]
|
192 |
|
193 |
## Model Card Authors [optional]
|
194 |
-
|
195 |
-
[More Information Needed]
|
196 |
|
197 |
## Model Card Contact
|
198 |
-
|
199 |
-
[More Information Needed]
|
|
|
6 |
# Model Card for Model ID
|
7 |
|
8 |
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
+
The Mistral 7B - Cause Analyzer is a fine-tuned large language model designed for analyzing server logs, categorizing errors, and providing debugging solutions. It is optimized for predictive maintenance tasks and can be integrated into tools like Splunk or Grafana for real-time operational insights.
|
10 |
+
|
11 |
+
|
12 |
|
13 |
|
14 |
|
|
|
18 |
|
19 |
<!-- Provide a longer summary of what this model is. -->
|
20 |
|
21 |
+
This model was fine-tuned on real-world and synthetic log data from Esperanto servers using the LoRA technique. It excels in automating error categorization and debugging recommendations, reducing manual intervention and improving server health monitoring.
|
22 |
+
- **Developed by:** [Sivakrishna Yaganti, Shankar Jayaratnam]
|
23 |
+
- **Funded by [optional]:** [Esperanto Technologies]
|
24 |
+
- **Shared by [optional]:** [Sivakrishna Yaganti]
|
25 |
+
- **Model type:** [Casual language model]
|
26 |
+
- **Finetuned from model [optional]:** [Mistral 7B]
|
|
|
|
|
|
|
27 |
|
28 |
### Model Sources [optional]
|
29 |
|
30 |
<!-- Provide the basic links for the model. -->
|
31 |
|
32 |
+
- **Repository:** https://huggingface.co/Esperanto/Mistral-7B-CauseAnalyzer
|
|
|
|
|
33 |
|
34 |
## Uses
|
35 |
|
|
|
39 |
|
40 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
41 |
|
42 |
+
The model can be used to analyze server logs for error categorization and debugging without additional fine-tuning. It is suitable for:
|
43 |
+
1. Identifying patterns in server logs.
|
44 |
+
2. Automating the process of error categorization.
|
45 |
+
3. Generating debugging recommendations.
|
|
|
|
|
|
|
46 |
|
47 |
### Out-of-Scope Use
|
48 |
|
49 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
50 |
+
1. The model is not intended for general text generation tasks unrelated to server log analysis.
|
51 |
+
2. It may not perform well on logs from domains significantly different from the training data.
|
52 |
|
53 |
## Bias, Risks, and Limitations
|
54 |
|
55 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
56 |
+
### Bias:
|
57 |
+
1. The model's performance is optimized for logs similar to those in the training data. Logs with substantially different formats or languages may yield suboptimal results.
|
58 |
|
59 |
+
### Risks:
|
60 |
+
1. Over-reliance on model predictions without validation could lead to incorrect debugging actions.
|
61 |
+
2. The model may fail to identify new or rare errors that were not part of the training data.
|
62 |
+
|
63 |
+
### Limitations:
|
64 |
+
1. The model assumes logs are in English.
|
65 |
+
2. It may struggle with incomplete or highly noisy log data.
|
66 |
|
67 |
### Recommendations
|
68 |
|
69 |
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
70 |
+
1. Validate predictions with domain experts, especially in critical systems.
|
71 |
+
2. Use the model alongside traditional debugging methods to ensure accuracy.
|
72 |
|
73 |
## How to Get Started with the Model
|
74 |
|
75 |
Use the code below to get started with the model.
|
76 |
|
77 |
+
### Load the model and tokenizer
|
78 |
+
- model_name = "Esperanto/Mistral-7B-CauseAnalyzer"
|
79 |
+
- tokenizer = AutoTokenizer.from_pretrained(model_name)
|
80 |
+
- model = AutoModelForCausalLM.from_pretrained(model_name)
|
81 |
+
|
82 |
|
83 |
## Training Details
|
84 |
|
|
|
86 |
|
87 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
88 |
|
89 |
+
- **Source:** Real-world logs from Esperanto servers augmented with synthetic logs generated using GPT-4.
|
90 |
+
- **Size:** ~170 labeled samples after data augmentation.
|
91 |
|
92 |
### Training Procedure
|
93 |
|
94 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
95 |
|
96 |
+
#### Preprocessing
|
97 |
+
1. Logs were structured into fields for error type, root cause, and debugging solution.
|
98 |
+
2. Missing labels were generated using GPT-4 and manual verification.
|
|
|
|
|
|
|
99 |
|
100 |
+
- **Fine-tuning method:** LoRA (Low-Rank Adaptation)
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
|
102 |
## Evaluation
|
103 |
|
|
|
109 |
|
110 |
<!-- This should link to a Dataset Card if possible. -->
|
111 |
|
112 |
+
*Validation set:* 10% of labeled data.
|
113 |
|
114 |
#### Factors
|
115 |
|
116 |
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
117 |
|
118 |
+
Model performance was evaluated on:
|
119 |
+
1. Error categorization accuracy.
|
120 |
+
2. Cause similarity score (cosine similarity) between predicted and ground truth causes.
|
121 |
|
122 |
#### Metrics
|
123 |
|
124 |
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
125 |
|
126 |
+
*Cause (Similarity Score):*
|
127 |
+
1. Baseline Mistral 7B: 51.91
|
128 |
+
2. Mistral-7B-CauseAnalyzer: 67.15
|
129 |
|
130 |
+
*Error Categorization Accuracy:*
|
131 |
+
1. Baseline Mistral 7B: 46.23%
|
132 |
+
2. Mistral-7B-CauseAnalyzer: 70%
|
133 |
|
134 |
+
### Results
|
135 |
|
136 |
+
#### Training and Validation Loss
|
137 |
+
1. Training Loss decreased steadily from ~1 to 0.38, as shown in the train/loss graph.
|
138 |
+
2. Evaluation Loss reduced from 0.6 to 0.3, indicating effective generalization.
|
139 |
|
140 |
+

|
141 |
|
142 |
+

|
143 |
|
144 |
+
#### Summary
|
145 |
+
The Fine-Tuned Mistral 7B - Cause Analyzer significantly outperforms the baseline models, achieving:
|
146 |
+
1. A 67.15 similarity score for cause prediction.
|
147 |
+
2. A 70% accuracy in error categorization.
|
148 |
|
149 |
+
These results highlight the model's robustness in predictive maintenance tasks and its potential for real-world integration into server health monitoring systems.
|
150 |
+
-*Had it been finetuned with more data, could have given better results.*
|
151 |
|
|
|
152 |
|
153 |
## Environmental Impact
|
154 |
|
155 |
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
156 |
|
157 |
+
- **Hardware Type:** NVIDIA A100 GPU, ET-SoC1
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
## Technical Specifications [optional]
|
160 |
|
161 |
### Model Architecture and Objective
|
162 |
+
- **Architecture:** Mistral 7B causal language model.
|
163 |
+
- **Objective:** Fine-tuned for error categorization and debugging solutions in server logs.
|
164 |
|
165 |
### Compute Infrastructure
|
166 |
|
|
|
|
|
167 |
#### Hardware
|
168 |
|
169 |
+
Nvidia A100 and Esperanto Accelerators
|
170 |
|
171 |
#### Software
|
172 |
|
173 |
+
Hugging Face Transformers library.
|
174 |
|
175 |
## Citation [optional]
|
176 |
|
177 |
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
178 |
+
https://esperantotech.atlassian.net/l/cp/M8MQL3u9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
## Model Card Authors [optional]
|
181 |
+
Sivakrishna Yaganti, Shankar Jayaratnam
|
|
|
182 |
|
183 |
## Model Card Contact
|
184 | |
|