iliazlobin commited on
Commit
f9eaa6a
1 Parent(s): 064c9b0

complete: train_size: {train_size}, batch_size: {batch_size}, per_epoch_steps: {per_epoch_steps}, epochs: {epochs}, epoch_total_steps: {epoch_total_steps}

Browse files
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: openai-community/gpt2-large
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - rouge
8
+ model-index:
9
+ - name: gpt2-large-coedit
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
+ # gpt2-large-coedit
17
+
18
+ This model is a fine-tuned version of [openai-community/gpt2-large](https://huggingface.co/openai-community/gpt2-large) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.9215
21
+ - Rouge1: 0.4818
22
+ - Rouge2: 0.3649
23
+ - Rougel: 0.4555
24
+ - Rougelsum: 0.4643
25
+ - Sacreblue: 19.1714
26
+ - Memory Used: 68475.5
27
+ - Cuda Allocated: 3082.6328
28
+ - Cuda Reserved: 61060.0
29
+ - Ram Usage: 13976.5117
30
+ - Em: 0.0
31
+ - Gen Len: 82.1798
32
+
33
+ ## Model description
34
+
35
+ More information needed
36
+
37
+ ## Intended uses & limitations
38
+
39
+ More information needed
40
+
41
+ ## Training and evaluation data
42
+
43
+ More information needed
44
+
45
+ ## Training procedure
46
+
47
+ ### Training hyperparameters
48
+
49
+ The following hyperparameters were used during training:
50
+ - learning_rate: 2e-05
51
+ - train_batch_size: 150
52
+ - eval_batch_size: 4
53
+ - seed: 42
54
+ - gradient_accumulation_steps: 4
55
+ - total_train_batch_size: 600
56
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
57
+ - lr_scheduler_type: linear
58
+ - lr_scheduler_warmup_steps: 1
59
+ - num_epochs: 2
60
+ - mixed_precision_training: Native AMP
61
+
62
+ ### Training results
63
+
64
+ | Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Sacreblue | Memory Used | Cuda Allocated | Cuda Reserved | Ram Usage | Em | Gen Len |
65
+ |:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|:---------:|:-----------:|:--------------:|:-------------:|:----------:|:---:|:-------:|
66
+ | 0.8724 | 0.47 | 50 | 1.0274 | 0.4653 | 0.3509 | 0.4382 | 0.4459 | 19.0412 | 68475.5 | 3082.605 | 61060.0 | 5708.957 | 0.0 | 82.0895 |
67
+ | 0.7407 | 0.94 | 100 | 0.9499 | 0.4825 | 0.3651 | 0.4557 | 0.4656 | 19.2975 | 68475.5 | 3082.6152 | 61060.0 | 13842.9336 | 0.0 | 81.3952 |
68
+ | 0.6964 | 1.41 | 150 | 0.9318 | 0.4783 | 0.3627 | 0.452 | 0.4605 | 19.418 | 68475.5 | 3082.6182 | 61060.0 | 13958.2773 | 0.0 | 81.0295 |
69
+ | 0.6846 | 1.88 | 200 | 0.9215 | 0.4818 | 0.3649 | 0.4555 | 0.4643 | 19.1714 | 68475.5 | 3082.6328 | 61060.0 | 13976.5117 | 0.0 | 82.1798 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.39.3
75
+ - Pytorch 2.2.2
76
+ - Datasets 2.18.0
77
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "openai-community/gpt2-large",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 1280,
16
+ "n_head": 20,
17
+ "n_inner": null,
18
+ "n_layer": 36,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 50
33
+ }
34
+ },
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.39.3",
37
+ "use_cache": false,
38
+ "vocab_size": 50257
39
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "max_new_tokens": 350,
6
+ "pad_token_id": 50256,
7
+ "padding_side": "left",
8
+ "transformers_version": "4.39.3"
9
+ }
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:f9b42507ab4940ddee24f64c2aacc25de3566da119c0b67c0b8662f7dc477b6e
3
+ size 3096165928
runs/Apr21_00-17-16_workstation/events.out.tfevents.1713658636.workstation.89102.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88e4b19ad59505aa8cce799015df9e8d916e4a5847c959a59ccd02b253983e34
3
+ size 10379
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:2edbeab06b2e8fef6a91e7becae217b90f06c61c251ad80cb955b2fad9ed5d91
3
+ size 5048
vocab.json ADDED
The diff for this file is too large to render. See raw diff