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
Run this model with HF Jobs
Run prithivMLmods/VisionGuardrail-4B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/prithivMLmods/VisionGuardrail-4B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/prithivMLmods/VisionGuardrail-4B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/prithivMLmods/VisionGuardrail-4B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/prithivMLmods/VisionGuardrail-4B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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 files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505 unmodified lines56575859606162636465666768697071727374757677787980818283848586872 unmodified lines9091929394959697983 unmodified lines1021031041051061071081091101111121131141151161171181191201211221231241251261271 unmodified line12913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529612 unmodified lines30931031131231331431531631731831932032132232329 unmodified lines35335435535635735835936036136236336436536636736836937037137237337448 unmodified lines42342442542642742842943043143243343443543643743843919 unmodified lines459460461462463464465466467<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,500;0,700;1,400&family=Ubuntu+Mono&display=swap" rel="stylesheet"><style>.vg-wrap {font-family: 'Ubuntu', sans-serif;background-color: #000000;color: #FFFFFF;padding: 40px 32px;border-radius: 16px;max-width: 920px;margin: 0 auto;line-height: 1.65;box-sizing: border-box;border: 1px solid #1c1c1c;}.vg-title-area {margin-bottom: 24px;border-bottom: 1px solid #222222;padding-bottom: 18px;}.vg-h1 {font-size: 34px;font-weight: 700;margin: 0 0 8px 0;color: #FFFFFF;letter-spacing: -0.5px;}.vg-badge {display: inline-block;font-size: 12px;letter-spacing: 0.5px;text-transform: uppercase;color: #FFFFFF;background: #111111;border: 1px solid #333333;padding: 3px 10px;border-radius: 4px;font-weight: 500;}.vg-lead {font-size: 15px;color: #FFFFFF;margin-bottom: 24px;}.vg-a {5 unmodified lines.vg-a:hover {text-decoration: underline;opacity: 0.85;}.vg-notice-panel {background-color: #0a0a0a;border: 1px solid #262626;border-radius: 8px;padding: 18px 22px;margin-bottom: 32px;font-size: 14px;color: #FFFFFF;line-height: 1.55;}.vg-h2 {font-size: 21px;font-weight: 700;margin-top: 36px;margin-bottom: 18px;color: #FFFFFF;letter-spacing: -0.3px;display: flex;align-items: center;gap: 8px;}.vg-list {list-style: none;padding: 0;2 unmodified lines.vg-list li {position: relative;padding-left: 28px;margin-bottom: 12px;font-size: 15px;color: #FFFFFF;}3 unmodified linesposition: absolute;left: 4px;top: -1px;font-weight: 700;font-size: 19px;line-height: 1;}.vg-disclosure {border: 1px solid #262626;border-radius: 8px;margin-bottom: 28px;background-color: #080808;overflow: hidden;}.vg-disclosure summary {padding: 16px 20px;cursor: pointer;font-size: 16px;font-weight: 700;color: #FFFFFF;background-color: #0d0d0d;user-select: none;display: flex;align-items: center;1 unmodified linetransition: background-color 0.2s ease;}.vg-disclosure summary:hover {background-color: #141414;}.vg-disclosure summary::after {content: "+";color: #FF4500;font-size: 18px;font-weight: 700;}.vg-disclosure[open] summary::after {content: "–";}.vg-disclosure-body {padding: 16px;border-top: 1px solid #222222;}.vg-code-shelf {position: relative;background: #050505;border: 1px solid #222222;border-radius: 8px;margin-bottom: 22px;overflow: hidden;}.vg-code-bar {display: flex;justify-content: space-between;align-items: center;background: #0e0e0e;padding: 8px 14px;border-bottom: 1px solid #1f1f1f;}.vg-code-lang {font-size: 12px;color: #888888;text-transform: uppercase;font-weight: 500;letter-spacing: 0.5px;}.vg-btn-copy {background: #1a1a1a;color: #FFFFFF;border: 1px solid #333333;border-radius: 4px;padding: 4px 10px;cursor: pointer;font-family: 'Ubuntu', sans-serif;font-size: 12px;font-weight: 500;transition: all 0.2s ease;}.vg-btn-copy:hover {background: #262626;border-color: #555555;}.vg-code-block {margin: 0;padding: 16px;overflow-x: auto;color: #FFFFFF;font-family: 'Ubuntu Mono', monospace;font-size: 13px;line-height: 1.5;white-space: pre;}.vg-grid-table {width: 100%;border-collapse: separate;border-spacing: 0;margin-bottom: 28px;border: 1px solid #262626;border-radius: 8px;overflow: hidden;font-size: 14px;}.vg-grid-table tr:not(:last-child) td,.vg-grid-table tr:not(:last-child) th {border-bottom: 1px solid #222222;}.vg-grid-table th {background-color: #0b0b0b;color: #FFFFFF;font-weight: 700;padding: 12px 18px;width: 32%;text-align: left;border-right: 1px solid #222222;}.vg-grid-table td {padding: 12px 18px;color: #FFFFFF;background-color: #050505;}.vg-source-ref {margin-bottom: 12px;font-size: 14px;color: #FFFFFF;padding-left: 28px;position: relative;}.vg-source-ref::before {content: "+";color: #FF4500;position: absolute;left: 4px;top: 0;font-weight: 700;font-size: 18px;line-height: 1;}</style><script>function runCopy(btn) {const container = btn.closest('.vg-code-shelf');const targetCode = container.querySelector('.vg-code-block');if (!targetCode) return;const textVal = targetCode.innerText;navigator.clipboard.writeText(textVal).then(function() {btn.innerText = "Copied!";setTimeout(function() { btn.innerText = "Copy"; }, 2000);}).catch(function() {const fallbackArea = document.createElement("textarea");fallbackArea.value = textVal;document.body.appendChild(fallbackArea);fallbackArea.select();document.execCommand('copy');document.body.removeChild(fallbackArea);btn.innerText = "Copied!";setTimeout(function() { btn.innerText = "Copy"; }, 2000);});}</script><div class="vg-wrap"><div class="vg-title-area"><h1 class="vg-h1">VisionGuardrail-4B</h1><span class="vg-badge">Multimodal Safety Model</span></div><p class="vg-lead"><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" class="vg-a">prithivMLmods/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.</p><div class="vg-notice-panel">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.</div>12 unmodified lines<li><b>Structured Output</b>: Produces a machine-readable JSON response containing a caption, classification, and reasoning.</li></ul><details class="vg-disclosure"><summary>Standard Instruction</summary><div class="vg-disclosure-body"><div class="vg-code-shelf"><div class="vg-code-bar"><span class="vg-code-lang">System Prompt</span><button class="vg-btn-copy" onclick="runCopy(this)">Copy</button></div><pre class="vg-code-block">You are a strict, zero-tolerance parental control content-safety guardrail classifier for visual media.Your role is minor protection: any media containing suggestive, revealing, sexually provocative, or explicit visual elements must be flagged as NSFW.29 unmodified lines</details><div class="vg-h2">Quick Start with Transformers</div><div class="vg-code-shelf"><div class="vg-code-bar"><span class="vg-code-lang">bash</span><button class="vg-btn-copy" onclick="runCopy(this)">Copy</button></div><pre class="vg-code-block">pip install transformerspip install accelerate</pre></div><div class="vg-code-shelf"><div class="vg-code-bar"><span class="vg-code-lang">python</span><button class="vg-btn-copy" onclick="runCopy(this)">Copy</button></div><pre class="vg-code-block">from transformers import Qwen3_5ForConditionalGeneration, AutoProcessorimport torchmodel = Qwen3_5ForConditionalGeneration.from_pretrained(48 unmodified lines</div><div class="vg-h2">Training Details</div><table class="vg-grid-table"><tr><th>Setting</th><td>Value</td></tr><tr><th>Base Model</th><td>Qwen/Qwen3.5-4B</td></tr><tr><th>Model</th><td>VisionGuardrail-4B</td></tr><tr><th>Model Type</th><td>Multimodal Content-Safety Classifier</td></tr><tr><th>Training Dataset</th><td>prithivMLmods/ImageShield-Guardrail-Pro</td></tr><tr><th>Training Objective</th><td>Content-safety guardrail classification</td></tr><tr><th>Primary Classification</th><td>Safe / Unsafe</td></tr><tr><th>Safety Focus</th><td>Not Safe for Work (NSFW) Sensual Content</td></tr><tr><th>Visual Analysis</th><td>Dress Codes, Poses, Exposure & Settings</td></tr><tr><th>Training Framework</th><td>TRL</td></tr></table><div class="vg-h2">Intended Use</div>19 unmodified lines</ul><div class="vg-h2">Acknowledgements</div><div class="vg-source-ref"><a href="https://huggingface.co/Qwen/Qwen3.5-4B" class="vg-a">Qwen/Qwen3.5-4B</a>: Base multimodal model used for this project.</div><div class="vg-source-ref"><a href="https://huggingface.co/datasets/prithivMLmods/ImageShield-Guardrail-Pro" class="vg-a">ImageShield-Guardrail-Pro</a>: Content-safety guardrail dataset used for training VisionGuardrail-4B.</div><div class="vg-source-ref"><a href="https://huggingface.co/docs/trl/en/index" class="vg-a">TRL</a> – Transformers Reinforcement Learning: 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><div class="vg-source-ref"><a href="https://huggingface.co/docs/transformers/en/index" class="vg-a">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></div>1234567891011121314151617181920212223242526272829303132333435365 unmodified lines424344454647484950515253545556575859606162636465666768697071727374752 unmodified lines7879808182838485863 unmodified lines909192939495969798991001011021031041051061071081091101111121131141151161 unmodified line11811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724812 unmodified lines26126226326426526626726826927027127227327427527629 unmodified lines30630730830931031131231331431531631731831932032132232332432532648 unmodified lines37537637737837938038138238338438538638738838939019 unmodified lines410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471<link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"><style>.vg-wrap {font-family: 'Ubuntu', sans-serif;background-color: #000000;color: #FFFFFF;max-width: 960px;margin: 0 auto;padding: 36px;line-height: 1.65;box-sizing: border-box;}.vg-wrap * {box-sizing: border-box;}/* Typography */.vg-hero-title {font-size: 34px;font-weight: 700;letter-spacing: -0.5px;color: #FFFFFF;margin: 0 0 16px 0;}.vg-lead {font-size: 15px;font-weight: 400;color: #FFFFFF;margin-bottom: 24px;line-height: 1.7;}.vg-a {5 unmodified lines.vg-a:hover {text-decoration: underline;opacity: 0.9;}.vg-h2 {font-size: 20px;font-weight: 700;color: #FFFFFF;margin-top: 40px;margin-bottom: 18px;display: flex;align-items: center;gap: 10px;letter-spacing: -0.2px;}/* Blockquote / Callout Box */.vg-callout-box {background: #050505;border: 1px solid #222222;border-radius: 6px;padding: 18px 22px;margin: 24px 0 32px 0;font-size: 13.5px;color: #FFFFFF;line-height: 1.6;}/* Bullet Lists with Orange-Red Plus */.vg-list {list-style: none;padding: 0;2 unmodified lines.vg-list li {position: relative;padding-left: 26px;margin-bottom: 12px;font-size: 14.5px;color: #FFFFFF;}3 unmodified linesposition: absolute;left: 4px;top: -1px;font-size: 18px;font-weight: 700;line-height: 1.2;}/* Dropdown Details Accordion */.vg-accordion {border: 1px solid #222222;border-radius: 6px;background: #050505;margin-bottom: 24px;overflow: hidden;}.vg-summary {padding: 16px 20px;font-size: 15px;font-weight: 700;color: #FFFFFF;background: #080808;cursor: pointer;user-select: none;display: flex;align-items: center;1 unmodified linetransition: background-color 0.2s ease;}.vg-summary:hover {background: #111111;}.vg-summary::-webkit-details-marker {display: none;}.vg-summary::after {content: "+";color: #FF4500;font-size: 20px;font-weight: 700;transition: transform 0.2s;}.vg-accordion[open] .vg-summary::after {content: "\2212"; /* Minus sign */}.vg-accordion-content {border-top: 1px solid #1a1a1a;}/* Code Blocks & Copy Buttons */.vg-code-wrapper {position: relative;background: #050505;border: 1px solid #222222;border-radius: 6px;margin-bottom: 20px;}.vg-code-header {display: flex;justify-content: space-between;align-items: center;padding: 8px 16px;background: #080808;border-bottom: 1px solid #1a1a1a;font-size: 12px;color: #888888;font-family: 'JetBrains Mono', monospace;}.vg-copy-btn {background: #111111;color: #FFFFFF;border: 1px solid #333333;border-radius: 4px;padding: 5px 12px;font-family: 'Ubuntu', sans-serif;font-size: 12px;cursor: pointer;display: inline-flex;align-items: center;gap: 6px;transition: all 0.2s ease;}.vg-copy-btn:hover {background: #1c1c1c;border-color: #555555;}.vg-pre {margin: 0;padding: 16px;overflow-x: auto;font-family: 'JetBrains Mono', monospace;font-size: 13px;line-height: 1.55;color: #FFFFFF;background: #020202;}/* Key-Value Matrix Table */.vg-meta-table {width: 100%;border-collapse: separate;border-spacing: 0;border: 1px solid #222222;border-radius: 6px;margin-bottom: 32px;overflow: hidden;font-size: 14px;}.vg-meta-table tr:not(:last-child) td {border-bottom: 1px solid #1a1a1a;}.vg-meta-table td {padding: 12px 18px;background: #030303;color: #FFFFFF;}.vg-meta-table td.vg-key {width: 32%;background: #080808;font-weight: 500;border-right: 1px solid #1a1a1a;color: #FFFFFF;}/* Acknowledgements Section */.vg-ack-card {padding: 14px 18px;border: 1px solid #1c1c1c;border-radius: 6px;background: #040404;margin-bottom: 12px;font-size: 13.5px;}</style><div class="vg-wrap"><div class="vg-hero-title">VisionGuardrail-4B</div><p class="vg-lead"><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" target="_blank" rel="noopener noreferrer" class="vg-a">prithivMLmods/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.</p><div class="vg-callout-box">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.</div>12 unmodified lines<li><b>Structured Output</b>: Produces a machine-readable JSON response containing a caption, classification, and reasoning.</li></ul><div class="vg-h2">Standard Instruction</div><details class="vg-accordion"><summary class="vg-summary">View Guardrail System Prompt</summary><div class="vg-accordion-content"><div class="vg-code-wrapper" style="border: none; margin: 0;"><div class="vg-code-header"><span>SYSTEM INSTRUCTION • JSON SPEC</span><button class="vg-copy-btn" onclick="vgCopyCode(this)">Copy Prompt</button></div><pre class="vg-pre">You are a strict, zero-tolerance parental control content-safety guardrail classifier for visual media.Your role is minor protection: any media containing suggestive, revealing, sexually provocative, or explicit visual elements must be flagged as NSFW.29 unmodified lines</details><div class="vg-h2">Quick Start with Transformers</div><div class="vg-code-wrapper"><div class="vg-code-header"><span>BASH • INSTALLATION</span><button class="vg-copy-btn" onclick="vgCopyCode(this)">Copy</button></div><pre class="vg-pre">pip install transformerspip install accelerate</pre></div><div class="vg-code-wrapper"><div class="vg-code-header"><span>PYTHON • INFERENCE PIPELINE</span><button class="vg-copy-btn" onclick="vgCopyCode(this)">Copy</button></div><pre class="vg-pre">from transformers import Qwen3_5ForConditionalGeneration, AutoProcessorimport torchmodel = Qwen3_5ForConditionalGeneration.from_pretrained(48 unmodified lines</div><div class="vg-h2">Training Details</div><table class="vg-meta-table"><tr><td class="vg-key">Base Model</td><td><b>Qwen/Qwen3.5-4B</b></td></tr><tr><td class="vg-key">Model</td><td><b>VisionGuardrail-4B</b></td></tr><tr><td class="vg-key">Model Type</td><td>Multimodal Content-Safety Classifier</td></tr><tr><td class="vg-key">Training Dataset</td><td><a href="https://huggingface.co/datasets/prithivMLmods/ImageShield-Guardrail-Pro" target="_blank" rel="noopener noreferrer" class="vg-a">prithivMLmods/ImageShield-Guardrail-Pro</a></td></tr><tr><td class="vg-key">Training Objective</td><td>Content-safety guardrail classification</td></tr><tr><td class="vg-key">Primary Classification</td><td>Safe / Unsafe</td></tr><tr><td class="vg-key">Safety Focus</td><td>Not Safe for Work (NSFW) Sensual Content</td></tr><tr><td class="vg-key">Visual Analysis</td><td>Dress Codes, Poses, Exposure & Settings</td></tr><tr><td class="vg-key">Training Framework</td><td><a href="https://huggingface.co/docs/trl/en/index" target="_blank" rel="noopener noreferrer" class="vg-a">TRL</a></td></tr></table><div class="vg-h2">Intended Use</div>19 unmodified lines</ul><div class="vg-h2">Acknowledgements</div><div class="vg-ack-card"><a href="https://huggingface.co/Qwen/Qwen3.5-4B" target="_blank" rel="noopener noreferrer" class="vg-a">Qwen/Qwen3.5-4B</a>: Base multimodal model used for this project.</div><div class="vg-ack-card"><a href="https://huggingface.co/datasets/prithivMLmods/ImageShield-Guardrail-Pro" target="_blank" rel="noopener noreferrer" class="vg-a">ImageShield-Guardrail-Pro</a>: Content-safety guardrail dataset used for training VisionGuardrail-4B.</div><div class="vg-ack-card"><a href="https://huggingface.co/docs/trl/en/index" target="_blank" rel="noopener noreferrer" class="vg-a">TRL</a> – Transformers Reinforcement Learning: 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><div class="vg-ack-card"><a href="https://huggingface.co/docs/transformers/en/index" target="_blank" rel="noopener noreferrer" class="vg-a">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></div><script>function vgCopyCode(button) {var container = button.closest('.vg-code-wrapper');var codeElement = container.querySelector('.vg-pre');var text = codeElement.innerText;if (navigator.clipboard && window.isSecureContext) {navigator.clipboard.writeText(text).then(function() {showSuccess(button);}).catch(function() {fallbackCopy(text, button);});} else {fallbackCopy(text, button);}}function fallbackCopy(text, button) {var textArea = document.createElement("textarea");textArea.value = text;textArea.style.position = "fixed";textArea.style.left = "-999999px";textArea.style.top = "-999999px";document.body.appendChild(textArea);textArea.focus();textArea.select();try {document.execCommand('copy');showSuccess(button);} catch (err) {button.innerText = "Error";}document.body.removeChild(textArea);}function showSuccess(button) {var originalText = button.innerText;button.innerText = "Copied!";button.style.borderColor = "#FF4500";setTimeout(function() {button.innerText = originalText;button.style.borderColor = "#333333";}, 2000);}</script>
README.md+191-187