system HF staff commited on
Commit
0e9c78a
1 Parent(s): 729c8be

Commit From AutoTrain

Browse files
.gitattributes CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
36
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - token-classification
5
+ language:
6
+ - unk
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - tinyYhorm/autotrain-data-2-xlmr-r
11
+ co2_eq_emissions:
12
+ emissions: 1.191588461069133
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Entity Extraction
18
+ - Model ID: 53880126783
19
+ - CO2 Emissions (in grams): 1.1916
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.186
24
+ - Accuracy: 0.957
25
+ - Precision: 0.872
26
+ - Recall: 0.877
27
+ - F1: 0.875
28
+
29
+ ## Usage
30
+
31
+ You can use cURL to access this model:
32
+
33
+ ```
34
+ $ 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/tinyYhorm/autotrain-2-xlmr-r-53880126783
35
+ ```
36
+
37
+ Or Python API:
38
+
39
+ ```
40
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
41
+
42
+ model = AutoModelForTokenClassification.from_pretrained("tinyYhorm/autotrain-2-xlmr-r-53880126783", use_auth_token=True)
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("tinyYhorm/autotrain-2-xlmr-r-53880126783", use_auth_token=True)
45
+
46
+ inputs = tokenizer("I love AutoTrain", return_tensors="pt")
47
+
48
+ outputs = model(**inputs)
49
+ ```
config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 21,
4
+ "architectures": [
5
+ "XLMRobertaForTokenClassification"
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": "B-Case",
16
+ "1": "B-Commute",
17
+ "2": "B-Date",
18
+ "3": "B-H_Address",
19
+ "4": "B-L_Address",
20
+ "5": "B-Quarantine",
21
+ "6": "B-Relationship",
22
+ "7": "B-Time",
23
+ "8": "B-Transportation",
24
+ "9": "B-W_Address",
25
+ "10": "I-Case",
26
+ "11": "I-Commute",
27
+ "12": "I-Date",
28
+ "13": "I-H_Address",
29
+ "14": "I-L_Address",
30
+ "15": "I-Quarantine",
31
+ "16": "I-Relationship",
32
+ "17": "I-Time",
33
+ "18": "I-Transportation",
34
+ "19": "I-W_Address",
35
+ "20": "O"
36
+ },
37
+ "initializer_range": 0.02,
38
+ "intermediate_size": 3072,
39
+ "label2id": {
40
+ "B-Case": 0,
41
+ "B-Commute": 1,
42
+ "B-Date": 2,
43
+ "B-H_Address": 3,
44
+ "B-L_Address": 4,
45
+ "B-Quarantine": 5,
46
+ "B-Relationship": 6,
47
+ "B-Time": 7,
48
+ "B-Transportation": 8,
49
+ "B-W_Address": 9,
50
+ "I-Case": 10,
51
+ "I-Commute": 11,
52
+ "I-Date": 12,
53
+ "I-H_Address": 13,
54
+ "I-L_Address": 14,
55
+ "I-Quarantine": 15,
56
+ "I-Relationship": 16,
57
+ "I-Time": 17,
58
+ "I-Transportation": 18,
59
+ "I-W_Address": 19,
60
+ "O": 20
61
+ },
62
+ "layer_norm_eps": 1e-05,
63
+ "max_length": 192,
64
+ "max_position_embeddings": 514,
65
+ "model_type": "xlm-roberta",
66
+ "num_attention_heads": 12,
67
+ "num_hidden_layers": 12,
68
+ "output_past": true,
69
+ "pad_token_id": 1,
70
+ "padding": "max_length",
71
+ "position_embedding_type": "absolute",
72
+ "torch_dtype": "float32",
73
+ "transformers_version": "4.28.1",
74
+ "type_vocab_size": 1,
75
+ "use_cache": true,
76
+ "vocab_size": 250002
77
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56877b5d5c51f82526839ff5abc27ffe78870bf2e39485bfffcfa26c1da56372
3
+ size 1109949549
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07649e8c4d51e13265acf7936513302fa2677b12be981da2349128e583b3c5d2
3
+ size 17082925
tokenizer_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "mask_token": {
7
+ "__type": "AddedToken",
8
+ "content": "<mask>",
9
+ "lstrip": true,
10
+ "normalized": true,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "model_max_length": 512,
15
+ "pad_token": "<pad>",
16
+ "sep_token": "</s>",
17
+ "tokenizer_class": "XLMRobertaTokenizer",
18
+ "unk_token": "<unk>"
19
+ }