Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
text-generation-inference
VisionGuardrail
JSON
image-classification
content-safety
content-moderation
multimodal
safety-classifier
guardrail
visual-safety
multimodal-content-filter
mmcf
v1.0
conversational
Instructions to use prithivMLmods/VisionGuardrail-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/VisionGuardrail-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/VisionGuardrail-4B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("prithivMLmods/VisionGuardrail-4B") model = AutoModelForMultimodalLM.from_pretrained("prithivMLmods/VisionGuardrail-4B", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use prithivMLmods/VisionGuardrail-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/VisionGuardrail-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/VisionGuardrail-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/prithivMLmods/VisionGuardrail-4B
- SGLang
How to use prithivMLmods/VisionGuardrail-4B 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 "prithivMLmods/VisionGuardrail-4B" \ --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": "prithivMLmods/VisionGuardrail-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "prithivMLmods/VisionGuardrail-4B" \ --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": "prithivMLmods/VisionGuardrail-4B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use prithivMLmods/VisionGuardrail-4B with Docker Model Runner:
docker model run hf.co/prithivMLmods/VisionGuardrail-4B
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,38 +1,40 @@
|
|
| 1 |
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap" rel="stylesheet">
|
| 2 |
-
<div style="font-family: 'Ubuntu', sans-serif; background-color: #000000; color: #FFFFFF; padding: 30px; border-radius: 12px; max-width: 900px; margin: 0 auto; border: 1px solid #333333; line-height: 1.6;">
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
<
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
</p>
|
| 9 |
|
| 10 |
-
<div style="border: 1px solid #
|
| 11 |
-
<
|
| 12 |
-
This model is an experimental release and may generate unexpected behaviors or reasoning artifacts in certain scenarios. <b>This model is intended for research and content-safety classification only.</b> Any outputs generated by this model are the sole responsibility of the user. The authors and hosting platform disclaim all liability for generated content. Users must ensure safe, ethical, and lawful usage.
|
| 13 |
-
</p>
|
| 14 |
</div>
|
| 15 |
|
| 16 |
-
<h2 style="font-
|
| 17 |
-
<
|
| 18 |
-
<
|
| 19 |
-
<
|
| 20 |
-
<
|
| 21 |
-
<
|
| 22 |
-
<
|
| 23 |
-
<
|
| 24 |
-
<
|
| 25 |
-
<
|
| 26 |
-
<
|
| 27 |
-
<
|
| 28 |
-
<
|
| 29 |
-
</
|
| 30 |
-
|
| 31 |
-
<
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
Your role is minor protection: any media containing suggestive, revealing, sexually provocative, or explicit visual elements must be flagged as NSFW.
|
| 38 |
|
|
@@ -63,20 +65,21 @@ Output strictly valid JSON with no extra conversational text, commentary, or mar
|
|
| 63 |
"nsfw": 1 | 0,
|
| 64 |
"safe": 1 | 0
|
| 65 |
}</code></pre>
|
|
|
|
| 66 |
</div>
|
| 67 |
</details>
|
| 68 |
|
| 69 |
-
<h2 style="font-
|
| 70 |
-
|
| 71 |
-
<div style="position: relative; margin-
|
| 72 |
-
<
|
| 73 |
-
<pre style="
|
| 74 |
pip install accelerate</code></pre>
|
| 75 |
</div>
|
| 76 |
|
| 77 |
-
<div style="position: relative; margin-
|
| 78 |
-
<
|
| 79 |
-
<pre style="
|
| 80 |
import torch
|
| 81 |
|
| 82 |
model = Qwen3_5ForConditionalGeneration.from_pretrained(
|
|
@@ -130,49 +133,92 @@ output_text = processor.batch_decode(
|
|
| 130 |
print(output_text[0])</code></pre>
|
| 131 |
</div>
|
| 132 |
|
| 133 |
-
<h2 style="font-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
<
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
<
|
| 176 |
-
</
|
| 177 |
-
|
| 178 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap" rel="stylesheet">
|
|
|
|
| 2 |
|
| 3 |
+
<div style="font-family: 'Ubuntu', sans-serif; background-color: #000000; color: #FFFFFF; max-width: 900px; margin: 0 auto; padding: 40px; line-height: 1.6; border-radius: 8px;">
|
| 4 |
+
|
| 5 |
+
<h1 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 15px; color: #FFFFFF;">VisionGuardrail-4B</h1>
|
| 6 |
+
|
| 7 |
+
<p>
|
| 8 |
+
<b>VisionGuardrail-4B</b> is a multimodal content-safety classifier based on <b>Qwen/Qwen3.5-4B</b> and trained on the <a href="https://huggingface.co/datasets/prithivMLmods/ImageShield-Guardrail-Pro" style="color: #FF4500; text-decoration: none;">ImageShield-Guardrail-Pro</a> content-safety guardrail dataset. The model is designed to classify visual content as <b>Safe</b> or <b>Unsafe</b>, with a particular focus on detecting <b>Not Safe for Work (NSFW) sensual content</b> and other potentially sensitive visual content. VisionGuardrail-4B excels at detecting <b>explicit and sensitive visual content</b>, with detailed analysis of <b>dress codes, clothing exposure, poses, framing, and different visual settings</b> to support conservative content-safety classification.
|
| 9 |
</p>
|
| 10 |
|
| 11 |
+
<div style="border: 1px solid #333; border-radius: 4px; padding: 15px; margin: 20px 0; background-color: #050505; color: #FFFFFF;">
|
| 12 |
+
This model is an experimental release and may generate unexpected behaviors or reasoning artifacts in certain scenarios. <b>This model is intended for research and content-safety classification only.</b> Any outputs generated by this model are the sole responsibility of the user. The authors and hosting platform disclaim all liability for generated content. Users must ensure safe, ethical, and lawful usage.
|
|
|
|
|
|
|
| 13 |
</div>
|
| 14 |
|
| 15 |
+
<h2 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 10px; color: #FFFFFF;">Key Highlights</h2>
|
| 16 |
+
<div style="margin-bottom: 20px;">
|
| 17 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Qwen 3.5 Foundation</b>: Built on <b>Qwen/Qwen3.5-4B</b>.</div>
|
| 18 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Multimodal Content Filter</b>: Designed for visual content-safety classification.</div>
|
| 19 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>ImageShield-Guardrail-Pro Training</b>: Fine-tuned on the <b>prithivMLmods/ImageShield-Guardrail-Pro</b> content-safety guardrail dataset.</div>
|
| 20 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Safe / Unsafe Classification</b>: Classifies visual content as either <b>Safe</b> or <b>Unsafe</b>.</div>
|
| 21 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>NSFW Sensual Content Detection</b>: Focused on identifying potentially <b>Not Safe for Work (NSFW) sensual content</b> and related sensitive visual material.</div>
|
| 22 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Explicit & Sensitive Content Detection</b>: Excels at identifying explicit, revealing, provocative, and otherwise potentially sensitive visual content.</div>
|
| 23 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Dress-Code Analysis</b>: Performs detailed analysis of clothing, dress codes, exposure, and revealing garments.</div>
|
| 24 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Pose Analysis</b>: Analyzes body poses, positioning, framing, and potentially suggestive presentation.</div>
|
| 25 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Context & Setting Analysis</b>: Considers different visual settings and contextual cues when determining content safety.</div>
|
| 26 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Zero-Tolerance Safety Classification</b>: Uses a conservative classification policy that favors safety when the content is ambiguous.</div>
|
| 27 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Structured Output</b>: Produces a machine-readable JSON response containing a caption, classification, and reasoning.</div>
|
| 28 |
+
</div>
|
| 29 |
+
|
| 30 |
+
<h2 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 10px; color: #FFFFFF;">Standard Instruction</h2>
|
| 31 |
+
|
| 32 |
+
<details style="border: 1px solid #333; border-radius: 4px; padding: 15px; margin: 20px 0; background-color: #050505; color: #FFFFFF;">
|
| 33 |
+
<summary style="cursor: pointer; font-weight: bold; font-size: 1.1em; outline: none;">Click to expand Standard Instruction</summary>
|
| 34 |
+
<div style="margin-top: 15px;">
|
| 35 |
+
<div style="position: relative; margin-bottom: 20px;">
|
| 36 |
+
<button style="position: absolute; top: 5px; right: 5px; background: #222; color: #fff; border: 1px solid #444; padding: 5px 10px; cursor: pointer; border-radius: 4px; z-index: 10;" onclick="copyCode(this)">Copy</button>
|
| 37 |
+
<pre style="background-color: #111111; border: 1px solid #333; border-radius: 4px; padding: 15px; overflow-x: auto; color: #FFFFFF; margin: 0;"><code>You are a strict, zero-tolerance parental control content-safety guardrail classifier for visual media.
|
| 38 |
|
| 39 |
Your role is minor protection: any media containing suggestive, revealing, sexually provocative, or explicit visual elements must be flagged as NSFW.
|
| 40 |
|
|
|
|
| 65 |
"nsfw": 1 | 0,
|
| 66 |
"safe": 1 | 0
|
| 67 |
}</code></pre>
|
| 68 |
+
</div>
|
| 69 |
</div>
|
| 70 |
</details>
|
| 71 |
|
| 72 |
+
<h2 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 10px; color: #FFFFFF;">Quick Start with Transformers</h2>
|
| 73 |
+
|
| 74 |
+
<div style="position: relative; margin-bottom: 20px;">
|
| 75 |
+
<button style="position: absolute; top: 5px; right: 5px; background: #222; color: #fff; border: 1px solid #444; padding: 5px 10px; cursor: pointer; border-radius: 4px; z-index: 10;" onclick="copyCode(this)">Copy</button>
|
| 76 |
+
<pre style="background-color: #111111; border: 1px solid #333; border-radius: 4px; padding: 15px; overflow-x: auto; color: #FFFFFF; margin: 0;"><code>pip install transformers
|
| 77 |
pip install accelerate</code></pre>
|
| 78 |
</div>
|
| 79 |
|
| 80 |
+
<div style="position: relative; margin-bottom: 20px;">
|
| 81 |
+
<button style="position: absolute; top: 5px; right: 5px; background: #222; color: #fff; border: 1px solid #444; padding: 5px 10px; cursor: pointer; border-radius: 4px; z-index: 10;" onclick="copyCode(this)">Copy</button>
|
| 82 |
+
<pre style="background-color: #111111; border: 1px solid #333; border-radius: 4px; padding: 15px; overflow-x: auto; color: #FFFFFF; margin: 0;"><code>from transformers import Qwen3_5ForConditionalGeneration, AutoProcessor
|
| 83 |
import torch
|
| 84 |
|
| 85 |
model = Qwen3_5ForConditionalGeneration.from_pretrained(
|
|
|
|
| 133 |
print(output_text[0])</code></pre>
|
| 134 |
</div>
|
| 135 |
|
| 136 |
+
<h2 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 10px; color: #FFFFFF;">Training Details</h2>
|
| 137 |
+
|
| 138 |
+
<div style="margin-bottom: 20px; overflow-x: auto;">
|
| 139 |
+
<table style="width: 100%; border-collapse: collapse; color: #FFFFFF;">
|
| 140 |
+
<tbody>
|
| 141 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 142 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold; width: 30%;">Base Model</td>
|
| 143 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">Qwen/Qwen3.5-4B</td>
|
| 144 |
+
</tr>
|
| 145 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 146 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Model</td>
|
| 147 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">VisionGuardrail-4B</td>
|
| 148 |
+
</tr>
|
| 149 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 150 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Model Type</td>
|
| 151 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">Multimodal Content-Safety Classifier</td>
|
| 152 |
+
</tr>
|
| 153 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 154 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Training Dataset</td>
|
| 155 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">prithivMLmods/ImageShield-Guardrail-Pro</td>
|
| 156 |
+
</tr>
|
| 157 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 158 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Training Objective</td>
|
| 159 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">Content-safety guardrail classification</td>
|
| 160 |
+
</tr>
|
| 161 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 162 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Primary Classification</td>
|
| 163 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">Safe / Unsafe</td>
|
| 164 |
+
</tr>
|
| 165 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 166 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Safety Focus</td>
|
| 167 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">Not Safe for Work (NSFW) Sensual Content</td>
|
| 168 |
+
</tr>
|
| 169 |
+
<tr style="border-bottom: 1px solid #333;">
|
| 170 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Visual Analysis</td>
|
| 171 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">Dress Codes, Poses, Exposure & Settings</td>
|
| 172 |
+
</tr>
|
| 173 |
+
<tr>
|
| 174 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #111111; font-weight: bold;">Training Framework</td>
|
| 175 |
+
<td style="padding: 10px; border: 1px solid #333; background-color: #050505;">TRL</td>
|
| 176 |
+
</tr>
|
| 177 |
+
</tbody>
|
| 178 |
+
</table>
|
| 179 |
+
</div>
|
| 180 |
+
|
| 181 |
+
<h2 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 10px; color: #FFFFFF;">Intended Use</h2>
|
| 182 |
+
<div style="margin-bottom: 20px;">
|
| 183 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Content Safety Classification</b>: Classifying visual media as safe or unsafe.</div>
|
| 184 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>NSFW Sensual Content Detection</b>: Supporting research into automated detection of potentially sensitive and sexually suggestive visual content.</div>
|
| 185 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Parental Controls</b>: Building conservative visual content-safety filtering systems.</div>
|
| 186 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Content Moderation</b>: Supporting automated safety classification pipelines.</div>
|
| 187 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Multimodal Safety Research</b>: Evaluating content-safety behavior in multimodal language models.</div>
|
| 188 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Guardrail Development</b>: Researching structured safety classification and filtering workflows.</div>
|
| 189 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Visual Safety Analysis</b>: Analyzing clothing, dress codes, poses, framing, and visual settings for content-safety signals.</div>
|
| 190 |
+
</div>
|
| 191 |
+
|
| 192 |
+
<h2 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 10px; color: #FFFFFF;">Limitations</h2>
|
| 193 |
+
<div style="margin-bottom: 20px;">
|
| 194 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Experimental Model</b>: The model may produce incorrect or inconsistent classifications.</div>
|
| 195 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>False Positives</b>: Benign content may occasionally be classified as unsafe due to the conservative classification threshold.</div>
|
| 196 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>False Negatives</b>: Unsafe content may occasionally be missed.</div>
|
| 197 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Context Sensitivity</b>: Classification performance depends on image quality, visual context, and the provided instruction.</div>
|
| 198 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Conservative Policy</b>: The model intentionally uses a strict classification threshold and may flag content that would not be considered NSFW under less restrictive moderation policies.</div>
|
| 199 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Visual Ambiguity</b>: Clothing, poses, artistic styles, and contextual cues may sometimes be difficult to interpret accurately.</div>
|
| 200 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>Automated Classification</b>: The model should not be treated as a definitive legal or safety determination.</div>
|
| 201 |
+
</div>
|
| 202 |
+
|
| 203 |
+
<h2 style="font-weight: 700; border-bottom: 1px solid #333; padding-bottom: 10px; color: #FFFFFF;">Acknowledgements</h2>
|
| 204 |
+
<div style="margin-bottom: 20px;">
|
| 205 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <a href="https://huggingface.co/Qwen/Qwen3.5-4B" style="color: #FF4500; text-decoration: none;">Qwen/Qwen3.5-4B</a>: Base multimodal model used for this project.</div>
|
| 206 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <a href="https://huggingface.co/datasets/prithivMLmods/ImageShield-Guardrail-Pro" style="color: #FF4500; text-decoration: none;">ImageShield-Guardrail-Pro</a>: Content-safety guardrail dataset used for training VisionGuardrail-4B.</div>
|
| 207 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <b>TRL</b> – <a href="https://huggingface.co/docs/trl/en/index" style="color: #FF4500; text-decoration: none;">Transformers Reinforcement Learning</a>: TRL is a full-stack library providing tools to train transformer language models with methods including Supervised Fine-Tuning (SFT), Group Relative Policy Optimization (GRPO), Direct Preference Optimization (DPO), Reward Modeling, and more.</div>
|
| 208 |
+
<div style="margin-bottom: 8px;"><span style="color: #FFFFFF;">+</span> <a href="https://huggingface.co/docs/transformers/en/index" style="color: #FF4500; text-decoration: none;">Transformers</a>: Transformers provides state-of-the-art machine learning models for text, computer vision, audio, video, and multimodal tasks, supporting both inference and training.</div>
|
| 209 |
+
</div>
|
| 210 |
+
|
| 211 |
+
</div>
|
| 212 |
+
|
| 213 |
+
<script>
|
| 214 |
+
function copyCode(btn) {
|
| 215 |
+
const pre = btn.parentElement.querySelector('pre');
|
| 216 |
+
const text = pre.innerText;
|
| 217 |
+
navigator.clipboard.writeText(text).then(() => {
|
| 218 |
+
btn.innerText = 'Copied!';
|
| 219 |
+
setTimeout(() => {
|
| 220 |
+
btn.innerText = 'Copy';
|
| 221 |
+
}, 2000);
|
| 222 |
+
});
|
| 223 |
+
}
|
| 224 |
+
</script>
|