ApiFort commited on
Commit
68a9d09
Β·
verified Β·
1 Parent(s): 253d0bc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -36
README.md CHANGED
@@ -1,24 +1,26 @@
1
- ---
2
- base_model: Qwen/Qwen3-4B-Instruct-2507
3
- library_name: peft
4
- pipeline_tag: text-generation
5
- tags:
6
- - base_model:adapter:Qwen/Qwen3-4B-Instruct-2507
7
- - lora
8
- - sft
9
- - transformers
10
- - trl
11
- - security
12
- - guardrails
13
- - multilingual
14
- ---
 
 
 
15
 
16
  # πŸ›‘οΈ LLM-Fort Guardrails Suite (v1)
17
 
18
  [![Base Model](https://img.shields.io/badge/Base_Model-Qwen3--4B--Instruct-blue?style=flat-square)](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507)
19
  [![Framework](https://img.shields.io/badge/Framework-PEFT_/_LoRA-orange?style=flat-square)](https://github.com/huggingface/peft)
20
  [![Collection](https://img.shields.io/badge/Collection-LLM--Fort_Guardrails-purple?style=flat-square)](https://huggingface.co/collections/ApiFort/llmfort-guardrails-v1)
21
- [![License](https://img.shields.io/badge/License-CC--BY--4.0-green?style=flat-square)](https://creativecommons.org/licenses/by/4.0/)
22
 
23
  LLM-Fort Guardrails is a suite of **7 security-focused LoRA adapters** fine-tuned on top of **Qwen/Qwen3-4B-Instruct-2507**. These adapters serve as lightweight, high-performance security guardrails mapped to critical safety boundaries.
24
 
@@ -32,13 +34,13 @@ By offloading classification and security checks to lightweight adapters, the sy
32
 
33
  | Vulnerability Category | Adapter Model ID | Description |
34
  |:---|:---|:---|
35
- | 🚨 **Prompt Injection** | `jailbreak_content_injection` | Detects direct/indirect prompt injection and jailbreak attempts |
36
- | πŸ•΅οΈ **PII Extraction** | `pii` | Identifies and extracts PII (person names, ID numbers, etc.) |
37
- | πŸ’» **Code Security** | `code_security` | Scans code snippets for software vulnerabilities (SQLi, SSRF, XSS) |
38
- | 🚦 **Excessive Agency** | `excessive_agency` | Intercepts unauthorized or destructive critical tool calls |
39
- | πŸ”’ **System Prompt Leakage** | `system_prompt_leakage` | Detects attempts to extract developer system instructions |
40
- | ⚠️ **Content Safety** | `content_safety` | Blocks hate speech, harassment, and general unsafe content |
41
- | πŸ›‘ **Unbounded Consumption** | `unbounded_consumption` | Mitigates resource exhaustion and compute DoS attacks |
42
 
43
  ---
44
 
@@ -53,13 +55,13 @@ Below is the exact accuracy performance measured across our evaluation test suit
53
 
54
  | Category | Gemma 4-E4B-it | Qwen 3.5 4B | Qwen3 4B Instruct | llmfort ai guardrail v.1.0 |
55
  |:---|:---:|:---:|:---:|:---:|
56
- | **Prompt Injection** | 56.30% | 64.70% | 84.14% | **98.10%** |
57
- | **PII Extraction** | 84.36% | 75.84% | 78.31% | **95.30%** |
58
- | **Code Security** | 83.30% | 75.10% | 76.20% | **90.07%** |
59
- | **Excessive Agency** | 60.90% | 68.80% | 53.80% | **96.50%** |
60
- | **System Prompt Leakage** | 79.40% | 79.70% | 78.70% | **98.08%** |
61
- | **Content Safety** | 84.00% | 78.80% | 76.00% | **95.30%** |
62
- | **Unbounded Consumption** | 63.00% | 63.30% | 55.00% | **99.79%** |
63
 
64
  ---
65
 
@@ -69,10 +71,10 @@ The adapters were trained and validated on the following dataset references:
69
 
70
  | Category | Source Datasets / References |
71
  |:---|:---|
72
- | **Prompt Injection** | BIPIA, Deepset, Internal 1K Validation |
73
- | **PII Extraction** | AI4Privacy PII Masking 300k (EN, TR, FR, DE, ES) |
74
- | **Code Security** | r2vul, securecode_web |
75
- | **Excessive Agency** | jinjinyien/ToolSafety, minpeter/xlam-function-calling-60k-parsed |
76
- | **System Prompt Leakage** | S-Labs/prompt-injection-dataset, Synthetic data |
77
- | **Content Safety** | NVIDIA Nemotron-3.5-Content-Safety-Dataset, Wildguardmix |
78
- | **Unbounded Consumption** | neuralchemy/prompt-injection-Threat-Matrix, Lakera/mosscap_prompt_injection |
 
1
+ ---
2
+ base_model: Qwen/Qwen3-4B-Instruct-2507
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:Qwen/Qwen3-4B-Instruct-2507
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ - security
12
+ - guardrails
13
+ - multilingual
14
+ language:
15
+ - en
16
+ - tr
17
+ ---
18
 
19
  # πŸ›‘οΈ LLM-Fort Guardrails Suite (v1)
20
 
21
  [![Base Model](https://img.shields.io/badge/Base_Model-Qwen3--4B--Instruct-blue?style=flat-square)](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507)
22
  [![Framework](https://img.shields.io/badge/Framework-PEFT_/_LoRA-orange?style=flat-square)](https://github.com/huggingface/peft)
23
  [![Collection](https://img.shields.io/badge/Collection-LLM--Fort_Guardrails-purple?style=flat-square)](https://huggingface.co/collections/ApiFort/llmfort-guardrails-v1)
 
24
 
25
  LLM-Fort Guardrails is a suite of **7 security-focused LoRA adapters** fine-tuned on top of **Qwen/Qwen3-4B-Instruct-2507**. These adapters serve as lightweight, high-performance security guardrails mapped to critical safety boundaries.
26
 
 
34
 
35
  | Vulnerability Category | Adapter Model ID | Description |
36
  |:---|:---|:---|
37
+ | 🚨 **[Prompt Injection](https://huggingface.co/ApiFort/jailbreak_content_injection)** | `jailbreak_content_injection` | Detects direct/indirect prompt injection and jailbreak attempts |
38
+ | πŸ•΅οΈ **[PII Extraction](https://huggingface.co/ApiFort/pii)** | `pii` | Identifies and extracts PII (person names, ID numbers, etc.) |
39
+ | πŸ’» **[Code Security](https://huggingface.co/ApiFort/code_security)** | `code_security` | Scans code snippets for software vulnerabilities (SQLi, SSRF, XSS) |
40
+ | 🚦 **[Excessive Agency](https://huggingface.co/ApiFort/excessive_agency)** | `excessive_agency` | Intercepts unauthorized or destructive critical tool calls |
41
+ | πŸ”’ **[System Prompt Leakage](https://huggingface.co/ApiFort/system_prompt_leakage)** | `system_prompt_leakage` | Detects attempts to extract developer system instructions |
42
+ | ⚠️ **[Content Safety](https://huggingface.co/ApiFort/content_safety)** | `content_safety` | Blocks hate speech, harassment, and general unsafe content |
43
+ | πŸ›‘ **[Unbounded Consumption](https://huggingface.co/ApiFort/unbounded_consumption)** | `unbounded_consumption` | Mitigates resource exhaustion and compute DoS attacks |
44
 
45
  ---
46
 
 
55
 
56
  | Category | Gemma 4-E4B-it | Qwen 3.5 4B | Qwen3 4B Instruct | llmfort ai guardrail v.1.0 |
57
  |:---|:---:|:---:|:---:|:---:|
58
+ | **[Prompt Injection](https://huggingface.co/ApiFort/jailbreak_content_injection)** | 56.30% | 64.70% | 84.14% | **98.10%** |
59
+ | **[PII Extraction](https://huggingface.co/ApiFort/pii)** | 84.36% | 75.84% | 78.31% | **95.30%** |
60
+ | **[Code Security](https://huggingface.co/ApiFort/code_security)** | 83.30% | 75.10% | 76.20% | **90.07%** |
61
+ | **[Excessive Agency](https://huggingface.co/ApiFort/excessive_agency)** | 60.90% | 68.80% | 53.80% | **96.50%** |
62
+ | **[System Prompt Leakage](https://huggingface.co/ApiFort/system_prompt_leakage)** | 79.40% | 79.70% | 78.70% | **98.08%** |
63
+ | **[Content Safety](https://huggingface.co/ApiFort/content_safety)** | 84.00% | 78.80% | 76.00% | **95.30%** |
64
+ | **[Unbounded Consumption](https://huggingface.co/ApiFort/unbounded_consumption)** | 63.00% | 63.30% | 55.00% | **99.79%** |
65
 
66
  ---
67
 
 
71
 
72
  | Category | Source Datasets / References |
73
  |:---|:---|
74
+ | **[Prompt Injection](https://huggingface.co/ApiFort/jailbreak_content_injection)** | BIPIA, Deepset, Internal 1K Validation |
75
+ | **[PII Extraction](https://huggingface.co/ApiFort/pii)** | AI4Privacy PII Masking 300k (EN, TR, FR, DE, ES) |
76
+ | **[Code Security](https://huggingface.co/ApiFort/code_security)** | r2vul, securecode_web |
77
+ | **[Excessive Agency](https://huggingface.co/ApiFort/excessive_agency)** | jinjinyien/ToolSafety, minpeter/xlam-function-calling-60k-parsed |
78
+ | **[System Prompt Leakage](https://huggingface.co/ApiFort/system_prompt_leakage)** | S-Labs/prompt-injection-dataset, Synthetic data |
79
+ | **[Content Safety](https://huggingface.co/ApiFort/content_safety)** | NVIDIA Nemotron-3.5-Content-Safety-Dataset, Wildguardmix |
80
+ | **[Unbounded Consumption](https://huggingface.co/ApiFort/unbounded_consumption)** | neuralchemy/prompt-injection-Threat-Matrix, Lakera/mosscap_prompt_injection |