Downloads · 30 days
15
18% of all-time downloads
alantandrea/wifi-threat-detection-assistant
wifi-threat-detection-assistant is a machine learning model from alantandrea. 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 peft. The card lists the license as apache-2.0.
Fine-tuned model for WiFi threat detection system support.
Downloads · 30 days
15
18% of all-time downloads
All-time downloads
84
Public
Repo size
17.8 MB
Likes
0
Public
Click a slice to open those files.
.safetensors17.8 MB · 83%
From the Hugging Face model README
Fine-tuned model for WiFi threat detection system support.
This model is fine-tuned from microsoft/Phi-3-mini-4k-instruct using QLoRA on documentation
for a WiFi threat detection system. It can:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct")
model = PeftModel.from_pretrained(model, "alantandrea/wifi-threat-detection-assistant")
tokenizer = AutoTokenizer.from_pretrained("alantandrea/wifi-threat-detection-assistant")
# Generate response
prompt = "<|system|>\nYou are a WiFi security expert.<|end|>\n<|user|>\nWhat is a deauth attack?<|end|>\n<|assistant|>\n"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))