michaelfeil commited on
Commit
9024c2c
·
1 Parent(s): d37c8a0

initialize random

Browse files
README.md CHANGED
@@ -1,3 +1,60 @@
1
  ---
2
  license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: tiny-classification
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # tiny-classification
16
+
17
+ This model is a fine-tuned version of [prajjwal1/bert-tiny](https://huggingface.co/prajjwal1/bert-tiny) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2083
20
+ - Accuracy: 0.9365
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 2e-05
40
+ - train_batch_size: 64
41
+ - eval_batch_size: 128
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 2
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
50
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
51
+ | 0.2304 | 1.0 | 45257 | 0.2162 | 0.9343 |
52
+ | 0.2181 | 2.0 | 90514 | 0.2083 | 0.9365 |
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.26.0
58
+ - Pytorch 1.13.1+cu117
59
+ - Datasets 2.9.0
60
+ - Tokenizers 0.13.2
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "michael/dummy-classifier",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.05,
10
+ "hidden_size": 128,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "1",
14
+ "2": "2",
15
+ "3": "3",
16
+ "4": "4",
17
+ "5": "5",
18
+ "6": "6",
19
+ "7": "7",
20
+ "8": "8",
21
+ "9": "9",
22
+ "10": "10",
23
+ "11": "11",
24
+ "12": "12",
25
+ "13": "13"
26
+ },
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 512,
29
+ "label2id": {
30
+ "ADDRESS": 10,
31
+ "CITY": 7,
32
+ "COMPANY": 8,
33
+ "COUNTRY": 4,
34
+ "EMAIL": 2,
35
+ "INDUSTRY": 9,
36
+ "JOB": 1,
37
+ "NAME": 11,
38
+ "O": 0,
39
+ "PHONE": 3,
40
+ "POSTAL_CODE": 5,
41
+ "REVIEW": 13,
42
+ "STATE": 6,
43
+ "SUMMARY": 12
44
+ },
45
+ "layer_norm_eps": 1e-12,
46
+ "max_position_embeddings": 512,
47
+ "model_type": "bert",
48
+ "num_attention_heads": 2,
49
+ "num_hidden_layers": 2,
50
+ "pad_token_id": 0,
51
+ "position_embedding_type": "absolute",
52
+ "problem_type": "single_label_classification",
53
+ "torch_dtype": "float32",
54
+ "transformers_version": "4.26.0",
55
+ "type_vocab_size": 2,
56
+ "use_cache": true,
57
+ "vocab_size": 30522
58
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67b06aa5161ce2b46b2e27deeef8014b5a7aa609e56ab2388881231f231e6bce
3
+ size 17559696
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
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "name_or_path": "prajjwal1/bert-tiny",
8
+ "never_split": null,
9
+ "pad_token": "[PAD]",
10
+ "sep_token": "[SEP]",
11
+ "special_tokens_map_file": null,
12
+ "strip_accents": null,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff