system HF staff commited on
Commit
d27365c
·
1 Parent(s): ce8f9f7

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
+ - Andrei95/autotrain-data-jobberta-20
11
+ co2_eq_emissions:
12
+ emissions: 0.03057606391853882
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Entity Extraction
18
+ - Model ID: 3670698025
19
+ - CO2 Emissions (in grams): 0.0306
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.235
24
+ - Accuracy: 0.917
25
+ - Precision: 0.602
26
+ - Recall: 0.703
27
+ - F1: 0.649
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/Andrei95/autotrain-jobberta-20-3670698025
35
+ ```
36
+
37
+ Or Python API:
38
+
39
+ ```
40
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
41
+
42
+ model = AutoModelForTokenClassification.from_pretrained("Andrei95/autotrain-jobberta-20-3670698025", use_auth_token=True)
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("Andrei95/autotrain-jobberta-20-3670698025", 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,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 7,
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": 1024,
14
+ "id2label": {
15
+ "0": "B-Knowledge",
16
+ "1": "B-Skill",
17
+ "2": "B-Skill-Knowledge",
18
+ "3": "I-Knowledge",
19
+ "4": "I-Skill",
20
+ "5": "I-Skill-Knowledge",
21
+ "6": "O"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 4096,
25
+ "label2id": {
26
+ "B-Knowledge": 0,
27
+ "B-Skill": 1,
28
+ "B-Skill-Knowledge": 2,
29
+ "I-Knowledge": 3,
30
+ "I-Skill": 4,
31
+ "I-Skill-Knowledge": 5,
32
+ "O": 6
33
+ },
34
+ "layer_norm_eps": 1e-05,
35
+ "max_length": 256,
36
+ "max_position_embeddings": 514,
37
+ "model_type": "xlm-roberta",
38
+ "num_attention_heads": 16,
39
+ "num_hidden_layers": 24,
40
+ "output_past": true,
41
+ "pad_token_id": 1,
42
+ "padding": "max_length",
43
+ "position_embedding_type": "absolute",
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.25.1",
46
+ "type_vocab_size": 1,
47
+ "use_cache": true,
48
+ "vocab_size": 250002
49
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e84b63f670fe036116a843bd113a3bd2b2f4325c4c063c56c01751cc411e99e9
3
+ size 2235531373
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:b93bf61272f75c0a0b96b85fa262d2242e8a46008d76095386e98675f0bdd119
3
+ size 17082925
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "__type": "AddedToken",
7
+ "content": "<mask>",
8
+ "lstrip": true,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "model_max_length": 512,
14
+ "name_or_path": "AutoTrain",
15
+ "pad_token": "<pad>",
16
+ "sep_token": "</s>",
17
+ "special_tokens_map_file": null,
18
+ "tokenizer_class": "XLMRobertaTokenizer",
19
+ "unk_token": "<unk>"
20
+ }