Downloads · 30 days
20
69% of all-time downloads
nosadaniel/mistral-7b-instruct-tuned
mistral-7b-instruct-tuned is a text generation model from nosadaniel. Use it when you need the model to write or continue text. It is set up for peft.
This repository hosts a fine‑tuned Mistral 7B‑Instruct model that leverages parameter‑efficient LoRA adaptation via the Unsloth framework. The model is adapted for email‑security tasks using a curated phishing‑email t…
Downloads · 30 days
20
69% of all-time downloads
All-time downloads
29
Public
Repo size
55.1 MB
Likes
0
Public
Click a slice to open those files.
.safetensors54.6 MB · 93%
From the Hugging Face model README
This repository hosts a fine‑tuned Mistral 7B‑Instruct model that leverages parameter‑efficient LoRA adaptation via the Unsloth framework. The model is adapted for email‑security tasks using a curated phishing‑email training dataset and demonstrates state‑of‑the‑art performance (94.9 % accuracy, 93.9 % precision, 96.1 % recall).
You can download the model using the Hugging Face Space.
ollama pull unsloth/mistral-7b-instruct-v0.3-bnb-4bit
FROM mistral-7b-instruct-v0.3-bnb-4bit
ADAPTER /path/to/your/downloaded/adapter
Then run:
ollama create merged-model --from ./merged-model
ollama run merged-model
| Model | Samples | Accuracy | Precision | Recall | F1‑Score | Specificity | FPR | FNR | MCC | Validity | Avg Response Time (s) | Total Input Tokens | Total Output Tokens | Avg Input Tokens | Avg Output Tokens | Quality Mean | Quality Std | Excellent (%) | Good (%) | Fair (%) | Poor (%) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mistral-7b-instruct-sft | 256 | 0.949 | 0.939 | 0.961 | 0.950 | 0.938 | 0.062 | 0.039 | 0.899 | 100.0 % | 18.70 | 144,247 | 72,299 | 563.5 | 282.4 | 0.951 | 0.098 | 94.9 | 0.0 | 5.1 | 0.0 |
| mistral:7b | 256 | 0.840 | 0.939 | 0.727 | 0.819 | 0.953 | 0.047 | 0.273 | 0.698 | 100.0 % | 12.57 | 144,247 | 76,797 | 563.5 | 300.0 | 0.850 | 0.160 | 84.0 | 0.0 | 6.6 | 9.4 |
Comparison with Base Model (mistral:7b): The fine‑tuned model achieves substantially higher accuracy (94.9 % vs 84.0 %), recall (96.1 % vs 72.7 %), and overall quality metrics, while maintaining comparable precision, demonstrating the effectiveness of LoRA fine‑tuning for email‑phishing detection.
| Metric | Value |
|---|---|
| Accuracy | 94.9 % |
| Precision | 93.9 % |
| Recall | 96.1 % |
| F1‑Score | 95.0 % |
| Specificity | 93.8 % |
| Predicted Positive | Predicted Negative | |
|---|---|---|
| Actual Positive | 123 (TP) | 5 (FN) |
| Actual Negative | 8 (FP) | 120 (TN) |
BibTeX:
@dataset{mistral-7b-instruct-sft,
title={Fine‑tuned Mistral 7B‑Instruct model for Email Phishing Detection},
author={Montimage, Nosadaniel, Luong89},
year={2025},
publisher={Montimage}
}
APA:
Montimage, Nosakhare Daniel Ahanor, & Luong89. (2025). Fine‑tuned Mistral 7B‑Instruct model for Email Phishing Detection. Montimage.
Montimage Email Security Research Division AI/ML Engineering Team Cybersecurity Domain Experts