tuna2134 commited on
Commit
5e99ecf
·
verified ·
1 Parent(s): 450a86c

tuna2134/gigazine-title-classification

Browse files
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ base_model: tohoku-nlp/bert-base-japanese
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: gigazine-title-classification
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # gigazine-title-classification
17
+
18
+ This model is a fine-tuned version of [tohoku-nlp/bert-base-japanese](https://huggingface.co/tohoku-nlp/bert-base-japanese) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 1.4894
21
+ - Accuracy: 0.617
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 32
45
+ - total_train_batch_size: 256
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 3
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
53
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
54
+ | 0.5588 | 0.768 | 3 | 1.5196 | 0.602 |
55
+ | 0.3835 | 1.792 | 7 | 1.4909 | 0.61 |
56
+ | 0.2563 | 2.304 | 9 | 1.4894 | 0.617 |
57
+
58
+
59
+ ### Framework versions
60
+
61
+ - Transformers 4.42.4
62
+ - Pytorch 2.3.1+cu121
63
+ - Datasets 2.20.0
64
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "tohoku-nlp/bert-base-japanese",
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.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8",
21
+ "9": "LABEL_9",
22
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12",
25
+ "13": "LABEL_13",
26
+ "14": "LABEL_14",
27
+ "15": "LABEL_15",
28
+ "16": "LABEL_16",
29
+ "17": "LABEL_17",
30
+ "18": "LABEL_18",
31
+ "19": "LABEL_19",
32
+ "20": "LABEL_20",
33
+ "21": "LABEL_21",
34
+ "22": "LABEL_22",
35
+ "23": "LABEL_23",
36
+ "24": "LABEL_24",
37
+ "25": "LABEL_25",
38
+ "26": "LABEL_26",
39
+ "27": "LABEL_27"
40
+ },
41
+ "initializer_range": 0.02,
42
+ "intermediate_size": 3072,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1,
46
+ "LABEL_10": 10,
47
+ "LABEL_11": 11,
48
+ "LABEL_12": 12,
49
+ "LABEL_13": 13,
50
+ "LABEL_14": 14,
51
+ "LABEL_15": 15,
52
+ "LABEL_16": 16,
53
+ "LABEL_17": 17,
54
+ "LABEL_18": 18,
55
+ "LABEL_19": 19,
56
+ "LABEL_2": 2,
57
+ "LABEL_20": 20,
58
+ "LABEL_21": 21,
59
+ "LABEL_22": 22,
60
+ "LABEL_23": 23,
61
+ "LABEL_24": 24,
62
+ "LABEL_25": 25,
63
+ "LABEL_26": 26,
64
+ "LABEL_27": 27,
65
+ "LABEL_3": 3,
66
+ "LABEL_4": 4,
67
+ "LABEL_5": 5,
68
+ "LABEL_6": 6,
69
+ "LABEL_7": 7,
70
+ "LABEL_8": 8,
71
+ "LABEL_9": 9
72
+ },
73
+ "layer_norm_eps": 1e-12,
74
+ "max_position_embeddings": 512,
75
+ "model_type": "bert",
76
+ "num_attention_heads": 12,
77
+ "num_hidden_layers": 12,
78
+ "pad_token_id": 0,
79
+ "position_embedding_type": "absolute",
80
+ "problem_type": "single_label_classification",
81
+ "tokenizer_class": "BertJapaneseTokenizer",
82
+ "torch_dtype": "float32",
83
+ "transformers_version": "4.42.4",
84
+ "type_vocab_size": 2,
85
+ "use_cache": true,
86
+ "vocab_size": 32000
87
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de055ba5a75828d572ddb9ff43337230b1f468a2978b40fd4b1bf16e1ba15927
3
+ size 442579040
runs/Aug06_13-59-10_3905c4c4c630/events.out.tfevents.1722952753.3905c4c4c630.4669.16 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9633023f2d8d531e17b93117cba9a8a3b88b48b36d6b32cfd0971adcbf60d154
3
+ size 8070
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92ebd0c3c8adaacc09fece4c94c66d01121df1347bf6e3efaac089cc4330e495
3
+ size 5176