Downloads · 30 days
22
5% of all-time downloads
sainikhiljuluri2015/Foundation-Sec-Cybersecurity-8B-Merged
Foundation-Sec-Cybersecurity-8B-Merged is a text generation model from sainikhiljuluri2015. 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.
Fine-tuned fdtn-ai/Foundation-Sec-8B specialized for cybersecurity tasks. This is a merged model (LoRA weights merged into base) for easy deployment.
Downloads · 30 days
22
5% of all-time downloads
All-time downloads
479
Public
Parameters
8B
32.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
Fine-tuned fdtn-ai/Foundation-Sec-8B specialized for cybersecurity tasks. This is a merged model (LoRA weights merged into base) for easy deployment.
This model was trained on ~50,000 cybersecurity instruction-response pairs from:
| Parameter | Value |
|---|---|
| Base Model | fdtn-ai/Foundation-Sec-8B |
| Training Samples | ~50,000 |
| Epochs | 2 |
| LoRA Rank | 16 |
| LoRA Alpha | 32 |
| Learning Rate | 2e-4 |
| Max Sequence Length | 1024 |
| Target Modules | 7 (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj) |
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"sainikhiljuluri2015/Foundation-Sec-Cybersecurity-8B-Merged",
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("sainikhiljuluri2015/Foundation-Sec-Cybersecurity-8B-Merged", trust_remote_code=True)
prompt = "What are the indicators of a ransomware attack?"
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://YOUR_ENDPOINT_URL/v1/chat/completions"
response = requests.post(API_URL, json={
"model": "sainikhiljuluri2015/Foundation-Sec-Cybersecurity-8B-Merged",
"messages": [{"role": "user", "content": "What is SQL injection?"}],
"max_tokens": 300
})
print(response.json()["choices"][0]["message"]["content"])