updating model card
Browse files
README.md
CHANGED
@@ -2,19 +2,26 @@
|
|
2 |
license: apache-2.0
|
3 |
tags:
|
4 |
- text-classification
|
5 |
-
|
|
|
|
|
|
|
6 |
---
|
7 |
|
8 |
# Safety Classification
|
9 |
|
10 |
-
This is a fine-tuned version of `gte-base-en-v1.5` for safety scoring.
|
11 |
|
12 |
## Usage
|
13 |
|
14 |
```python
|
15 |
-
from transformers import
|
16 |
|
17 |
-
model =
|
|
|
|
|
|
|
|
|
|
|
18 |
tokenizer = AutoTokenizer.from_pretrained("locuslab/safety-classifier_gte-base-en-v1.5")
|
19 |
-
```
|
20 |
-
|
|
|
2 |
license: apache-2.0
|
3 |
tags:
|
4 |
- text-classification
|
5 |
+
datasets:
|
6 |
+
- locuslab/safety_data_annotated
|
7 |
+
base_model:
|
8 |
+
- OrcaDB/gte-base-en-v1.5
|
9 |
---
|
10 |
|
11 |
# Safety Classification
|
12 |
|
13 |
+
This is a fine-tuned version of `OrcaDB/gte-base-en-v1.5` for safety scoring.
|
14 |
|
15 |
## Usage
|
16 |
|
17 |
```python
|
18 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
19 |
|
20 |
+
model = AutoModelForSequenceClassification.from_pretrained(
|
21 |
+
"locuslab/safety-classifier_gte-base-en-v1.5",
|
22 |
+
torch_dtype=torch.bfloat16,
|
23 |
+
num_labels=6,
|
24 |
+
trust_remote_code=True
|
25 |
+
)
|
26 |
tokenizer = AutoTokenizer.from_pretrained("locuslab/safety-classifier_gte-base-en-v1.5")
|
27 |
+
```
|
|