Downloads · 30 days
27
31% of all-time downloads
sainikhiljuluri/DeepSeek-R1-Cybersecurity-8B-Merged
DeepSeek-R1-Cybersecurity-8B-Merged 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 is the merged version of sainikhiljuluri/DeepSeek-R1-Cybersecurity-8B, where the LoRA adapter has been merged into the base model for easier deployment.
Downloads · 30 days
27
31% of all-time downloads
All-time downloads
88
Public
Parameters
8.2B
16.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.4 GB · 100%
From the Hugging Face model README
This is the merged version of sainikhiljuluri/DeepSeek-R1-Cybersecurity-8B, where the LoRA adapter has been merged into the base model for easier deployment.
Fine-tuned deepseek-ai/DeepSeek-R1-0528-Qwen3-8B specialized for cybersecurity tasks. This merged model can be loaded directly without needing PEFT.
| Parameter | Value |
|---|---|
| Base Model | deepseek-ai/DeepSeek-R1-0528-Qwen3-8B |
| Training Samples | ~50,000 |
| Epochs | 2 |
| LoRA Rank | 16 |
| LoRA Alpha | 32 |
| Learning Rate | 2e-4 |
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"sainikhiljuluri/DeepSeek-R1-Cybersecurity-8B-Merged",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(
"sainikhiljuluri/DeepSeek-R1-Cybersecurity-8B-Merged",
trust_remote_code=True
)
prompt = "Explain how to detect SQL injection attacks."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
import requests
API_URL = "https://api-inference.huggingface.co/models/sainikhiljuluri/DeepSeek-R1-Cybersecurity-8B-Merged"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
response = requests.post(API_URL, headers=headers, json={
"inputs": "What are the indicators of a ransomware attack?",
"parameters": {"max_new_tokens": 256, "temperature": 0.7}
})
print(response.json())