Downloads · 30 days
9
41% of all-time downloads
nosadaniel/llama3-1-8b-tuned
llama3-1-8b-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 Llama 3.1 8B model that leverages LoRA (Low‑Rank Adaptation) via the Unsloth framework. The model is adapted for email‑security tasks using a curated phishing‑email training dataset…
Downloads · 30 days
9
41% of all-time downloads
All-time downloads
22
Public
Repo size
185 MB
Likes
0
Public
Click a slice to open those files.
.safetensors168 MB · 91%
From the Hugging Face model README
This repository hosts a fine‑tuned Llama 3.1 8B model that leverages LoRA (Low‑Rank 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 (93.4 % accuracy, 97.4 % precision, 89.1 % recall) compared to the base model.
You can test the model using the Hugging Face Space.
ollama pull unsloth/llama-3.1-8b-bnb-4bit
# or
ollama pull llama-3.1-8b
FROM llama3.1:8b
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 (%) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| llama3.1:8b | 256 | 0.914 | 0.902 | 0.930 | 0.915 | 0.898 | 0.102 | 0.070 | 0.829 | 96.1 % | 21.26 | 144,247 | 97,170 | 563.5 | 379.6 | 0.902 | 0.135 | 90.2 | 1.2 | 5.5 | 3.1 |
| llama3.1:8b_sft (fine‑tuned) | 256 | 0.934 | 0.974 | 0.891 | 0.931 | 0.977 | 0.023 | 0.109 | 0.870 | 100.0 % | 25.65 | 144,247 | 102,171 | 563.5 | 399.1 | 0.943 | 0.108 | 93.4 | 0.0 | 6.6 | 0.0 |
| Metric | Value |
|---|---|
| Accuracy | 93.4 % |
| Precision | 97.4 % |
| Recall | 89.1 % |
| F1‑Score | 93.1 % |
| Specificity | 97.7 % |
| Predicted Positive | Predicted Negative | |
|---|---|---|
| Actual Positive | 114 (TP) | 14 (FN) |
| Actual Negative | 3 (FP) | 125 (TN) |
Performance Insights
BibTeX:
@dataset{llama3-1-8b-tuned,
title={Fine‑tuned Llama 3.1 8B model for Email Phishing Detection},
author={Montimage, Nosakhare Daniel Ahanor, Luong89},
year={2025},
publisher={Montimage}
}
Montimage Email Security Research Division AI/ML Engineering Team Cybersecurity Domain Experts