Downloads · 30 days
0
SilentStorm99/opspilot-phi3-lora-v6
opspilot-phi3-lora-v6 is a machine learning model from SilentStorm99. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
Fine-tuned Phi-3-mini model for IT incident classification with 99-100% accuracy.
Downloads · 30 days
0
Access
Public
Updated Nov 2, 2025
Repo size
36.2 MB
Likes
0
Public
Click a slice to open those files.
.safetensors35.7 MB · 90%
From the Hugging Face model README
Fine-tuned Phi-3-mini model for IT incident classification with 99-100% accuracy.
| Metric | Value |
|---|---|
| Test Accuracy | 99-100% |
| Categories | 6 |
| Average Latency | ~17s (with RAG) |
| Model Size | LoRA adapters only (~50MB) |
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
import torch
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"microsoft/Phi-3-mini-4k-instruct",
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
# Load LoRA adapters
model = PeftModel.from_pretrained(
base_model,
"SilentStorm99/opspilot-phi3-lora-v6"
)
tokenizer = AutoTokenizer.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
# Classify incident
prompt = """<|system|>You are an IT incident classification assistant.<|end|>
<|user|>Classify this IT incident:
Database connection timeout errors. Pool size at maximum.
<|end|>
<|assistant|>"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is used in the OpsPilot production server with:
Base: Phi-3-mini-4k-instruct (3.8B parameters)
↓
LoRA Adapters (16.8M trainable parameters)
↓
Sequence Classification Head
↓
6 Categories Output
@misc{opspilot-phi3-v6,
title={OpsPilot Phi-3 v6 LoRA for Incident Classification},
author={SilentStorm99},
year={2025},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/SilentStorm99/opspilot-phi3-lora-v6}}
}
MIT License - See repository for details
Built with Microsoft Phi-3, HuggingFace Transformers, and PEFT.