Downloads · 30 days
20
5% of all-time downloads
daskalos-apps/phi4-cybersec-Q4_K_M
phi4-cybersec-Q4_K_M is a machine learning model from daskalos-apps. 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 llama.cpp. The card lists the license as mit.
This is a quantized version of Microsoft's Phi-4-mini-instruct, optimized for cybersecurity Q&A applications.
Downloads · 30 days
20
5% of all-time downloads
All-time downloads
394
Public
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.gguf2.5 GB · 100%
From the Hugging Face model README
This is a quantized version of Microsoft's Phi-4-mini-instruct, optimized for cybersecurity Q&A applications.
This model is specifically fine-tuned and optimized for:
# Download the model
wget https://huggingface.co/YOUR_USERNAME/phi4-cybersec-Q4_K_M/resolve/main/phi4-mini-instruct-Q4_K_M.gguf
# Run with llama.cpp
./main -m phi4-mini-instruct-Q4_K_M.gguf -p "What is phishing?" -n 256
from llama_cpp import Llama
# Load model
llm = Llama(
model_path="phi4-mini-instruct-Q4_K_M.gguf",
n_ctx=4096,
n_threads=8,
n_gpu_layers=0 # CPU only
)
# Generate
response = llm(
"What are the best practices for password security?",
max_tokens=256,
temperature=0.7,
stop=["<|end|>", "<|user|>"]
)
print(response['choices'][0]['text'])
from langchain.llms import LlamaCpp
llm = LlamaCpp(
model_path="phi4-mini-instruct-Q4_K_M.gguf",
temperature=0.7,
max_tokens=256,
n_ctx=4096
)
response = llm("How do I identify suspicious emails?")
print(response)
The model uses ChatML format:
<|system|>
You are a cybersecurity expert assistant.
<|end|>
<|user|>
What is malware?
<|end|>
<|assistant|>
This model was quantized using llama.cpp with the following process:
The Q4_K_M quantization method provides:
This model is intended to improve cybersecurity awareness and should be used responsibly:
If you use this model, please cite:
@misc{phi4-cybersec-gguf,
author = {Your Name},
title = {Phi-4 Cybersecurity Q4_K_M GGUF},
year = {2024},
publisher = {Hugging Face},
url = {https://huggingface.co/YOUR_USERNAME/phi4-cybersec-Q4_K_M}
}
For questions or issues: [[email protected]]