Downloads · 30 days
60
15% of all-time downloads
sainikhiljuluri/gpt-oss-20b-cve-cybersecurity
gpt-oss-20b-cve-cybersecurity is a text generation model from sainikhiljuluri. 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.
This model is a fine-tuned version of GPT-OSS-20B specialized for CVE (Common Vulnerabilities and Exposures) analysis and security recommendation generation using DoRA (Weight-Decomposed Low-Rank Adaptation).
Downloads · 30 days
60
15% of all-time downloads
All-time downloads
388
Public
Parameters
20.9B
41.9 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors41.8 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of GPT-OSS-20B specialized for CVE (Common Vulnerabilities and Exposures) analysis and security recommendation generation using DoRA (Weight-Decomposed Low-Rank Adaptation).
pip install transformers torch
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
# Load model and tokenizer
model = AutoModelForCausalLM.from_pretrained(
"sainikhiljuluri/gpt-oss-20b-cve-cybersecurity",
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("sainikhiljuluri/gpt-oss-20b-cve-cybersecurity")
# Prepare CVE analysis request
messages = [
{
"role": "system",
"content": "You are an expert cybersecurity analyst specializing in vulnerability assessment and remediation. Analyze CVE information and provide actionable security recommendations with clear rationale."
},
{
"role": "user",
"content": """Analyze the following vulnerability and provide security recommendations:
CVE ID: CVE-2024-1234
Vulnerability Summary: SQL injection vulnerability in web application allows remote attackers to execute arbitrary SQL commands
CVSS Score: 9.8
Weakness Type: SQL Injection
CWE Code: CWE-89"""
}
]
# Generate response
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(
outputs[0][inputs.shape[-1]:],
skip_special_tokens=True
)
print(response)
The model can analyze various types of vulnerabilities including:
The model provides structured recommendations including:
Input:
CVE ID: CVE-2024-SQL-001
Vulnerability Summary: SQL injection in authentication module
CVSS Score: 9.8
Weakness Type: SQL Injection
Output:
Recommended Action:
1. Immediately implement parameterized queries/prepared statements
2. Update web application framework to latest patched version
3. Enable Web Application Firewall (WAF) rules
4. Conduct comprehensive code review of authentication module
5. Deploy input validation and sanitization
Rationale:
Critical CVSS score of 9.8 indicates immediate action required. SQL injection
in authentication module poses severe risk of unauthorized access and data breach.
Parameterized queries prevent SQL injection at the source by separating SQL logic
from user input...
| Metric | Score | Status |
|---|---|---|
| Perplexity | 1.57 | Excellent |
| BLEU-4 | 0.4954 | Good |
| Semantic Similarity | 0.6305 | Good |
| Quality Retention | 94.3% | Excellent |
import requests
API_URL = "https://YOUR-ENDPOINT.endpoints.huggingface.cloud"
headers = {"Authorization": f"Bearer {YOUR_HF_TOKEN}"}
def analyze_cve(cve_info):
payload = {
"inputs": cve_info,
"parameters": {
"max_new_tokens": 512,
"temperature": 0.7,
"top_p": 0.9
}
}
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
# Load model locally
model = AutoModelForCausalLM.from_pretrained(
"sainikhiljuluri/gpt-oss-20b-cve-cybersecurity",
torch_dtype=torch.bfloat16,
device_map="auto"
)
If you use this model in your research, please cite:
@misc{gpt-oss-20b-cve-2025,
author = {Sainikhil Juluri},
title = {GPT-OSS-20B CVE Cybersecurity Model},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/sainikhiljuluri/gpt-oss-20b-cve-cybersecurity}
}
Training Date: 2025-11-04
Hardware: Google Colab A100 GPU
Framework:
For questions or collaborations:
Apache 2.0 License
Built with: Transformers • PEFT • DoRA • PyTorch