Downloads · 30 days
63
26% of all-time downloads
niranjan2777/cybersec-qwen
cybersec-qwen is a machine learning model from niranjan2777. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
CyberSec-Qwen is a domain-adapted large language model fine-tuned on cybersecurity question-answering tasks. Built on top of Qwen2.5-1.5B-Instruct, this model is optimized to deliver accurate, structured, and context-…
Downloads · 30 days
63
26% of all-time downloads
All-time downloads
241
Public
Parameters
1.5B
3.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.1 GB · 100%
From the Hugging Face model README
CyberSec-Qwen is a domain-adapted large language model fine-tuned on cybersecurity question-answering tasks. Built on top of Qwen2.5-1.5B-Instruct, this model is optimized to deliver accurate, structured, and context-aware responses to cybersecurity-related queries.
This model is designed for:
| Attribute | Value |
|---|---|
| Base Model | Qwen2.5-1.5B-Instruct |
| Architecture | Transformer (Decoder-only) |
| Fine-tuning Method | QLoRA (4-bit) |
| Parameters | 1.5B |
| Trainable Params | ~18M (~1.2%) |
| Context Length | 512 tokens |
| Precision | BF16 |
| Framework | Transformers + TRL + PEFT |
This model was fine-tuned using an optimized QLoRA pipeline for memory efficiency and scalability on limited hardware (T4 GPU).
Key techniques:
Training setup:
Dataset:
After fine-tuning:
This eliminates dependency on PEFT during deployment.
from transformers import pipeline
pipe = pipeline(
"text-generation",
model="niranjan2777/cybersec-qwen",
tokenizer="niranjan2777/cybersec-qwen",
device_map="auto"
)
response = pipe(
[{"role": "user", "content": "What is a zero-day exploit?"}],
max_new_tokens=200
)
print(response[0]["generated_text"])
This model may generate:
Users must ensure: