Downloads · 30 days
9
33% of all-time downloads
BlueSamurai-1/phi3-cybersec-advisor-lora
phi3-cybersec-advisor-lora is a machine learning model from BlueSamurai-1. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a fine-tuned version of microsoft/phi-3-mini-128k-instruct using LoRA (Low-Rank Adaptation) and 8-bit quantization for parameter-efficient training.
Downloads · 30 days
9
33% of all-time downloads
All-time downloads
27
Public
Parameters
3.8B
7.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.6 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/phi-3-mini-128k-instruct using LoRA (Low-Rank Adaptation) and 8-bit quantization for parameter-efficient training.
The fine-tuning dataset is jason-oneal/mitre-stix-cve-exploitdb-dataset-alpaca, which contains security-related instruction-response examples (CVE, STIX, ExploitDB context).
The goal of this model is to act as a cybersecurity knowledge assistant that can answer questions about CVEs, exploits, and related security topics.
Frameworks: Hugging Face Transformers, PEFT, bitsandbytes
Precision: 8-bit quantization (bnb.int8) + FP16 training
Optimizer: AdamW
Batch Size: 4 per device
Epochs: 1
Learning Rate: 3e-4
Warmup Steps: 50
Max Length: 1024 tokens
LoRA Config:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_name = "sushanrai/phi3-cybersec-advisor-lora" # replace with your repo
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
prompt = "Explain CVE-2021-44228 in simple terms"
output = pipe(prompt, max_new_tokens=300, do_sample=True)
print(output[0]["generated_text"])
If you use this model, please cite:
@misc{phi3_mitre_lora_2025,
title={Phi-3 Mini LoRA Fine-Tuned on MITRE-STIX-CVE-ExploitDB Dataset},
author={HackDMSV},
year={2025},
howpublished={\url{https://huggingface.co/sushanrai/phi3-cybersec-advisor-lora}}
}