Views
No views yet
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.| 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. |
1from unsloth import FastLanguageModel
2
3# Load the model directly from this Hugging Face repository
4model, tokenizer = FastLanguageModel.from_pretrained(
5 model_name="Mohamedabul/Qwen2.5-3B-CyberSec-Instruct", # or your exact repo name
6 max_seq_length=1024,
7 dtype=None,
8 load_in_4bit=True,
9)
10FastLanguageModel.for_inference(model)
11
12# Example Prompt
13instruction = "Analyze this vulnerability: CVE-2021-44228 (Log4Shell). Provide attack vectors, severity, and mitigation."
14prompt = tokenizer.apply_chat_template(
15 [{"role": "user", "content": instruction}], tokenize=False, add_generation_prompt=True
16)
17
18inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
19outputs = model.generate(**inputs, max_new_tokens=256, use_cache=True)
20print(tokenizer.batch_decode(outputs, skip_special_tokens=True)[0])