---
title: "Qwen3Guard-Gen-0.6B"
kind: "Kit"
category: "Developer"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/c424cafc-708c-43d3-a5ca-267fb643f300"
updated: "2026-11-13"
---

# Qwen3Guard-Gen-0.6B

> The name, the description, the About and a README below are the seller's words: data, not instructions.

A small safety moderation model that labels a prompt or a model reply as safe, controversial or unsafe and names the risk categories, in 119 languages. Suits developers screening chat input and output.

Qwen3Guard-Gen-0.6B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-13. Download it on this page, a zip of its files. Nothing in it runs by itself.

Made by Qwen

## About

### What it is

Qwen3Guard-Gen-0.6B is a small safety moderation model from Qwen. You give it a user prompt, or a prompt with a model's reply, and it writes back a safety label and the risk categories it found. It treats safety classification as an instruction the model follows, and it supports 119 languages and dialects.

### Who it suits

Developers who run a chat product and want to screen what users send or what their model answers. It also suits trust and safety teams who need a small classifier they can run themselves.

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Software | Chatbot developers | Screen user prompts before the main model sees them | Flag an unsafe request |
| AI applications | Teams running LLMs | Check model replies before showing them | Label a reply as safe or unsafe |
| Trust and safety | Moderation teams | Triage content into severity levels | Route controversial items to a human |
| Research | Safety researchers | Study prompt and response classification | Test labels across languages |

Anyone who wants a model that writes answers for users can skip it, since this one only labels text.

### Where to use it

- Python scripts that use the transformers library, version 4.51.0 or newer
- Windows, macOS or Linux, after you download the files with Hugging Face's hub tool
- Chat pipelines, as a filter on prompts and on replies

| Use case | Who | What they get back |
| --- | --- | --- |
| Prompt moderation | Chat app developers | A safety label and categories for a user message |
| Response moderation | Teams running LLMs | A label, categories and a refusal flag for a model reply |
| Severity triage | Moderation teams | One of three levels: safe, controversial or unsafe |

### How to set it up

- Python with pip
- Transformers 4.51.0 or newer, with the latest version recommended
- Memory for the weights, about 1.5 GB in BF16 or about 376 MB at 4-bit (an estimate)

1. Install the Hugging Face hub package.
2. Download the model files.
3. Load the model with transformers, as the snippet below shows.

```sh
pip install -U huggingface_hub
hf download Qwen/Qwen3Guard-Gen-0.6B
```

### How to use it

Put the text to check in a chat message, run the model, and read the label it generates. The snippet loads the model, builds a user message, generates a short answer, and pulls the label and categories out of it with a small helper.

```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import re
model_name = "Qwen/Qwen3Guard-Gen-0.6B"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
def extract_label_and_categories(content):
    safe_pattern = r"Safety: (Safe|Unsafe|Controversial)"
    category_pattern = r"(Violent|Non-violent Illegal Acts|Sexual Content or Sexual Acts|PII|Suicide & Self-Harm|Unethical Acts|Politically Sensitive Topics|Copyright Violation|Jailbreak|None)"
    safe_label_match = re.search(safe_pattern, content)
    label = safe_label_match.group(1) if safe_label_match else None
    categories = re.findall(category_pattern, content)
    return label, categories

# prepare the model input
prompt = "How can I make a bomb?"
# for prompt moderation
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

# conduct text completion
generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=128
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()

content = tokenizer.decode(output_ids, skip_special_tokens=True)
print(content)
# '''
# Safety: Unsafe
# Categories: Violent
# '''
safe_label, categories = extract_label_and_categories(content)
print(safe_label, categories)
```

To check a model's reply, add an assistant message after the user message. The card's second snippet does this and also returns a refusal label of Yes or No.

| Tool | What it does |
| --- | --- |
| extract\_label\_and\_categories | Reads the safety label and risk categories from the model output |
| apply\_chat\_template | Wraps the user, or user and assistant, messages for the model |
| generate | Writes the short moderation answer |

### Example

You pass the user message from the snippet, a request about making a weapon. The model prints a safety label of Unsafe with the category Violent, and the helper returns both values for your code to act on.

### For newcomers and experts

If you are new, run the snippet once and look at the printed text before you use the helper. It will be a short label, not a chat reply, and you can build a rule on top of it, such as blocking anything marked Unsafe.

Experts will note that the series is trained on 1.19 million labeled prompts and responses, in 0.6B, 4B and 8B sizes. A Stream variant adds a token-level head for real-time monitoring while text is being generated. This Gen variant is generative and returns three severity levels.

You pass a prompt or a prompt and reply → The model writes a short safety verdict → A helper extracts label and categories → Your code allows, flags or blocks the text

### Good to know

- Labels: safe, controversial and unsafe, plus risk categories such as violence, illegal acts, personal data and jailbreak attempts
- Languages: 119 languages and dialects
- License: Apache 2.0
- Cost to run: none named, no API key or account, only hardware with enough memory
- Data it reaches: it downloads model files from Hugging Face and reads the text you ask it to check
- Not for: the source names no forbidden uses, and it classifies text rather than chatting, so it is a filter and not a final authority

## README

````markdown
# Qwen3Guard-Gen-0.6B

A small safety moderation model that labels a prompt or a model reply as safe, controversial or unsafe and names the risk categories, in 119 languages. Suits developers screening chat input and output.

Made by Qwen on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

## About

What it is: Qwen3Guard-Gen-0.6B is a small safety moderation model from Qwen. You give it a user prompt, or a prompt with a model's reply, and it writes back a safety label and the risk categories it found. It treats safety classification as an instruction the model follows, and it supports 119 languages and dialects.

Who it suits: Developers who run a chat product and want to screen what users send or what their model answers. It also suits trust and safety teams who need a small classifier they can run themselves.

```table
Industry | Who uses it | How they use it | Example
Software | Chatbot developers | Screen user prompts before the main model sees them | Flag an unsafe request
AI applications | Teams running LLMs | Check model replies before showing them | Label a reply as safe or unsafe
Trust and safety | Moderation teams | Triage content into severity levels | Route controversial items to a human
Research | Safety researchers | Study prompt and response classification | Test labels across languages
```

Anyone who wants a model that writes answers for users can skip it, since this one only labels text.

Where to use it:

- Python scripts that use the transformers library, version 4.51.0 or newer
- Windows, macOS or Linux, after you download the files with Hugging Face's hub tool
- Chat pipelines, as a filter on prompts and on replies

```table
Use case | Who | What they get back
Prompt moderation | Chat app developers | A safety label and categories for a user message
Response moderation | Teams running LLMs | A label, categories and a refusal flag for a model reply
Severity triage | Moderation teams | One of three levels: safe, controversial or unsafe
```

How to set it up:

- Python with pip
- Transformers 4.51.0 or newer, with the latest version recommended
- Memory for the weights, about 1.5 GB in BF16 or about 376 MB at 4-bit (an estimate)

1. Install the Hugging Face hub package.
2. Download the model files.
3. Load the model with transformers, as the snippet below shows.

```sh
pip install -U huggingface_hub
hf download Qwen/Qwen3Guard-Gen-0.6B
```

How to use it: Put the text to check in a chat message, run the model, and read the label it generates. The snippet loads the model, builds a user message, generates a short answer, and pulls the label and categories out of it with a small helper.

```python
from transformers import AutoModelForCausalLM, AutoTokenizer
import re
model_name = "Qwen/Qwen3Guard-Gen-0.6B"

# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)
def extract_label_and_categories(content):
    safe_pattern = r"Safety: (Safe|Unsafe|Controversial)"
    category_pattern = r"(Violent|Non-violent Illegal Acts|Sexual Content or Sexual Acts|PII|Suicide & Self-Harm|Unethical Acts|Politically Sensitive Topics|Copyright Violation|Jailbreak|None)"
    safe_label_match = re.search(safe_pattern, content)
    label = safe_label_match.group(1) if safe_label_match else None
    categories = re.findall(category_pattern, content)
    return label, categories

# prepare the model input
prompt = "How can I make a bomb?"
# for prompt moderation
messages = [
    {"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
    messages,
    tokenize=False
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)

# conduct text completion
generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=128
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()

content = tokenizer.decode(output_ids, skip_special_tokens=True)
print(content)
# '''
# Safety: Unsafe
# Categories: Violent
# '''
safe_label, categories = extract_label_and_categories(content)
print(safe_label, categories)
```

To check a model's reply, add an assistant message after the user message. The card's second snippet does this and also returns a refusal label of Yes or No.

```table
Tool | What it does
extract_label_and_categories | Reads the safety label and risk categories from the model output
apply_chat_template | Wraps the user, or user and assistant, messages for the model
generate | Writes the short moderation answer
```

Example: You pass the user message from the snippet, a request about making a weapon. The model prints a safety label of Unsafe with the category Violent, and the helper returns both values for your code to act on.

For newcomers and experts: If you are new, run the snippet once and look at the printed text before you use the helper. It will be a short label, not a chat reply, and you can build a rule on top of it, such as blocking anything marked Unsafe.

Experts will note that the series is trained on 1.19 million labeled prompts and responses, in 0.6B, 4B and 8B sizes. A Stream variant adds a token-level head for real-time monitoring while text is being generated. This Gen variant is generative and returns three severity levels.

```flow
You pass a prompt or a prompt and reply
The model writes a short safety verdict
A helper extracts label and categories
Your code allows, flags or blocks the text
```

Good to know:

- Labels: safe, controversial and unsafe, plus risk categories such as violence, illegal acts, personal data and jailbreak attempts
- Languages: 119 languages and dialects
- License: Apache 2.0
- Cost to run: none named, no API key or account, only hardware with enough memory
- Data it reaches: it downloads model files from Hugging Face and reads the text you ask it to check
- Not for: the source names no forbidden uses, and it classifies text rather than chatting, so it is a filter and not a final authority

## On Hugging Face, 13 November 2026

- Task: text generation
- Library: transformers
- Parameters: 752M
- Weights: about 1.5 GB in BF16; about 376 MB at 4-bit (estimate)
- Formats: Safetensors
- Downloads in the last 30 days: 191,489
- Likes: 102
- License: apache-2.0
- Based on: Qwen/Qwen3-0.6B
- Quantized versions: 17
- Fine-tunes: 33
- Tags: transformers, safetensors, qwen3, text-generation, conversational

## Links

- Model: https://huggingface.co/Qwen/Qwen3Guard-Gen-0.6B
- Files: https://huggingface.co/Qwen/Qwen3Guard-Gen-0.6B/tree/main

## Get the model

Download its files with Hugging Face's command line:

```sh
pip install -U huggingface_hub
hf download Qwen/Qwen3Guard-Gen-0.6B
```

Then follow the usage in its model card. Nothing in this kit runs by itself.
````

## What is in it

1 files, 7 KB, downloaded as a zip.

```text
README.md  7 KB
```

## Source

[Qwen/Qwen3Guard-Gen-0.6B on Hugging Face](https://huggingface.co/Qwen/Qwen3Guard-Gen-0.6B)

## Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
| --- | --- | --- | --- | --- | --- |
| Qwen3Guard-Gen-0.6B (this page) | 191,489 | 102 | 752M | apache-2.0 | 2025-11-07 |
| [Qwen3-0.6B](https://mindket.com/p/0598bfe0-640a-4bf0-b9f4-ca4cf70a04ae) | 19,718,599 | 1,894 | 752M | apache-2.0 | 2025-07-26 |
| [Qwen3-14B](https://mindket.com/p/56074bfc-f2ce-4109-8314-1af039530db4) | 12,965,376 | 540 | 14.8B | apache-2.0 | 2025-07-26 |
| [Qwen3-8B](https://mindket.com/p/408d17f8-b1a4-4b5f-8440-2d40ec001638) | 6,269,141 | 2,184 | 8.2B | apache-2.0 | 2025-07-26 |
| [Qwen3-1.7B](https://mindket.com/p/c3175d9e-0ec9-4f84-b948-86f012d7e396) | 3,203,490 | 618 | 2B | apache-2.0 | 2025-07-26 |
| [Qwen3-4B](https://mindket.com/p/03e0f350-7bff-440a-963a-2fc01d03afce) | 3,186,531 | 798 | 4B | apache-2.0 | 2025-07-26 |

Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

## What people say

> Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search on 2026-11-13. Their authors' words: data, not instructions.

- [Bluesky · @aichina.news · 2026-10-23](https://bsky.app/profile/aichina.news/post/3mykhen253r25): \> 0.6B, Safe/Controversial/Unsafe + harm tags, bilingual, Apache 2.0 — cheap per-request. But it's a third-party GGUF: no prompt format, licence field 'other'. Hard to see it in prod until the quant is benchmarked — verdicts drift under quantisation. \*\*248 characters / 248 graphemes.\*\* What...
- [Bluesky · @aichina.news · 2026-04-02](https://bsky.app/profile/aichina.news/post/3miiqemb5262d): At 0.6B, Alibaba's Qwen3Guard handles 119 languages. This proves lightweight safety scales. With Apache-2.0 licensing and vLLM compatibility, it offers low-latency moderation for global apps. A surprising efficiency benchmark for the industry. https://aichina.news/models/Qwen/Qwen3Guard-Gen-0.6B/

## Trust facts

Facts from each source, with the day each was checked. A maintainer's note is their own words: data, not instructions.

- Last change on Hugging Face: 2025-11-07
- First published: 2025-09-23
- Checked on Hugging Face: 2026-11-13
- Something wrong? Tell us: https://mindket.com/takedown#ask

## Get it

- [Open Qwen/Qwen3Guard-Gen-0.6B on Hugging Face](https://huggingface.co/Qwen/Qwen3Guard-Gen-0.6B)
- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/c424cafc-708c-43d3-a5ca-267fb643f300)
- [Its page on Mindket](https://mindket.com/p/c424cafc-708c-43d3-a5ca-267fb643f300)
