Views
No views yet
| File | Quant | Size | Notes |
|---|---|---|---|
VulnLLM-R-7B-f16.gguf | F16 | ~15 GB | Full-precision GGUF; best quality, largest. |
VulnLLM-R-7B-Q8_0.gguf | Q8_0 | ~8 GB | 8-bit; near-lossless, recommended for most use. |
| Property | Value |
|---|---|
| Architecture | qwen2 (Qwen2.5-7B-Instruct base) |
| Parameters | ~7.6 B |
| Max context length | 32,768 tokens (32K) — native |
| Layers | 28 |
| Embedding dim | 3584 |
| Attention | GQA, 28 Q heads / 4 KV heads |
| Chat template | ChatML (embedded in GGUF metadata) |
max_position_embeddings / qwen2.context_length).
This fine-tune ships no rope_scaling, so there is no supported YaRN path beyond 32K — pushing
past it degrades quality. Set your runtime window (num_ctx / -c) as high as 32768; higher windows
cost more KV-cache memory (roughly: 8K ≈ 4 GB, 16K ≈ 7 GB, 32K ≈ 15 GB on top of the ~8 GB Q8_0 weights).</think>-delimited block)
before its final answer. If you prompt it with a bare question and no framing, it can drift
out-of-distribution and produce noisy output. Always give it the analysis framing below — ideally
as the system message so it triggers reliably.You are an advanced vulnerability detection model. Analyze the following code
step-by-step to determine whether it contains a security vulnerability. Reason
about data flow, control flow, and security context, then give a final answer
that names the vulnerability, its CWE, and how to fix it. If the code is safe, say so.temperature 0.3, top_p 0.8 (deterministic-leaning analysis).1# Pull directly from this repo (Q8_0):
2ollama pull hf.co/Euraika/VulnLLM-R-7B-GGUF:Q8_0
3
4# Recommended: bake in the system prompt, sampling, and full 32K context via a Modelfile:
5cat > Modelfile <<'MF'
6FROM hf.co/Euraika/VulnLLM-R-7B-GGUF:Q8_0
7SYSTEM """You are an advanced vulnerability detection model. Analyze the following code step-by-step to determine whether it contains a security vulnerability. Reason about data flow, control flow, and security context, then give a final answer that names the vulnerability, its CWE, and how to fix it. If the code is safe, say so."""
8PARAMETER temperature 0.3
9PARAMETER top_p 0.8
10PARAMETER num_ctx 32768
11MF
12ollama create vulnllm-r-7b -f Modelfile
13ollama run vulnllm-r-7b "<paste code here>"1llama-cli -hf Euraika/VulnLLM-R-7B-GGUF:Q8_0 --temp 0.3 --top-p 0.8 -c 32768 \
2 -sys "You are an advanced vulnerability detection model. Analyze the code step-by-step, reason about data/control flow and security context, then give a final answer with the vulnerability, its CWE, and a fix." \
3 -p "<paste code here>"<|im_start|>system
{system}<|im_end|>
<|im_start|>user
{code}<|im_end|>
<|im_start|>assistantsafetensors weights to GGUF and quantized to Q8_0.
The F16 GGUF is the intermediate full-precision conversion; Q8_0 is quantized from it.1@article{nie2025vulnllmr,
2 title={VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection},
3 author={Nie, Yuzhou and Li, Hongwei and Guo, Chengquan and Jiang, Ruizhe and Wang, Zhun and Li, Bo and Song, Dawn and Guo, Wenbo},
4 journal={arXiv preprint arXiv:2512.07533},
5 year={2025}
6}