Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
base_model: Qwen/Qwen2-VL-7B-Instruct
|
6 |
+
---
|
7 |
+
|
8 |
+
# Safe-o1-V Model Card π€β¨
|
9 |
+
|
10 |
+
## Model Overview π
|
11 |
+
`Safe-o1-V` is an innovative multi-modal language model that introduces a **self-monitoring thinking process** to detect and filter unsafe content, achieving more robust safety performance π.
|
12 |
+
|
13 |
+
---
|
14 |
+
|
15 |
+
## Features and Highlights π
|
16 |
+
- **Safety First** π: Through a self-monitoring mechanism, it detects potential unsafe content in the thinking process in real-time, ensuring outputs consistently align with ethical and safety standards.
|
17 |
+
- **Enhanced Robustness** π‘: Compared to traditional models, `Safe-o1-V` performs more stably in complex scenarios, reducing unexpected "derailments."
|
18 |
+
- **User-Friendly** π: Designed to provide users with a trustworthy conversational partner, suitable for various application scenarios, striking a balance between helpfulness and harmfulness.
|
19 |
+
|
20 |
+
---
|
21 |
+
|
22 |
+
## Usage π
|
23 |
+
You can load `Safe-o1-V` using the Hugging Face `transformers` library:
|
24 |
+
|
25 |
+
```python
|
26 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
27 |
+
|
28 |
+
tokenizer = AutoTokenizer.from_pretrained("PKU-Alignment/Safe-o1-V")
|
29 |
+
model = AutoModelForCausalLM.from_pretrained("PKU-Alignment/Safe-o1-V")
|
30 |
+
|
31 |
+
input_text = "Hello, World!"
|
32 |
+
inputs = tokenizer(input_text, return_tensors="pt")
|
33 |
+
outputs = model.generate(**inputs)
|
34 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
35 |
+
|
36 |
+
```
|