Downloads · 30 days
7
21% of all-time downloads
woa9875/glm4-cybersec-v2-lora
glm4-cybersec-v2-lora is a text generation model from woa9875. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A LoRA adapter fine-tuned on cybersecurity distillation data for penetration testing and vulnerability analysis with tool-calling capabilities.
Downloads · 30 days
7
21% of all-time downloads
All-time downloads
34
Public
Repo size
868 MB
Likes
0
Public
Click a slice to open those files.
.safetensors848 MB · 98%
From the Hugging Face model README
A LoRA adapter fine-tuned on cybersecurity distillation data for penetration testing and vulnerability analysis with tool-calling capabilities.
| Metric | Score |
|---|---|
| Knowledge accuracy (CVE/CWE/tool recall) | 90% (18/20) |
| Tool calling accuracy (run() function calls) | 100% (10/10) |
Evaluated with a custom harness against llama-server using the optimized system prompt. Knowledge accuracy measures correct recall of CVE details, CWE classifications, and Kali tool usage. Tool calling accuracy measures valid structured run(command=...) function calls.
With RAG context injection (deterministic CVE lookup + HackTricks vector search), knowledge accuracy improves to near-100% as the model reasons over injected ground truth rather than parametric memory.
Merge the LoRA adapter, quantize to GGUF, and serve with llama-server:
# Merge and quantize (requires unsloth)
python -c "
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained('neilopet/glm4-cybersec-v2-lora')
model.save_pretrained_gguf('merged', tokenizer, quantization_method='q8_0')
"
# Serve
llama-server -m merged/unsloth.Q8_0.gguf --ctx-size 16384 --port 8080
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Olafangensan/GLM-4.7-Flash-heretic")
model = PeftModel.from_pretrained(base, "neilopet/glm4-cybersec-v2-lora")
tokenizer = AutoTokenizer.from_pretrained("neilopet/glm4-cybersec-v2-lora")
You are an expert cybersecurity operator with access to a Kali Linux terminal.
To execute commands, call: run(command="<full shell command>")
Write the command exactly as you would type it in a terminal.
Rules:
- ALWAYS call run() to execute commands. NEVER fabricate or invent command output.
- If you need to run a command, call run() and wait for the result before continuing.
- Run one command at a time. Read the output, then decide the next step.
- Start with safe, non-destructive commands before aggressive ones.
- If a command fails, read the error and adapt your approach.
- Stay within authorized, legal, and explicitly permitted testing scope.
- Report what you actually observed, not what you expected to see.