CatBarks commited on
Commit
6c9adcb
·
verified ·
1 Parent(s): 4c5c78c

CatBarks/bert_wes_bce_2_2

Browse files
Files changed (4) hide show
  1. README.md +78 -0
  2. config.json +27 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ model-index:
10
+ - name: bert_base_for_whole_train_result_Spam-Ham2_2
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # bert_base_for_whole_train_result_Spam-Ham2_2
18
+
19
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.0345
22
+ - Accuracy: 0.995
23
+ - F1: 0.9953
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0001
43
+ - train_batch_size: 64
44
+ - eval_batch_size: 64
45
+ - seed: 42
46
+ - gradient_accumulation_steps: 64
47
+ - total_train_batch_size: 4096
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - lr_scheduler_warmup_steps: 1000
51
+ - num_epochs: 100
52
+
53
+ ### Training results
54
+
55
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
56
+ |:-------------:|:-------:|:----:|:---------------:|:--------:|:------:|
57
+ | 0.6648 | 6.8817 | 50 | 0.5291 | 0.796 | 0.7908 |
58
+ | 0.2633 | 13.7634 | 100 | 0.0799 | 0.98 | 0.9812 |
59
+ | 0.0272 | 20.6452 | 150 | 0.0318 | 0.994 | 0.9944 |
60
+ | 0.0049 | 27.5269 | 200 | 0.0321 | 0.9945 | 0.9948 |
61
+ | 0.002 | 34.4086 | 250 | 0.0402 | 0.9935 | 0.9939 |
62
+ | 0.0012 | 41.2903 | 300 | 0.0385 | 0.993 | 0.9934 |
63
+ | 0.0008 | 48.1720 | 350 | 0.0502 | 0.99 | 0.9906 |
64
+ | 0.0012 | 55.0538 | 400 | 0.0391 | 0.9935 | 0.9939 |
65
+ | 0.0016 | 61.9355 | 450 | 0.0315 | 0.995 | 0.9953 |
66
+ | 0.0002 | 68.8172 | 500 | 0.0309 | 0.995 | 0.9953 |
67
+ | 0.0001 | 75.6989 | 550 | 0.0308 | 0.9955 | 0.9958 |
68
+ | 0.0001 | 82.5806 | 600 | 0.0338 | 0.9955 | 0.9958 |
69
+ | 0.0 | 89.4624 | 650 | 0.0339 | 0.995 | 0.9953 |
70
+ | 0.0 | 96.3441 | 700 | 0.0345 | 0.995 | 0.9953 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.40.0
76
+ - Pytorch 2.4.1+cu121
77
+ - Datasets 3.1.0
78
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "problem_type": "single_label_classification",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.40.0",
24
+ "type_vocab_size": 2,
25
+ "use_cache": true,
26
+ "vocab_size": 30522
27
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:558959c4d83e583bd1b88ac177a911fcbe580dd56761a9a2629ab5b44b231a89
3
+ size 437958648
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d85d7c6b3200f36a98227ca2c0f00cb1e5a213ce1b1ce25858e9eda0dba2c534
3
+ size 4984