system HF Staff commited on
Commit
bbf2f52
·
1 Parent(s): ec4a1eb

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
+ - de
7
+ widget:
8
+ - text: "I love AutoTrain 🤗"
9
+ datasets:
10
+ - peanutacake/autotrain-data-ajmc_ner_de
11
+ co2_eq_emissions:
12
+ emissions: 1.2159543426004786
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ - Problem type: Entity Extraction
18
+ - Model ID: 53413125973
19
+ - CO2 Emissions (in grams): 1.2160
20
+
21
+ ## Validation Metrics
22
+
23
+ - Loss: 0.109
24
+ - Accuracy: 0.976
25
+ - Precision: 0.000
26
+ - Recall: 0.000
27
+ - F1: 0.000
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/peanutacake/autotrain-ajmc_ner_de-53413125973
35
+ ```
36
+
37
+ Or Python API:
38
+
39
+ ```
40
+ from transformers import AutoModelForTokenClassification, AutoTokenizer
41
+
42
+ model = AutoModelForTokenClassification.from_pretrained("peanutacake/autotrain-ajmc_ner_de-53413125973", use_auth_token=True)
43
+
44
+ tokenizer = AutoTokenizer.from_pretrained("peanutacake/autotrain-ajmc_ner_de-53413125973", 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,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "_num_labels": 12,
4
+ "architectures": [
5
+ "ElectraForTokenClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "embedding_size": 1024,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 1024,
13
+ "id2label": {
14
+ "0": "0",
15
+ "1": "1",
16
+ "2": "10",
17
+ "3": "11",
18
+ "4": "12",
19
+ "5": "2",
20
+ "6": "3",
21
+ "7": "4",
22
+ "8": "5",
23
+ "9": "6",
24
+ "10": "7",
25
+ "11": "9"
26
+ },
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 4096,
29
+ "label2id": {
30
+ "0": 0,
31
+ "1": 1,
32
+ "10": 2,
33
+ "11": 3,
34
+ "12": 4,
35
+ "2": 5,
36
+ "3": 6,
37
+ "4": 7,
38
+ "5": 8,
39
+ "6": 9,
40
+ "7": 10,
41
+ "9": 11
42
+ },
43
+ "layer_norm_eps": 1e-12,
44
+ "max_length": 128,
45
+ "max_position_embeddings": 512,
46
+ "model_type": "electra",
47
+ "num_attention_heads": 16,
48
+ "num_hidden_layers": 24,
49
+ "pad_token_id": 0,
50
+ "padding": "max_length",
51
+ "position_embedding_type": "absolute",
52
+ "summary_activation": "gelu",
53
+ "summary_last_dropout": 0.1,
54
+ "summary_type": "first",
55
+ "summary_use_proj": true,
56
+ "torch_dtype": "float32",
57
+ "transformers_version": "4.28.1",
58
+ "type_vocab_size": 2,
59
+ "use_cache": true,
60
+ "vocab_size": 31102
61
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8908a16ba7cec27d1cb292c4c12170e1cc6c92fd4505e380edff8ffbe0be752b
3
+ size 1338933357
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3da22011dac9fd48c033ea174c477e544f8c791754a73bcf225b3ed6ca2d45c
3
+ size 729326
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": false,
6
+ "mask_token": "[MASK]",
7
+ "max_len": 512,
8
+ "model_max_length": 512,
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "strip_accents": false,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "ElectraTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff