Downloads · 30 days
5.7K
48% of all-time downloads
Mohamedabul/Qwen2.5-3B-CyberSecurity-Instruct
Qwen2.5-3B-CyberSecurity-Instruct is a text generation model from Mohamedabul. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A fine-tuned version of Qwen2.5-3B-Instruct specifically designed for advanced cybersecurity analysis. This model is built to bridge the gap between high-level vulnerability descriptions and low-level exploit code exe…
Downloads · 30 days
5.7K
48% of all-time downloads
All-time downloads
12K
Public
Parameters
3.1B
6.3 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors6.3 GB · 100%
From the Hugging Face model README
A fine-tuned version of Qwen2.5-3B-Instruct specifically designed for advanced cybersecurity analysis. This model is built to bridge the gap between high-level vulnerability descriptions and low-level exploit code execution.
This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.
<!-- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth) -->This LLM acts as an expert cybersecurity analyst and reverse engineer. It is capable of:
To achieve maximum accuracy, the model was fine-tuned on an expansive historical corpus of modern vulnerabilities and exploits, completely uncapped and unfiltered:
The fine-tuned model was evaluated against an unseen hold-out test dataset to mathematically verify its understanding of cybersecurity concepts and generation quality.
| Metric | Score | Interpretation |
|---|---|---|
| Perplexity | 7.61 | Excellent. Reflects high confidence and deep vocabulary retention for security concepts. |
| METEOR | 0.4084 | Very Good. The model captures semantic meaning effectively, correctly utilizing security synonyms. |
| ROUGE-1 | 0.3496 | High structural and unigram overlap with security researcher standards. |
| ROUGE-L | 0.2044 | Consistent sentence-level alignment for technical vulnerability reports. |
To load the model quickly using Unsloth for 2x faster inference:
from unsloth import FastLanguageModel
# Load the model directly from this Hugging Face repository
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="Mohamedabul/Qwen2.5-3B-CyberSec-Instruct", # or your exact repo name
max_seq_length=1024,
dtype=None,
load_in_4bit=True,
)
FastLanguageModel.for_inference(model)
# Example Prompt
instruction = "Analyze this vulnerability: CVE-2021-44228 (Log4Shell). Provide attack vectors, severity, and mitigation."
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": instruction}], tokenize=False, add_generation_prompt=True
)
inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, use_cache=True)
print(tokenizer.batch_decode(outputs, skip_special_tokens=True)[0])