arnabdhar commited on
Commit
3407670
1 Parent(s): 5b72fc8

End of training

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ base_model: gpt2
6
+ tags:
7
+ - pytorch
8
+ - GPT2ForSequenceClassification
9
+ - generated_from_trainer
10
+ metrics:
11
+ - accuracy
12
+ - matthews_correlation
13
+ model-index:
14
+ - name: GPT2-genre-detection
15
+ results: []
16
+ ---
17
+
18
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
19
+ should probably proofread and complete it, then remove this comment. -->
20
+
21
+ # GPT2-genre-detection
22
+
23
+ This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the datadrivenscience/movie-genre-prediction dataset.
24
+ It achieves the following results on the evaluation set:
25
+ - Loss: 1.5267
26
+ - Accuracy: 0.4593
27
+ - Matthews Correlation: 0.1010
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 2e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 32
49
+ - seed: 85855289
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: cosine
52
+ - lr_scheduler_warmup_ratio: 0.05
53
+ - num_epochs: 2
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Matthews Correlation |
58
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:--------------------:|
59
+ | 1.5765 | 1.0 | 10125 | 1.5562 | 0.4589 | 0.0899 |
60
+ | 1.5058 | 2.0 | 20250 | 1.5267 | 0.4593 | 0.1010 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.36.2
66
+ - Pytorch 2.1.0+cu121
67
+ - Datasets 2.16.0
68
+ - Tokenizers 0.15.0
config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2ForSequenceClassification"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "id2label": {
12
+ "0": "horror",
13
+ "1": "adventure",
14
+ "2": "action",
15
+ "3": "crime",
16
+ "4": "mystery",
17
+ "5": "family",
18
+ "6": "scifi",
19
+ "7": "thriller",
20
+ "8": "fantasy",
21
+ "9": "romance"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "label2id": {
25
+ "action": 2,
26
+ "adventure": 1,
27
+ "crime": 3,
28
+ "family": 5,
29
+ "fantasy": 8,
30
+ "horror": 0,
31
+ "mystery": 4,
32
+ "romance": 9,
33
+ "scifi": 6,
34
+ "thriller": 7
35
+ },
36
+ "layer_norm_epsilon": 1e-05,
37
+ "model_type": "gpt2",
38
+ "n_ctx": 1024,
39
+ "n_embd": 768,
40
+ "n_head": 12,
41
+ "n_inner": null,
42
+ "n_layer": 12,
43
+ "n_positions": 1024,
44
+ "pad_token_id": 50256,
45
+ "problem_type": "single_label_classification",
46
+ "reorder_and_upcast_attn": false,
47
+ "resid_pdrop": 0.1,
48
+ "scale_attn_by_inverse_layer_idx": false,
49
+ "scale_attn_weights": true,
50
+ "summary_activation": null,
51
+ "summary_first_dropout": 0.1,
52
+ "summary_proj_to_labels": true,
53
+ "summary_type": "cls_index",
54
+ "summary_use_proj": true,
55
+ "task_specific_params": {
56
+ "text-generation": {
57
+ "do_sample": true,
58
+ "max_length": 50
59
+ }
60
+ },
61
+ "torch_dtype": "float32",
62
+ "transformers_version": "4.36.2",
63
+ "use_cache": true,
64
+ "vocab_size": 50257
65
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bfa645ef4b477106c3dd7f75e63c47ae1b7da421362066514e341216d613c854
3
+ size 497805008
runs/Dec23_06-55-57_0664e86b35ce/events.out.tfevents.1703314564.0664e86b35ce.711.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edbab931e62c56bda7b38599164eaef4e24ddb275e95c0c3d25db9ba015c027c
3
+ size 38036
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ }
12
+ },
13
+ "bos_token": "<|endoftext|>",
14
+ "clean_up_tokenization_spaces": true,
15
+ "eos_token": "<|endoftext|>",
16
+ "model_max_length": 1024,
17
+ "pad_token": "<|endoftext|>",
18
+ "tokenizer_class": "GPT2Tokenizer",
19
+ "unk_token": "<|endoftext|>"
20
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc265261665e43c5feef7948f5ad264fe7eb2c302241a9b1ab59f0b3c6e04c65
3
+ size 4728
vocab.json ADDED
The diff for this file is too large to render. See raw diff