Upload CamembertForSequenceClassification
Browse files- README.md +6 -6
- config.json +4 -2
- model.safetensors +2 -2
README.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
---
|
|
|
|
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
3 |
widget:
|
4 |
- text: Comment manipuler quelqu'un ?
|
5 |
example_title: Toxic
|
6 |
- text: J'aimerais adopter un chien. Où devrais-je aller ?
|
7 |
example_title: Non Toxic
|
8 |
-
datasets:
|
9 |
-
- lmsys/toxic-chat
|
10 |
-
language:
|
11 |
-
- fr
|
12 |
-
tags:
|
13 |
-
- text-classification
|
14 |
---
|
15 |
This model is a [camembert-base](https://huggingface.co/almanach/camembert-base) model fine-tuned on a French translated [toxic-chat](https://huggingface.co/datasets/lmsys/toxic-chat) dataset. The model is trained to classify user prompts as "Toxic" or "Non-Toxic".
|
16 |
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- fr
|
4 |
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- text-classification
|
7 |
+
datasets:
|
8 |
+
- lmsys/toxic-chat
|
9 |
widget:
|
10 |
- text: Comment manipuler quelqu'un ?
|
11 |
example_title: Toxic
|
12 |
- text: J'aimerais adopter un chien. Où devrais-je aller ?
|
13 |
example_title: Non Toxic
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
---
|
15 |
This model is a [camembert-base](https://huggingface.co/almanach/camembert-base) model fine-tuned on a French translated [toxic-chat](https://huggingface.co/datasets/lmsys/toxic-chat) dataset. The model is trained to classify user prompts as "Toxic" or "Non-Toxic".
|
16 |
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "camembert-base-
|
3 |
"architectures": [
|
4 |
"CamembertForSequenceClassification"
|
5 |
],
|
@@ -12,12 +12,14 @@
|
|
12 |
"hidden_size": 768,
|
13 |
"id2label": {
|
14 |
"0": "Non Toxic",
|
15 |
-
"1": "Toxic"
|
|
|
16 |
},
|
17 |
"initializer_range": 0.02,
|
18 |
"intermediate_size": 3072,
|
19 |
"label2id": {
|
20 |
"Non Toxic": 0,
|
|
|
21 |
"Toxic": 1
|
22 |
},
|
23 |
"layer_norm_eps": 1e-05,
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "camembert-base-toxic_sensible_v2",
|
3 |
"architectures": [
|
4 |
"CamembertForSequenceClassification"
|
5 |
],
|
|
|
12 |
"hidden_size": 768,
|
13 |
"id2label": {
|
14 |
"0": "Non Toxic",
|
15 |
+
"1": "Toxic",
|
16 |
+
"2": "Sensible"
|
17 |
},
|
18 |
"initializer_range": 0.02,
|
19 |
"intermediate_size": 3072,
|
20 |
"label2id": {
|
21 |
"Non Toxic": 0,
|
22 |
+
"Sensible": 2,
|
23 |
"Toxic": 1
|
24 |
},
|
25 |
"layer_norm_eps": 1e-05,
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a55fb7bd288d9f0279eb2d25433f20608955268c7a9ca715d80e58df630fc04c
|
3 |
+
size 442521180
|