Downloads · 30 days
8
13% of all-time downloads
mohan188n/CyberShield-Qwen-0.5B-LoRA
CyberShield-Qwen-0.5B-LoRA is a text generation model from mohan188n. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A fine-tuned LoRA adapter on top of Qwen/Qwen2.5-0.5B-Instruct, specialized in cybersecurity tasks including threat detection, vulnerability analysis, and security Q&A.
Downloads · 30 days
8
13% of all-time downloads
All-time downloads
60
Public
Repo size
24.6 MB
Likes
0
Public
Click a slice to open those files.
.json28.4 MB · 58%
From the Hugging Face model README
A fine-tuned LoRA adapter on top of Qwen/Qwen2.5-0.5B-Instruct, specialized in cybersecurity tasks including threat detection, vulnerability analysis, and security Q&A.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model_id = "Qwen/Qwen2.5-0.5B-Instruct"
adapter_id = "mohan188n/CyberShield-Qwen-0.5B-LoRA"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
model = AutoModelForCausalLM.from_pretrained(base_model_id)
model = PeftModel.from_pretrained(model, adapter_id)
prompt = "What is a SQL injection attack?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model is designed for cybersecurity-related natural language tasks:
GitHub: Mohan007N/CyberShield-GPT