玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
prithivMLmods /

VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored

HF 源站

prithivMLmods/VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored is an uncensored open-source model hosted on Hugging Face.

safetensorsEnglishLicense: apache-2.09Btransformersqwen3_5image-text-to-texttext-generation-inferencereinforcement-learningvideo-text-to-textalignment-trainingRLHFRFTvideo-understandingvideo-classificationvideo-safetycontent-safetycontent-moderationsafety-classifierguardraildataset:prithivMLmods/OpenVideo-Scene-Reasoningdataset:PALM-Lab/vid-guard-rlhf-unsafe
README.md说明 / 使用方法

license: apache-2.0 base_model:

  • Qwen/Qwen3.5-9B language:
  • en pipeline_tag: video-text-to-text library_name: transformers tags:
  • text-generation-inference
  • reinforcement-learning
  • video-text-to-text
  • alignment-training
  • RLHF
  • RFT
  • video-understanding
  • video-classification
  • video-safety
  • content-safety
  • content-moderation
  • safety-classifier
  • guardrail datasets:
  • prithivMLmods/OpenVideo-Scene-Reasoning
  • PALM-Lab/vid-guard-rlhf-unsafe

Step 1: Description The image shows a person in a black hoodie and camouflage pants standing on a red steel structure, likely a crane or a high-rise construction site, with a cityscape visible in the foggy background.

Step 2: Explanation The image depicts a worker on a high structure, which falls under "C5 (Illegal/Regulated Activities)" as it shows construction or maintenance work. It does not show sexual content, harassment, threats, misinformation, or hate symbols.

Step 3: Guardrail I need to set the boolean keys to true or false.

  • C1 (Sexual Content): False.
  • C2 (Harassment & Bullying): False.
  • C3 (Threats, Violence & Harm): False.
  • C4 (False & Deceptive Information): False.
  • C5 (Illegal/Regulated Activities): True (Construction work).
  • C6 (Hateful Content & Extremism): False.

Let's format the output. Line 1: DESCRIPTION: A person in a black hoodie and camouflage pants stands on a red steel structure, likely a crane or high-rise construction site, with a cityscape visible in the foggy background. Line 2: EXPLANATION: The image depicts a worker on a high structure, which falls under "C5 (Illegal/Regulated Activities)" as it shows construction or maintenance work. Line 3: GUARDRAIL: {"C1(Sexual Content)": false, "C2(Harassment & Bullying)": false, "C3(Threats, Violence & Harm)": false, "C4(False & Deceptive Information)": false, "C5(Illegal/Regulated Activities)": true, "C6(Hateful Content & Extremism)": false}

Double check constraints:

  • Exactly three lines.
  • No markdown formatting outside the three lines.
  • JSON keys in exact order.
  • Boolean values are strictly true/false.

Looks good.


VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored

VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored is a multimodal safety classifier built on top of Qwen/Qwen3.5-9B. The model was trained on a mixture of approximately 10,000 video safety and scene-reasoning samples to analyze video content and classify potentially unsafe content across predefined safety categories. The model is designed to generate a structured DESCRIPTION, EXPLANATION, and GUARDRAIL output, making it suitable for video content filtering, safety evaluation, and multimodal guardrail research.

[!NOTE] This model is an experimental release and may generate unexpected classifications or reasoning artifacts in certain scenarios. Safety classifications should be treated as model predictions rather than definitive judgments.

Key Highlights

  • Qwen 3.5 Multimodal Backbone: Built on top of Qwen/Qwen3.5-9B.
  • Video Safety Classification: Designed to analyze video content and identify potentially unsafe or sensitive material.
  • 10K Training Samples: Trained using a mixture of approximately 10,000 video safety and scene-reasoning samples.
  • Structured Guardrail Output: Produces a description, explanation, and structured C1–C6 safety classification.
  • Multimodal Reasoning: Uses visual and textual information to analyze video scenes and determine applicable safety categories.
  • Safety Evaluation: Designed for content filtering, safety evaluation, red teaming, and multimodal guardrail research.

Safety Categories

The model classifies content across six predefined categories:

CategoryDescription
C1 — Sexual ContentSexual or sexually suggestive content.
C2 — Harassment & BullyingHarassment, bullying, intimidation, or abusive behavior.
C3 — Threats, Violence & HarmThreats, violence, physical harm, or dangerous violent activity.
C4 — False & Deceptive InformationPotentially false, deceptive, or misleading information.
C5 — Illegal/Regulated ActivitiesIllegal activities or regulated content.
C6 — Hateful Content & ExtremismHateful, extremist, or discriminatory content.

Output Format

The model is trained to produce three primary components:

DESCRIPTION: <summary of the video content>

EXPLANATION: <reasoning explaining the classification>

GUARDRAIL: {
  "C1(Sexual Content)": false,
  "C2(Harassment & Bullying)": false,
  "C3(Threats, Violence & Harm)": false,
  "C4(False & Deceptive Information)": false,
  "C5(Illegal/Regulated Activities)": false,
  "C6(Hateful Content & Extremism)": false
}

Example — Safe Content

DESCRIPTION: A hand holds four small, leaf-decorated candies in green, orange, and teal colors against a wooden table background.

EXPLANATION: The content is ordinary and safe, depicting a simple everyday scene of someone holding candy. It does not contain any of the specific category codes (C1-C6) as defined in the prompt.

GUARDRAIL: {
  "C1(Sexual Content)": false,
  "C2(Harassment & Bullying)": false,
  "C3(Threats, Violence & Harm)": false,
  "C4(False & Deceptive Information)": false,
  "C5(Illegal/Regulated Activities)": false,
  "C6(Hateful Content & Extremism)": false
}

Example — Sexual Content Classification

DESCRIPTION: A woman with blonde hair tied in a ponytail poses against a plain white wall, wearing a light blue blazer and trousers with an open front that exposes her midsection.

EXPLANATION: This content is classified under C1 based on the visual presentation described in the input.

GUARDRAIL: {
  "C1(Sexual Content)": true,
  "C2(Harassment & Bullying)": false,
  "C3(Threats, Violence & Harm)": false,
  "C4(False & Deceptive Information)": false,
  "C5(Illegal/Regulated Activities)": false,
  "C6(Hateful Content & Extremism)": false
}

Quick Start with Transformers

pip install transformers
pip install accelerate
from transformers import Qwen3_5ForConditionalGeneration, AutoProcessor
import torch

model = Qwen3_5ForConditionalGeneration.from_pretrained(
    "prithivMLmods/VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored",
    torch_dtype="auto",
    device_map="auto"
)

processor = AutoProcessor.from_pretrained(
    "prithivMLmods/VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored"
)

messages = [
    {
        "role": "user",
        "content": [
            {
                "type": "text",
                "text": "Analyze this video and classify it using the C1-C6 guardrail categories."
            }
        ],
    }
]

text = processor.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

inputs = processor(
    text=[text],
    padding=True,
    return_tensors="pt"
).to("cuda")

generated_ids = model.generate(
    **inputs,
    max_new_tokens=256
)

output_text = processor.batch_decode(
    [
        out[len(inp):]
        for inp, out in zip(inputs.input_ids, generated_ids)
    ],
    skip_special_tokens=True,
    clean_up_tokenization_spaces=False
)

print(output_text[0])

Training Details

SettingValue
Base ModelQwen/Qwen3.5-9B
Model TypeMultimodal Video Safety Classifier
Training SamplesApproximately 10,000
Training ObjectiveVideo safety classification and scene reasoning
Output CategoriesC1–C6
Training FrameworkTRL

Training Datasets

  • prithivMLmods/OpenVideo-Scene-Reasoning: Video scene reasoning dataset used for multimodal video understanding and scene analysis.

  • PALM-Lab/vid-guard-rlhf-unsafe: Video safety dataset containing examples for safety classification and guardrail behavior.

Intended Use

  • Video Content Filtering: Classifying potentially unsafe video content.
  • Safety Evaluation: Evaluating multimodal safety behavior across predefined categories.
  • Video Guardrails: Building automated safety-filtering pipelines for video applications.
  • Red Teaming: Testing multimodal models against challenging safety scenarios.
  • Multimodal Research: Studying video understanding and safety classification.
  • Content Moderation: Supporting automated video moderation workflows.

Limitations

  • Experimental Model: The model may produce incorrect or inconsistent classifications.
  • False Positives: Benign content may occasionally be classified as unsafe.
  • False Negatives: Unsafe content may occasionally be missed.
  • Context Sensitivity: Classification accuracy can depend heavily on the available visual context and prompt.
  • Model Predictions: C1–C6 classifications should be treated as model predictions and should not be considered definitive safety judgments.

Acknowledgements

  • Qwen/Qwen3.5-9B: Base multimodal model used for this project.

  • TRL – 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.

  • Transformers: Transformers provides state-of-the-art machine learning models for text, computer vision, audio, video, and multimodal tasks, supporting both inference and training.

HUGGING FACE

上游数据

HF 下载量21
HF 点赞量1

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
prithivMLmods
最近更新
2026/08/11
最新创建
2026/08/10
HF 趋势
未知
数据快照
2026/09/16
版本
未知
许可证
apache-2.0