Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +52 -0
- config.json +106 -0
- pytorch_model.bin +3 -0
- sample_input.pkl +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
.gitattributes
CHANGED
@@ -25,3 +25,6 @@ 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 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags: autotrain
|
3 |
+
language: fr
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- ziedhajyahia/autotrain-data-ok
|
8 |
+
co2_eq_emissions: 5.096755166899446
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Multi-class Classification
|
14 |
+
- Model ID: 848227025
|
15 |
+
- CO2 Emissions (in grams): 5.096755166899446
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 2.1917402744293213
|
20 |
+
- Accuracy: 0.44666666666666666
|
21 |
+
- Macro F1: 0.20291677804725128
|
22 |
+
- Micro F1: 0.44666666666666666
|
23 |
+
- Weighted F1: 0.37709801275435956
|
24 |
+
- Macro Precision: 0.19919016697588127
|
25 |
+
- Micro Precision: 0.44666666666666666
|
26 |
+
- Weighted Precision: 0.3478004329004329
|
27 |
+
- Macro Recall: 0.23167713239141807
|
28 |
+
- Micro Recall: 0.44666666666666666
|
29 |
+
- Weighted Recall: 0.44666666666666666
|
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 AutoTrain"}' https://api-inference.huggingface.co/models/ziedhajyahia/autotrain-ok-848227025
|
38 |
+
```
|
39 |
+
|
40 |
+
Or Python API:
|
41 |
+
|
42 |
+
```
|
43 |
+
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
+
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("ziedhajyahia/autotrain-ok-848227025", use_auth_token=True)
|
46 |
+
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("ziedhajyahia/autotrain-ok-848227025", use_auth_token=True)
|
48 |
+
|
49 |
+
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
50 |
+
|
51 |
+
outputs = model(**inputs)
|
52 |
+
```
|
config.json
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 35,
|
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": 1024,
|
14 |
+
"id2label": {
|
15 |
+
"0": "Commercialisation des produits - Aide au choix d'un produit",
|
16 |
+
"1": "Commercialisation des produits - Disponibilit\u00e9 des couleurs",
|
17 |
+
"2": "Commercialisation des produits - Disponibilit\u00e9 des produits",
|
18 |
+
"3": "Commercialisation des produits - Gamme arr\u00eat\u00e9e ou en fin de commercialisation",
|
19 |
+
"4": "Commercialisation des produits - Produits morts",
|
20 |
+
"5": "Commercialisation des produits - Recherche d'un point de vente",
|
21 |
+
"6": "Commercialisation des produits - Renseignement sur la compatibilit\u00e9",
|
22 |
+
"7": "Commercialisation des produits - Renseignement sur les diff\u00e9rences techniques",
|
23 |
+
"8": "Commercialisation des produits - R\u00e9f\u00e9rences non / pas encore commercialis\u00e9es",
|
24 |
+
"9": "Commercialisation des produits - Stock limit\u00e9",
|
25 |
+
"10": "Commercialisation des produits - \u00c9quivalences & Solutions de substitution",
|
26 |
+
"11": "Informations techniques - Besoin de pr\u00e9cisions compl\u00e9mentaires ou informations manquantes",
|
27 |
+
"12": "Informations techniques - Compatibilit\u00e9",
|
28 |
+
"13": "Informations techniques - Fiche technique",
|
29 |
+
"14": "Informations techniques - Fonctionnement des produits",
|
30 |
+
"15": "Informations techniques - Informations sur la norme",
|
31 |
+
"16": "Informations techniques - Plage de variation",
|
32 |
+
"17": "Informations techniques - Produits introuvables sur le site web",
|
33 |
+
"18": "Informations techniques - Remplacement de produits",
|
34 |
+
"19": "Installation et montage - Demandes d'explication de montage",
|
35 |
+
"20": "Installation et montage - Difficult\u00e9 et probl\u00e8me sur l'installation ou le montage",
|
36 |
+
"21": "Installation et montage - Produits incompatibles",
|
37 |
+
"22": "Probl\u00e8mes sur les produits - Allumage",
|
38 |
+
"23": "Probl\u00e8mes sur les produits - Autres d\u00e9fauts \u00e0 l'exploitation",
|
39 |
+
"24": "Probl\u00e8mes sur les produits - Clignotement",
|
40 |
+
"25": "Probl\u00e8mes sur les produits - Configuration et appairage avec une application",
|
41 |
+
"26": "Probl\u00e8mes sur les produits - Demandes urgentes",
|
42 |
+
"27": "Probl\u00e8mes sur les produits - D\u00e9fauts \u00e0 la mise en service",
|
43 |
+
"28": "Probl\u00e8mes sur les produits - Prises et connecteurs",
|
44 |
+
"29": "Probl\u00e8mes sur les produits - Probl\u00e8mes de surchauffe",
|
45 |
+
"30": "Probl\u00e8mes sur les produits - Produits bruyants",
|
46 |
+
"31": "Probl\u00e8mes sur les produits - Produits hors service",
|
47 |
+
"32": "Probl\u00e8mes sur les produits - Recharge et connexion au t\u00e9l\u00e9phone / Bluetooth",
|
48 |
+
"33": "Probl\u00e8mes sur les produits - Retours et \u00e9changes de produits",
|
49 |
+
"34": "Probl\u00e8mes sur les produits - Retours et \u00e9changes de produits"
|
50 |
+
},
|
51 |
+
"initializer_range": 0.02,
|
52 |
+
"intermediate_size": 4096,
|
53 |
+
"label2id": {
|
54 |
+
"Commercialisation des produits - Aide au choix d'un produit": 0,
|
55 |
+
"Commercialisation des produits - Disponibilit\u00e9 des couleurs": 1,
|
56 |
+
"Commercialisation des produits - Disponibilit\u00e9 des produits": 2,
|
57 |
+
"Commercialisation des produits - Gamme arr\u00eat\u00e9e ou en fin de commercialisation": 3,
|
58 |
+
"Commercialisation des produits - Produits morts": 4,
|
59 |
+
"Commercialisation des produits - Recherche d'un point de vente": 5,
|
60 |
+
"Commercialisation des produits - Renseignement sur la compatibilit\u00e9": 6,
|
61 |
+
"Commercialisation des produits - Renseignement sur les diff\u00e9rences techniques": 7,
|
62 |
+
"Commercialisation des produits - R\u00e9f\u00e9rences non / pas encore commercialis\u00e9es": 8,
|
63 |
+
"Commercialisation des produits - Stock limit\u00e9": 9,
|
64 |
+
"Commercialisation des produits - \u00c9quivalences & Solutions de substitution": 10,
|
65 |
+
"Informations techniques - Besoin de pr\u00e9cisions compl\u00e9mentaires ou informations manquantes": 11,
|
66 |
+
"Informations techniques - Compatibilit\u00e9": 12,
|
67 |
+
"Informations techniques - Fiche technique": 13,
|
68 |
+
"Informations techniques - Fonctionnement des produits": 14,
|
69 |
+
"Informations techniques - Informations sur la norme": 15,
|
70 |
+
"Informations techniques - Plage de variation": 16,
|
71 |
+
"Informations techniques - Produits introuvables sur le site web": 17,
|
72 |
+
"Informations techniques - Remplacement de produits": 18,
|
73 |
+
"Installation et montage - Demandes d'explication de montage": 19,
|
74 |
+
"Installation et montage - Difficult\u00e9 et probl\u00e8me sur l'installation ou le montage": 20,
|
75 |
+
"Installation et montage - Produits incompatibles": 21,
|
76 |
+
"Probl\u00e8mes sur les produits - Allumage": 22,
|
77 |
+
"Probl\u00e8mes sur les produits - Autres d\u00e9fauts \u00e0 l'exploitation": 23,
|
78 |
+
"Probl\u00e8mes sur les produits - Clignotement": 24,
|
79 |
+
"Probl\u00e8mes sur les produits - Configuration et appairage avec une application": 25,
|
80 |
+
"Probl\u00e8mes sur les produits - Demandes urgentes": 26,
|
81 |
+
"Probl\u00e8mes sur les produits - D\u00e9fauts \u00e0 la mise en service": 27,
|
82 |
+
"Probl\u00e8mes sur les produits - Prises et connecteurs": 28,
|
83 |
+
"Probl\u00e8mes sur les produits - Probl\u00e8mes de surchauffe": 29,
|
84 |
+
"Probl\u00e8mes sur les produits - Produits bruyants": 30,
|
85 |
+
"Probl\u00e8mes sur les produits - Produits hors service": 31,
|
86 |
+
"Probl\u00e8mes sur les produits - Recharge et connexion au t\u00e9l\u00e9phone / Bluetooth": 32,
|
87 |
+
"Probl\u00e8mes sur les produits - Retours et \u00e9changes de produits": 33,
|
88 |
+
"Probl\u00e8mes sur les produits - Retours et \u00e9changes de produits": 34
|
89 |
+
},
|
90 |
+
"layer_norm_eps": 1e-05,
|
91 |
+
"max_length": 192,
|
92 |
+
"max_position_embeddings": 514,
|
93 |
+
"model_type": "camembert",
|
94 |
+
"num_attention_heads": 16,
|
95 |
+
"num_hidden_layers": 24,
|
96 |
+
"output_past": true,
|
97 |
+
"pad_token_id": 1,
|
98 |
+
"padding": "max_length",
|
99 |
+
"position_embedding_type": "absolute",
|
100 |
+
"problem_type": "single_label_classification",
|
101 |
+
"torch_dtype": "float32",
|
102 |
+
"transformers_version": "4.15.0",
|
103 |
+
"type_vocab_size": 1,
|
104 |
+
"use_cache": true,
|
105 |
+
"vocab_size": 32005
|
106 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ee94c9b76469218399fc5a51c46b345e5545975dfeb17db88679034cd05140e5
|
3 |
+
size 1346953645
|
sample_input.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f3dc0bbe8dca4e93e1147960f38febdf70cfaa48b48b513c5a4912bd11f483cd
|
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": "AutoTrain", "sp_model_kwargs": {}, "tokenizer_class": "CamembertTokenizer"}
|