Improve model card: Add pipeline tag and update paper link
#2
by
nielsr
HF Staff
- opened
README.md
CHANGED
|
@@ -1,9 +1,10 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
license_link: https://huggingface.co/Qwen/Qwen3Guard-Stream-4B/blob/main/LICENSE
|
| 5 |
-
|
| 6 |
-
- Qwen/Qwen3-4B
|
| 7 |
---
|
| 8 |
|
| 9 |
# Qwen3Guard-Stream-4B
|
|
@@ -20,7 +21,7 @@ This repository hosts **Qwen3Guard-Stream**, which offers the following key adva
|
|
| 20 |
* **Three-Tiered Severity Classification:** Enables detailed risk assessment by categorizing outputs into safe, controversial, and unsafe severity levels, supporting adaptation to diverse deployment scenarios.
|
| 21 |
* **Multilingual Support:** Supports 119 languages and dialects, ensuring robust performance in global and cross-lingual applications.
|
| 22 |
|
| 23 |
-
For more details, please refer to our [blog](https://qwen.ai/blog?id=f0bbad0677edf58ba93d80a1e12ce458f7a80548&from=research.research-list), [GitHub](https://github.com/QwenLM/Qwen3Guard), and [Technical Report](https://
|
| 24 |
|
| 25 |
## Quickstart
|
| 26 |
|
|
@@ -63,7 +64,8 @@ token_ids = model_inputs.input_ids[0]
|
|
| 63 |
# In a real-world scenario, the user's input is processed completely before the model generates a response.
|
| 64 |
token_ids_list = token_ids.tolist()
|
| 65 |
# We identify the end of the user's turn in the tokenized input.
|
| 66 |
-
# The template for a user turn is `<|im_start|>user
|
|
|
|
| 67 |
im_start_token = '<|im_start|>'
|
| 68 |
user_token = 'user'
|
| 69 |
im_end_token = '<|im_end|>'
|
|
@@ -137,4 +139,13 @@ If you find our work helpful, feel free to give us a cite.
|
|
| 137 |
year={2025},
|
| 138 |
url={http://arxiv.org/abs/2510.14276},
|
| 139 |
}
|
| 140 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen3-4B
|
| 4 |
library_name: transformers
|
| 5 |
license: apache-2.0
|
| 6 |
license_link: https://huggingface.co/Qwen/Qwen3Guard-Stream-4B/blob/main/LICENSE
|
| 7 |
+
pipeline_tag: text-classification
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# Qwen3Guard-Stream-4B
|
|
|
|
| 21 |
* **Three-Tiered Severity Classification:** Enables detailed risk assessment by categorizing outputs into safe, controversial, and unsafe severity levels, supporting adaptation to diverse deployment scenarios.
|
| 22 |
* **Multilingual Support:** Supports 119 languages and dialects, ensuring robust performance in global and cross-lingual applications.
|
| 23 |
|
| 24 |
+
For more details, please refer to our [blog](https://qwen.ai/blog?id=f0bbad0677edf58ba93d80a1e12ce458f7a80548&from=research.research-list), [GitHub](https://github.com/QwenLM/Qwen3Guard), and [Technical Report](https://huggingface.co/papers/2510.14276).
|
| 25 |
|
| 26 |
## Quickstart
|
| 27 |
|
|
|
|
| 64 |
# In a real-world scenario, the user's input is processed completely before the model generates a response.
|
| 65 |
token_ids_list = token_ids.tolist()
|
| 66 |
# We identify the end of the user's turn in the tokenized input.
|
| 67 |
+
# The template for a user turn is `<|im_start|>user
|
| 68 |
+
...<|im_end|>`.
|
| 69 |
im_start_token = '<|im_start|>'
|
| 70 |
user_token = 'user'
|
| 71 |
im_end_token = '<|im_end|>'
|
|
|
|
| 139 |
year={2025},
|
| 140 |
url={http://arxiv.org/abs/2510.14276},
|
| 141 |
}
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
## Contact Us
|
| 145 |
+
If you are interested to leave a message to either our research team or product team, join our [Discord](https://discord.gg/z3GAxXZ9Ce) or [WeChat groups](https://github.com/QwenLM/Qwen/blob/main/assets/wechat.png)!
|
| 146 |
+
|
| 147 |
+
<p align="right" style="font-size: 14px; color: #555; margin-top: 20px;">
|
| 148 |
+
<a href="#readme-top" style="text-decoration: none; color: #007bff; font-weight: bold;">
|
| 149 |
+
↑ Back to Top ↑
|
| 150 |
+
</a>
|
| 151 |
+
</p>
|