Vangmayy commited on
Commit
5925014
·
verified ·
1 Parent(s): a950ebe

Bollywood-Summary-Generator

Browse files
Files changed (5) hide show
  1. README.md +8 -8
  2. config.json +31 -65
  3. generation_config.json +5 -9
  4. model.safetensors +2 -2
  5. training_args.bin +1 -1
README.md CHANGED
@@ -1,19 +1,19 @@
1
  ---
2
- license: apache-2.0
3
- base_model: facebook/bart-large
4
  tags:
5
  - generated_from_trainer
6
  model-index:
7
- - name: results
8
  results: []
9
  ---
10
 
11
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
  should probably proofread and complete it, then remove this comment. -->
13
 
14
- # results
15
 
16
- This model is a fine-tuned version of [facebook/bart-large](https://huggingface.co/facebook/bart-large) on an unknown dataset.
17
 
18
  ## Model description
19
 
@@ -33,12 +33,12 @@ More information needed
33
 
34
  The following hyperparameters were used during training:
35
  - learning_rate: 5e-05
36
- - train_batch_size: 4
37
- - eval_batch_size: 4
38
  - seed: 42
39
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
40
  - lr_scheduler_type: linear
41
- - num_epochs: 1
42
 
43
  ### Training results
44
 
 
1
  ---
2
+ license: mit
3
+ base_model: gpt2
4
  tags:
5
  - generated_from_trainer
6
  model-index:
7
+ - name: Bollywood-Summary-Generator
8
  results: []
9
  ---
10
 
11
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
  should probably proofread and complete it, then remove this comment. -->
13
 
14
+ # Bollywood-Summary-Generator
15
 
16
+ This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
17
 
18
  ## Model description
19
 
 
33
 
34
  The following hyperparameters were used during training:
35
  - learning_rate: 5e-05
36
+ - train_batch_size: 5
37
+ - eval_batch_size: 5
38
  - seed: 42
39
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
40
  - lr_scheduler_type: linear
41
+ - num_epochs: 3
42
 
43
  ### Training results
44
 
config.json CHANGED
@@ -1,75 +1,41 @@
1
  {
2
- "_name_or_path": "facebook/bart-large",
3
- "activation_dropout": 0.1,
4
- "activation_function": "gelu",
5
- "add_bias_logits": false,
6
- "add_final_layer_norm": false,
7
  "architectures": [
8
- "BartForCausalLM"
9
  ],
10
- "attention_dropout": 0.1,
11
- "bos_token_id": 0,
12
- "classif_dropout": 0.1,
13
- "classifier_dropout": 0.0,
14
- "d_model": 1024,
15
- "decoder_attention_heads": 16,
16
- "decoder_ffn_dim": 4096,
17
- "decoder_layerdrop": 0.0,
18
- "decoder_layers": 12,
19
- "decoder_start_token_id": 2,
20
- "dropout": 0.1,
21
- "early_stopping": true,
22
- "encoder_attention_heads": 16,
23
- "encoder_ffn_dim": 4096,
24
- "encoder_layerdrop": 0.0,
25
- "encoder_layers": 12,
26
- "eos_token_id": 2,
27
- "forced_bos_token_id": 0,
28
- "forced_eos_token_id": 2,
29
- "gradient_checkpointing": false,
30
- "id2label": {
31
- "0": "LABEL_0",
32
- "1": "LABEL_1",
33
- "2": "LABEL_2"
34
- },
35
- "init_std": 0.02,
36
- "is_decoder": true,
37
- "is_encoder_decoder": false,
38
- "label2id": {
39
- "LABEL_0": 0,
40
- "LABEL_1": 1,
41
- "LABEL_2": 2
42
- },
43
- "max_position_embeddings": 1024,
44
- "model_type": "bart",
45
- "no_repeat_ngram_size": 3,
46
- "normalize_before": false,
47
- "num_beams": 4,
48
- "num_hidden_layers": 12,
49
- "pad_token_id": 1,
50
- "scale_embedding": false,
51
  "task_specific_params": {
52
- "summarization": {
53
- "length_penalty": 1.0,
54
- "max_length": 128,
55
- "min_length": 12,
56
- "num_beams": 4
57
- },
58
- "summarization_cnn": {
59
- "length_penalty": 2.0,
60
- "max_length": 142,
61
- "min_length": 56,
62
- "num_beams": 4
63
- },
64
- "summarization_xsum": {
65
- "length_penalty": 1.0,
66
- "max_length": 62,
67
- "min_length": 11,
68
- "num_beams": 6
69
  }
70
  },
71
  "torch_dtype": "float32",
72
  "transformers_version": "4.41.2",
73
  "use_cache": true,
74
- "vocab_size": 50265
75
  }
 
1
  {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
 
 
 
4
  "architectures": [
5
+ "GPT2LMHeadModel"
6
  ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "do_sample": true,
10
+ "embd_pdrop": 0.1,
11
+ "eos_token_id": 50256,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "max_length": 50,
15
+ "model_type": "gpt2",
16
+ "n_ctx": 1024,
17
+ "n_embd": 768,
18
+ "n_head": 12,
19
+ "n_inner": null,
20
+ "n_layer": 12,
21
+ "n_positions": 1024,
22
+ "reorder_and_upcast_attn": false,
23
+ "resid_pdrop": 0.1,
24
+ "scale_attn_by_inverse_layer_idx": false,
25
+ "scale_attn_weights": true,
26
+ "summary_activation": null,
27
+ "summary_first_dropout": 0.1,
28
+ "summary_proj_to_labels": true,
29
+ "summary_type": "cls_index",
30
+ "summary_use_proj": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  "task_specific_params": {
32
+ "text-generation": {
33
+ "do_sample": true,
34
+ "max_length": 50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
  },
37
  "torch_dtype": "float32",
38
  "transformers_version": "4.41.2",
39
  "use_cache": true,
40
+ "vocab_size": 50257
41
  }
generation_config.json CHANGED
@@ -1,13 +1,9 @@
1
  {
2
  "_from_model_config": true,
3
- "bos_token_id": 0,
4
- "decoder_start_token_id": 2,
5
- "early_stopping": true,
6
- "eos_token_id": 2,
7
- "forced_bos_token_id": 0,
8
- "forced_eos_token_id": 2,
9
- "no_repeat_ngram_size": 3,
10
- "num_beams": 4,
11
- "pad_token_id": 1,
12
  "transformers_version": "4.41.2"
13
  }
 
1
  {
2
  "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "do_sample": true,
5
+ "eos_token_id": 50256,
6
+ "max_length": 50,
7
+ "pad_token_id": 50256,
 
 
 
 
8
  "transformers_version": "4.41.2"
9
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d0c1cae3c74ea63fa0e46e589e4ef5e9f08f590484782b27250cc460035598c2
3
- size 1016373744
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1dd4f9ba6e8eba80fe8ebbbe80760ec96af2ba2b57cdff8d1466175319518d9a
3
+ size 497774208
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6d71d4c8f547cfcff924aefb90cef55f99bb7395cb644387d09bf01c6ffd5521
3
  size 5048
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7754ba7e04107c776be7ebac6a4a8aa8ebcd0d6639f23390d70e376da197c1f4
3
  size 5048