avkumararun commited on
Commit
a7e9a2a
·
verified ·
1 Parent(s): c718693

avkumararun/bert-tiny

Browse files
Files changed (6) hide show
  1. README.md +71 -0
  2. config.json +43 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +14 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: prajjwal1/bert-tiny
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ - precision
11
+ - recall
12
+ model-index:
13
+ - name: results
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # results
21
+
22
+ This model is a fine-tuned version of [prajjwal1/bert-tiny](https://huggingface.co/prajjwal1/bert-tiny) on the None dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 1.0985
25
+ - Accuracy: 0.91
26
+ - F1: 0.9096
27
+ - Precision: 0.9139
28
+ - Recall: 0.9123
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 2e-05
48
+ - train_batch_size: 16
49
+ - eval_batch_size: 16
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 5
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
58
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|
59
+ | No log | 1.0 | 125 | 1.5109 | 0.59 | 0.6026 | 0.7073 | 0.5895 |
60
+ | No log | 2.0 | 250 | 1.3482 | 0.828 | 0.8293 | 0.8313 | 0.8301 |
61
+ | No log | 3.0 | 375 | 1.2057 | 0.882 | 0.8806 | 0.8837 | 0.8850 |
62
+ | 1.4080 | 4.0 | 500 | 1.1231 | 0.906 | 0.9056 | 0.9099 | 0.9085 |
63
+ | 1.4080 | 5.0 | 625 | 1.0985 | 0.91 | 0.9096 | 0.9139 | 0.9123 |
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - Transformers 5.0.0
69
+ - Pytorch 2.9.0+cpu
70
+ - Datasets 4.0.0
71
+ - Tokenizers 0.22.2
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 128,
14
+ "id2label": {
15
+ "0": "QUESTION",
16
+ "1": "STATEMENT",
17
+ "2": "REQUIREMENT",
18
+ "3": "GREETING",
19
+ "4": "FEEDBACK"
20
+ },
21
+ "initializer_range": 0.02,
22
+ "intermediate_size": 512,
23
+ "is_decoder": false,
24
+ "label2id": {
25
+ "FEEDBACK": 4,
26
+ "GREETING": 3,
27
+ "QUESTION": 0,
28
+ "REQUIREMENT": 2,
29
+ "STATEMENT": 1
30
+ },
31
+ "layer_norm_eps": 1e-12,
32
+ "max_position_embeddings": 512,
33
+ "model_type": "bert",
34
+ "num_attention_heads": 2,
35
+ "num_hidden_layers": 2,
36
+ "pad_token_id": 0,
37
+ "problem_type": "single_label_classification",
38
+ "tie_word_embeddings": true,
39
+ "transformers_version": "5.0.0",
40
+ "type_vocab_size": 2,
41
+ "use_cache": false,
42
+ "vocab_size": 30522
43
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfb86fba5d902b5a1747d4ea6191109b70adc575aef2ddbb70b45116886840d8
3
+ size 17550852
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": false,
5
+ "is_local": false,
6
+ "mask_token": "[MASK]",
7
+ "model_max_length": 1000000000000000019884624838656,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "strip_accents": null,
11
+ "tokenize_chinese_chars": true,
12
+ "tokenizer_class": "BertTokenizer",
13
+ "unk_token": "[UNK]"
14
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29da7030cf5f3ca4643176bcdd20063df80298be4e2d012719bb352af72527d8
3
+ size 5201