初始化项目,由ModelHub XC社区提供模型

Model: Mungert/VulnLLM-R-7B-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-19 06:26:16 +08:00
commit 70b0661ce9
29 changed files with 345 additions and 0 deletions

62
.gitattributes vendored Normal file
View File

@@ -0,0 +1,62 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q2_k_l.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q4_k_l.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q5_k_l.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q6_k_l.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q2_k_m.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q2_k_s.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q6_k_m.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q4_0.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q4_1.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q5_0.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-q5_1.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-iq2_s.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-iq2_m.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-iq3_s.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-iq3_m.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-iq4_xs.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-iq4_nl.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-imatrix.gguf filter=lfs diff=lfs merge=lfs -text
VulnLLM-R-7B-bf16.gguf filter=lfs diff=lfs merge=lfs -text

202
README.md Normal file
View File

@@ -0,0 +1,202 @@
---
language:
- en
- code
license: apache-2.0
tags:
- security
- vulnerability-detection
- code-analysis
- reasoning
- llm
pipeline_tag: text-generation
base_model: Qwen/Qwen2.5-7B-Instruct
---
# <span style="color: #7FFF7F;">VulnLLM-R-7B GGUF Models</span>
## <span style="color: #7F7FFF;">Model Generation Details</span>
This model was generated using [llama.cpp](https://github.com/ggerganov/llama.cpp) at commit [`05fa625ea`](https://github.com/ggerganov/llama.cpp/commit/05fa625eac5bbdbe88b43f857156c35501421d6e).
---
## <span style="color: #7FFF7F;">Quantization Beyond the IMatrix</span>
I've been experimenting with a new quantization approach that selectively elevates the precision of key layers beyond what the default IMatrix configuration provides.
In my testing, standard IMatrix quantization underperforms at lower bit depths, especially with Mixture of Experts (MoE) models. To address this, I'm using the `--tensor-type` option in `llama.cpp` to manually "bump" important layers to higher precision. You can see the implementation here:
👉 [Layer bumping with llama.cpp](https://github.com/Mungert69/GGUFModelBuilder/blob/main/model-converter/tensor_list_builder.py)
While this does increase model file size, it significantly improves precision for a given quantization level.
### **I'd love your feedback—have you tried this? How does it perform for you?**
---
<a href="https://readyforquantum.com/huggingface_gguf_selection_guide.html" style="color: #7FFF7F;">
Click here to get info on choosing the right GGUF model format
</a>
---
<!--Begin Original Model Card-->
# VulnLLM-R-7B: Specialized Reasoning LLM for Vulnerability Detection
**VulnLLM-R** is the first specialized **reasoning** Large Language Model designed specifically for software vulnerability detection.
Unlike traditional static analysis tools (like CodeQL) or small LLMs that rely on simple pattern matching, VulnLLM-R is trained to **reason step-by-step** about data flow, control flow, and security context. It mimics the thought process of a human security auditor to identify complex logic vulnerabilities with high accuracy.
## 🔗 Quick Links
* **Paper:** [arXiv:2512.07533](https://arxiv.org/abs/2512.07533)
* **Code & Data:** [GitHub](https://github.com/ucsb-mlsec/VulnLLM-R)
* **Demo:** [Web demo](https://huggingface.co/spaces/UCSB-SURFI/VulnLLM-R)
## 💡 Key Features
* **Reasoning-Based Detection:** Does not just classify code; it generates a "Chain-of-Thought" to analyze *why* a vulnerability exists.
* **Superior Accuracy:** Outperforms commercial giants (like Claude-3.7-Sonnet, o3-mini) and industry-standard tools (CodeQL, AFL++) on key benchmarks.
* **Efficiency:** Achieves SOTA performance with only **7B parameters**, making it 30x smaller and significantly faster than general-purpose reasoning models.
* **Broad Coverage:** Trained and tested on C, C++, Python, and Java (zero-shot generalization).
## 🚀 Quick Start
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "UCSB-SURFI/VulnLLM-R-7B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Example Code Snippet
code_snippet = """
void vulnerable_function(char *input) {
char buffer[50];
strcpy(buffer, input); // Potential buffer overflow
}
"""
# Prompt Template (Triggering Reasoning)
prompt = f"""You are an advanced vulnerability detection model.
Please analyze the following code step-by-step to determine if it contains a vulnerability.
Code:
{code_snippet}
Please provide your reasoning followed by the final answer.
"""
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
model_inputs.input_ids,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
```
## 📊 Performance
VulnLLM-R-7B achieves state-of-the-art results on benchmarks including PrimeVul, Juliet 1.3, and ARVO.
<img width="600" alt="model_size_vs_f1_scatter_01" src="https://github.com/user-attachments/assets/fc9e6942-14f8-4f34-8229-74596b05c7c5" />
(Refer to Figure 1 and Table 4 in the paper for detailed metrics)
## 📚 Citation
If you use this model in your research, please cite our paper:
```Bibtex
@article{nie2025vulnllmr,
title={VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection},
author={Nie, Yuzhou and Li, Hongwei and Guo, Chengquan and Jiang, Ruizhe and Wang, Zhun and Li, Bo and Song, Dawn and Guo, Wenbo},
journal={arXiv preprint arXiv:2512.07533},
year={2025}
}
```
<!--End Original Model Card-->
---
# <span id="testllm" style="color: #7F7FFF;">🚀 If you find these models useful</span>
Help me test my **AI-Powered Quantum Network Monitor Assistant** with **quantum-ready security checks**:
👉 [Quantum Network Monitor](https://readyforquantum.com/?assistant=open&utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme)
The full Open Source Code for the Quantum Network Monitor Service available at my github repos ( repos with NetworkMonitor in the name) : [Source Code Quantum Network Monitor](https://github.com/Mungert69). You will also find the code I use to quantize the models if you want to do it yourself [GGUFModelBuilder](https://github.com/Mungert69/GGUFModelBuilder)
💬 **How to test**:
Choose an **AI assistant type**:
- `TurboLLM` (GPT-4.1-mini)
- `HugLLM` (Hugginface Open-source models)
- `TestLLM` (Experimental CPU-only)
### **What Im Testing**
Im pushing the limits of **small open-source models for AI network monitoring**, specifically:
- **Function calling** against live network services
- **How small can a model go** while still handling:
- Automated **Nmap security scans**
- **Quantum-readiness checks**
- **Network Monitoring tasks**
🟡 **TestLLM** Current experimental model (llama.cpp on 2 CPU threads on huggingface docker space):
-**Zero-configuration setup**
- ⏳ 30s load time (slow inference but **no API costs**) . No token limited as the cost is low.
- 🔧 **Help wanted!** If youre into **edge-device AI**, lets collaborate!
### **Other Assistants**
🟢 **TurboLLM** Uses **gpt-4.1-mini** :
- **It performs very well but unfortunatly OpenAI charges per token. For this reason tokens usage is limited.
- **Create custom cmd processors to run .net code on Quantum Network Monitor Agents**
- **Real-time network diagnostics and monitoring**
- **Security Audits**
- **Penetration testing** (Nmap/Metasploit)
🔵 **HugLLM** Latest Open-source models:
- 🌐 Runs on Hugging Face Inference API. Performs pretty well using the lastest models hosted on Novita.
### 💡 **Example commands you could test**:
1. `"Give me info on my websites SSL certificate"`
2. `"Check if my server is using quantum safe encyption for communication"`
3. `"Run a comprehensive security audit on my server"`
4. '"Create a cmd processor to .. (what ever you want)" Note you need to install a [Quantum Network Monitor Agent](https://readyforquantum.com/Download/?utm_source=huggingface&utm_medium=referral&utm_campaign=huggingface_repo_readme) to run the .net code on. This is a very flexible and powerful feature. Use with caution!
### Final Word
I fund the servers used to create these model files, run the Quantum Network Monitor service, and pay for inference from Novita and OpenAI—all out of my own pocket. All the code behind the model creation and the Quantum Network Monitor project is [open source](https://github.com/Mungert69). Feel free to use whatever you find helpful.
If you appreciate the work, please consider [buying me a coffee](https://www.buymeacoffee.com/mahadeva) ☕. Your support helps cover service costs and allows me to raise token limits for everyone.
I'm also open to job opportunities or sponsorship.
Thank you! 😊

3
VulnLLM-R-7B-bf16.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b26c39bd4830774cb5e2b667c0d7a2c071d51f182e7011ebfe65ee6a0f3f350c
size 15237853888

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:124725b8fc895624a834fa47ba2679eb2384e3a593d594c1d348771877e2ee83
size 4560416

3
VulnLLM-R-7B-iq2_m.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b3e758a662ecb541046c919ba300e9551f6fff740e30f43c9a28fe7369930ec
size 3793482752

3
VulnLLM-R-7B-iq2_s.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1ece7833df58b013e9b4e9a126407523b71a3bd2db45189212e8ac62a165102c
size 3786142720

3
VulnLLM-R-7B-iq3_m.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:97e5c6a571aa02a10076cfc5f70bbb1ba37773c6c5e51ffbfa88f785023a2a60
size 3817223168

3
VulnLLM-R-7B-iq3_s.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ab5ec30e3817c5345996719790997d4fbe0fca4fbc7e1af1d9c7162d372ca42
size 3817223168

3
VulnLLM-R-7B-iq4_nl.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:499440d871d6e2afff80e13b7aa579dd476fc544ab7c211715d5f84dc35f2434
size 4437814272

3
VulnLLM-R-7B-iq4_xs.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8811c78792fe7ed94c705f5eb2b4bf0ccdd6732b99f226494b775f53d59a9aee
size 4218473472

3
VulnLLM-R-7B-q2_k_l.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f394a2f6086905c34384b75378de6a249c2658a86b84d05c7537273c78659e10
size 3863184384

3
VulnLLM-R-7B-q2_k_m.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebac7b8e20d51331fff7b038bd25b7d727731760a12829fffb1489e951c010d8
size 3599201280

3
VulnLLM-R-7B-q2_k_s.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae1438391c007c88dcd8319bbfb3da00c0c4b257e6cf5b0ebe42d0a5d2d40c0b
size 3454436352

3
VulnLLM-R-7B-q3_k_l.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ffce6d549a7f243bf8f09f2d32e2cf7652ab8205f0f5285a352c8b06608c26cd
size 4585575424

3
VulnLLM-R-7B-q3_k_m.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b76498e10842b7be1e4532389d0186a17a474cdd10f85ecca80508f7346cd82
size 4321592320

3
VulnLLM-R-7B-q3_k_s.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:71b567d8fb0cc95cafbe6ef469e83cd32af96041f28c675b1f4c573ce2f2e959
size 4176827392

3
VulnLLM-R-7B-q4_0.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:150acca0054d82a5fe680dd1fb0b3b3c4b8b2efe58c0aa3cf026a14ff2787b58
size 4290884608

3
VulnLLM-R-7B-q4_1.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5ccdd3914e3afc401997316b82e505aa717f0eee088427a10112156e4b05338c
size 4766839808

3
VulnLLM-R-7B-q4_k_l.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c448fbb4de087603f8d9e1ef7962ef272e74d94de1caf637a51d2053d683fe89
size 5143475200

3
VulnLLM-R-7B-q4_k_m.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2b118d3b15cb1ed2aa4f48d16c2af44c05e4f925ffba99b6dc242ba384188fc9
size 4879492096

3
VulnLLM-R-7B-q4_k_s.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:26518109f19d07946ed9ca2676c37c0739c3faa3d5a6efe6c7af6afd14280d37
size 4735902720

3
VulnLLM-R-7B-q5_0.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dba2caa330715c2b84f959a19cb6b2e0fec7c075f42647f2b0cd993414f58ee9
size 5242795008

3
VulnLLM-R-7B-q5_1.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:694cd9750479645230aea56df086c2a81cb6f38e28e28d52b93b7a4073a423b7
size 5718750208

3
VulnLLM-R-7B-q5_k_l.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a776017368b63f98f653f23e9f258d66cd18c18ce6f22f2e2ed7a0cbfdc0a63e
size 5899641856

3
VulnLLM-R-7B-q5_k_m.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d26b90884d7e1af2a12e7a6bf1103ea094ff2f7d7eb1ee4dde96d43c70c5f4d4
size 5635658752

3
VulnLLM-R-7B-q5_k_s.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47c1cf8920e41cf0abdef7ba808be92cbe1a7d7c4bf899a86db02c887f06de5d
size 5561570304

3
VulnLLM-R-7B-q6_k_l.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a2bfdde63e8f00593f63ac7889700db8f6381b7a76bf473abb211dd5d091644
size 6518182912

3
VulnLLM-R-7B-q6_k_m.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:04567838e032bce7a70969ceca16e4002aae8d7cc9f10071c121260d62544174
size 6254199808

3
VulnLLM-R-7B-q8_0.gguf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a1cc44f033313c1cdc0076760c58accea8ff33e7199871103716a80227785b0f
size 8098525888