Downloads · 30 days
0
omasteam/cyberguard-ai-security-analyzer
cyberguard-ai-security-analyzer is a text classification model from omasteam. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
CyberGuard AI is a fine-tuned language model specialized in analyzing cybersecurity logs and identifying potential security threats. Built on Llama-2-7B and trained using Unsloth for efficient fine-tuning.
Downloads · 30 days
0
Access
Public
Updated Aug 24, 2025
Repo size
242 MB
Likes
3
Public
Click a slice to open those files.
.safetensors320 MB · 77%
From the Hugging Face model README
CyberGuard AI is a fine-tuned language model specialized in analyzing cybersecurity logs and identifying potential security threats. Built on Llama-2-7B and trained using Unsloth for efficient fine-tuning.
Developed by: omasteam
from unsloth import FastLanguageModel
# Load the model
model, tokenizer = FastLanguageModel.from_pretrained(
"{omasteam}/{cyberguard-ai-security-analyzer}",
max_seq_length=2048,
dtype=None,
load_in_4bit=True,
)
# Set to inference mode
FastLanguageModel.for_inference(model)
# Analyze a security log
messages = [
{{
"role": "system",
"content": "You are CyberGuard AI, an expert cybersecurity analyst. Analyze security logs and classify them as 'normal', 'suspicious', or 'malicious'."
}},
{{
"role": "user",
"content": "Analyze this security log: Multiple failed login attempts from IP 192.168.1.100"
}}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
)
outputs = model.generate(
input_ids=inputs,
max_new_tokens=256,
temperature=0.3,
do_sample=True
)
response = tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True)
print(response)
The model demonstrates strong performance in:
If you use this model in your research or applications, please cite:
@misc{{cyberguard-ai-2024,
author = {{{omasteam}}},
title = {{CyberGuard AI: Fine-tuned Security Log Analyzer}},
year = {{2024}},
publisher = {{Hugging Face}},
journal = {{Hugging Face Model Hub}},
howpublished = {{\\url{{https://huggingface.co/{omasteam}/{cyberguard-ai-security-analyzer}}}}}
}}
Contributions, suggestions, and feedback are welcome! Please open an issue or submit a pull request.
This model is released under the Apache 2.0 License.