abhishek HF staff commited on
Commit
c5f7ca0
1 Parent(s): f50e40c

Commit From AutoNLP

Browse files
.gitattributes CHANGED
@@ -25,3 +25,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
25
  *.zip filter=lfs diff=lfs merge=lfs -text
26
  *.zstandard filter=lfs diff=lfs merge=lfs -text
27
  *tfevents* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
29
+ *.pkl filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: autonlp
3
+ language: fr
4
+ widget:
5
+ - text: "I love AutoNLP 🤗"
6
+ datasets:
7
+ - medA/autonlp-data-FR_another_test
8
+ co2_eq_emissions: 70.54639641012226
9
+ ---
10
+
11
+ # Model Trained Using AutoNLP
12
+
13
+ - Problem type: Multi-class Classification
14
+ - Model ID: 565016091
15
+ - CO2 Emissions (in grams): 70.54639641012226
16
+
17
+ ## Validation Metrics
18
+
19
+ - Loss: 0.5170354247093201
20
+ - Accuracy: 0.8545909432074056
21
+ - Macro F1: 0.7910662503820883
22
+ - Micro F1: 0.8545909432074056
23
+ - Weighted F1: 0.8539837213761081
24
+ - Macro Precision: 0.8033640381948799
25
+ - Micro Precision: 0.8545909432074056
26
+ - Weighted Precision: 0.856160322286008
27
+ - Macro Recall: 0.7841845637031052
28
+ - Micro Recall: 0.8545909432074056
29
+ - Weighted Recall: 0.8545909432074056
30
+
31
+
32
+ ## Usage
33
+
34
+ You can use cURL to access this model:
35
+
36
+ ```
37
+ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/medA/autonlp-FR_another_test-565016091
38
+ ```
39
+
40
+ Or Python API:
41
+
42
+ ```
43
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
+
45
+ model = AutoModelForSequenceClassification.from_pretrained("medA/autonlp-FR_another_test-565016091", use_auth_token=True)
46
+
47
+ tokenizer = AutoTokenizer.from_pretrained("medA/autonlp-FR_another_test-565016091", use_auth_token=True)
48
+
49
+ inputs = tokenizer("I love AutoNLP", return_tensors="pt")
50
+
51
+ outputs = model(**inputs)
52
+ ```
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoNLP",
3
+ "_num_labels": 12,
4
+ "architectures": [
5
+ "CamembertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "BODY_SHAMING",
16
+ "1": "HATE",
17
+ "2": "HOMOPHOBIA",
18
+ "3": "INSULT",
19
+ "4": "MISOGYNY",
20
+ "5": "MORAL_HARASSMENT",
21
+ "6": "NEUTRAL",
22
+ "7": "RACISM",
23
+ "8": "SEXUAL_HARASSMENT",
24
+ "9": "SUPPORTIVE",
25
+ "10": "THREAT",
26
+ "11": "TROLL"
27
+ },
28
+ "initializer_range": 0.02,
29
+ "intermediate_size": 3072,
30
+ "label2id": {
31
+ "BODY_SHAMING": 0,
32
+ "HATE": 1,
33
+ "HOMOPHOBIA": 2,
34
+ "INSULT": 3,
35
+ "MISOGYNY": 4,
36
+ "MORAL_HARASSMENT": 5,
37
+ "NEUTRAL": 6,
38
+ "RACISM": 7,
39
+ "SEXUAL_HARASSMENT": 8,
40
+ "SUPPORTIVE": 9,
41
+ "THREAT": 10,
42
+ "TROLL": 11
43
+ },
44
+ "layer_norm_eps": 1e-05,
45
+ "max_length": 192,
46
+ "max_position_embeddings": 514,
47
+ "model_type": "camembert",
48
+ "num_attention_heads": 12,
49
+ "num_hidden_layers": 12,
50
+ "output_past": true,
51
+ "pad_token_id": 1,
52
+ "padding": "max_length",
53
+ "position_embedding_type": "absolute",
54
+ "problem_type": "single_label_classification",
55
+ "torch_dtype": "float32",
56
+ "transformers_version": "4.15.0",
57
+ "type_vocab_size": 1,
58
+ "use_cache": true,
59
+ "vocab_size": 32005
60
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8580a58b00d135daf3564951d208d0884fd3c55ae32bd20b233324b7b5e9968
3
+ size 442610093
sample_input.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5602881f57065986b50d0bab7882d713bce6925aacdda8253762695056b40581
3
+ size 4082
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f98f266fdc548c94216aaadc13ffaaafacf0c8793303e2195322d954549ea261
3
+ size 808767
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}, "additional_special_tokens": ["<s>NOTUSED", "</s>NOTUSED"]}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "additional_special_tokens": ["<s>NOTUSED", "</s>NOTUSED"], "special_tokens_map_file": null, "name_or_path": "AutoNLP", "sp_model_kwargs": {}, "tokenizer_class": "CamembertTokenizer"}