Views
No views yet

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.
| Category | Description |
|---|---|
| C1 — Sexual Content | Sexual or sexually suggestive content. |
| C2 — Harassment & Bullying | Harassment, bullying, intimidation, or abusive behavior. |
| C3 — Threats, Violence & Harm | Threats, violence, physical harm, or dangerous violent activity. |
| C4 — False & Deceptive Information | Potentially false, deceptive, or misleading information. |
| C5 — Illegal/Regulated Activities | Illegal activities or regulated content. |
| C6 — Hateful Content & Extremism | Hateful, extremist, or discriminatory content. |
1DESCRIPTION: <summary of the video content>
2
3EXPLANATION: <reasoning explaining the classification>
4
5GUARDRAIL: {
6 "C1(Sexual Content)": false,
7 "C2(Harassment & Bullying)": false,
8 "C3(Threats, Violence & Harm)": false,
9 "C4(False & Deceptive Information)": false,
10 "C5(Illegal/Regulated Activities)": false,
11 "C6(Hateful Content & Extremism)": false
12}1DESCRIPTION: A hand holds four small, leaf-decorated candies in green, orange, and teal colors against a wooden table background.
2
3EXPLANATION: 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.
4
5GUARDRAIL: {
6 "C1(Sexual Content)": false,
7 "C2(Harassment & Bullying)": false,
8 "C3(Threats, Violence & Harm)": false,
9 "C4(False & Deceptive Information)": false,
10 "C5(Illegal/Regulated Activities)": false,
11 "C6(Hateful Content & Extremism)": false
12}1DESCRIPTION: 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.
2
3EXPLANATION: This content is classified under C1 based on the visual presentation described in the input.
4
5GUARDRAIL: {
6 "C1(Sexual Content)": true,
7 "C2(Harassment & Bullying)": false,
8 "C3(Threats, Violence & Harm)": false,
9 "C4(False & Deceptive Information)": false,
10 "C5(Illegal/Regulated Activities)": false,
11 "C6(Hateful Content & Extremism)": false
12}1pip install transformers
2pip install accelerate1from transformers import Qwen3_5ForConditionalGeneration, AutoProcessor
2import torch
3
4model = Qwen3_5ForConditionalGeneration.from_pretrained(
5 "prithivMLmods/VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored",
6 torch_dtype="auto",
7 device_map="auto"
8)
9
10processor = AutoProcessor.from_pretrained(
11 "prithivMLmods/VideoGuard-Qwen3.5-9B-Safety-RL-Uncensored"
12)
13
14messages = [
15 {
16 "role": "user",
17 "content": [
18 {
19 "type": "text",
20 "text": "Analyze this video and classify it using the C1-C6 guardrail categories."
21 }
22 ],
23 }
24]
25
26text = processor.apply_chat_template(
27 messages,
28 tokenize=False,
29 add_generation_prompt=True
30)
31
32inputs = processor(
33 text=[text],
34 padding=True,
35 return_tensors="pt"
36).to("cuda")
37
38generated_ids = model.generate(
39 **inputs,
40 max_new_tokens=256
41)
42
43output_text = processor.batch_decode(
44 [
45 out[len(inp):]
46 for inp, out in zip(inputs.input_ids, generated_ids)
47 ],
48 skip_special_tokens=True,
49 clean_up_tokenization_spaces=False
50)
51
52print(output_text[0])| Setting | Value |
|---|---|
| Base Model | Qwen/Qwen3.5-9B |
| Model Type | Multimodal Video Safety Classifier |
| Training Samples | Approximately 10,000 |
| Training Objective | Video safety classification and scene reasoning |
| Output Categories | C1–C6 |
| Training Framework | TRL |