Text Generation
Transformers
Safetensors
English
qwen2
cybersecurity
application-security
code-audit
lora
unsloth
kiel-3-cyber
kieltech
conversational
text-generation-inference
Instructions to use kiel2/Kiel-3-Cyber with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kiel2/Kiel-3-Cyber with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kiel2/Kiel-3-Cyber") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("kiel2/Kiel-3-Cyber") model = AutoModelForCausalLM.from_pretrained("kiel2/Kiel-3-Cyber", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kiel2/Kiel-3-Cyber with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kiel2/Kiel-3-Cyber" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kiel2/Kiel-3-Cyber", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kiel2/Kiel-3-Cyber
- SGLang
How to use kiel2/Kiel-3-Cyber with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "kiel2/Kiel-3-Cyber" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kiel2/Kiel-3-Cyber", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "kiel2/Kiel-3-Cyber" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kiel2/Kiel-3-Cyber", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use kiel2/Kiel-3-Cyber with Docker Model Runner:
docker model run hf.co/kiel2/Kiel-3-Cyber
Model Card for Kiel-3-Cyber
Kiel-3-Cyber is a specialized domain-specific language model fine-tuned by KielTech for advanced application security, automated vulnerability analysis, and secure code auditing.
Model Details
Model Description
- Developed by: KielTech
- Model Type: Fine-tuned causal language model using Parameter-Efficient Fine-Tuning (QLoRA)
- Language(s): English
- Finetuned from:
unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bi - Primary Domain: Application security, vulnerability remediation, and secure code reviews (e.g., Python JWT validation, authentication logic, and threat surface analysis).
Uses
Direct Use
- Automated Code Audits: Scanning source code repositories for insecure coding patterns, injection flaws, and authorization bypasses.
- Security Refactoring: Providing production-ready, secure code patches to resolve identified vulnerabilities.
- Threat Reasoning: Evaluating system architecture and session management logic from a defensive engineering standpoint.
Out-of-Scope Use
- Kiel-3-Cyber is designed exclusively for defensive engineering, authorized security research, and educational code auditing. It should not be used to generate malicious payloads, exploit active infrastructure without authorization, or facilitate cyberattacks.
Get Started with the Model
You can load and query Kiel-3-Cyber using the Hugging Face transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "kiel2/Kiel-3-Cyber"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
prompt = """[Security Audit Request]
Analyze the following Python JWT session validation code for vulnerabilities:
```python
import jwt
def verify_session(token):
decoded = jwt.decode(token, "secret_key", algorithms=["HS256"])
return decoded
"""
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(inputs, max_new_tokens=512, temperature=0.1)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training Details
Training Data
- Scale: Trained on a curated dataset comprising 15,000 domain-specific cybersecurity and secure coding samples.
- Focus Areas: Python security anti-patterns, JWT session validation, input sanitization, and cryptographic implementation standards.
Training Procedure
- Framework: Unsloth & TRL (
SFTTrainer) - Quantization: 4-bit precision base loading with QLoRA adaptation layers (r=16, lora_alpha=16).
- Hyperparameters:
- Learning Rate: 2 × 10⁻⁴
- Epochs: 1
- Optimizer:
adamw_8bit - Gradient Accumulation Steps: 8
Environmental Impact
- Hardware Type: NVIDIA GPU (Cloud-accelerated via Google Colab / Kaggle infrastructure)
- Compute Optimization: Utilized unsloth gradient checkpointing and memory-efficient training loops to minimize carbon footprint and VRAM utilization.
Citation
If you use Kiel-3-Cyber in your research, security workflows, or tooling, please credit KielTech:
@misc{kiel3cyber2026,
author = {KielTech},
title = {Kiel-3-Cyber: Specialized Cybersecurity Language Model for Automated Code Auditing},
year = {2026},
publisher = {Hugging Face},
journal = {Hugging Face Repository},
howpublished = {\url{[https://huggingface.co/kiel2/Kiel-3-Cyber](https://huggingface.co/kiel2/Kiel-3-Cyber)}}
}
- Downloads last month
- 1,047