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.
Model Details
Model Description
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.
Developed by: [Sivakrishna Yaganti, Shankar Jayaratnam]
The model can be used to analyze server logs for error categorization and debugging without additional fine-tuning. It is suitable for:
Identifying patterns in server logs.
Automating the process of error categorization.
Generating debugging recommendations.
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
The model is not intended for general text generation tasks unrelated to server log analysis.
It may not perform well on logs from domains significantly different from the training data.
Bias, Risks, and Limitations
Bias:
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.
Risks:
Over-reliance on model predictions without validation could lead to incorrect debugging actions.
The model may fail to identify new or rare errors that were not part of the training data.
Limitations:
The model assumes logs are in English.
It may struggle with incomplete or highly noisy log data.
Recommendations
Validate predictions with domain experts, especially in critical systems.
Use the model alongside traditional debugging methods to ensure accuracy.
model = AutoModelForCausalLM.from_pretrained(model_name)
Training Details
Training Data
Source: Real-world logs from Esperanto servers augmented with synthetic logs generated using GPT-4.
Size: ~170 labeled samples after data augmentation.
Training Procedure
Preprocessing [optional]
Logs were structured into fields for error type, root cause, and debugging solution.
Missing labels were generated using GPT-4 and manual verification.
Fine-tuning method: LoRA (Low-Rank Adaptation)
Training Hyperparameters
Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
Validation set: 10% of labeled data.
Factors
Model performance was evaluated on:
Error categorization accuracy.
Cause similarity score (cosine similarity) between predicted and ground truth causes.
Metrics
Cause (Similarity Score):
Baseline Mistral 7B: 51.91
Mistral-7B-CauseAnalyzer: 67.15
Error Categorization Accuracy:
Baseline Mistral 7B: 46.23%
Mistral-7B-CauseAnalyzer: 70%
Results
Training and Validation Loss
Training Loss decreased steadily from ~1 to 0.38, as shown in the train/loss graph.
Evaluation Loss reduced from 0.6 to 0.3, indicating effective generalization.
image/png
image/png
Summary
The Fine-Tuned Mistral 7B - Cause Analyzer significantly outperforms the baseline models, achieving:
A 67.15 similarity score for cause prediction.
A 70% accuracy in error categorization.
These results highlight the model's robustness in predictive maintenance tasks and its potential for real-world integration into server health monitoring systems.
-Had it been finetuned with more data, could have given better results.