Deepanshu7284 commited on
Commit
9ccef3c
·
verified ·
1 Parent(s): 629795e

End of training - Hybrid Luhn + LED

Browse files
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: 0-hero/led-large-legal-summary
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 [0-hero/led-large-legal-summary](https://huggingface.co/0-hero/led-large-legal-summary) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 2.1953
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 2e-05
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
42
+ - lr_scheduler_type: linear
43
+ - num_epochs: 5
44
+ - mixed_precision_training: Native AMP
45
+
46
+ ### Training results
47
+
48
+ | Training Loss | Epoch | Step | Validation Loss |
49
+ |:-------------:|:-----:|:----:|:---------------:|
50
+ | 2.3391 | 1.0 | 515 | 2.3141 |
51
+ | 1.9654 | 2.0 | 1030 | 2.2136 |
52
+ | 1.815 | 3.0 | 1545 | 2.1874 |
53
+ | 1.7097 | 4.0 | 2060 | 2.1793 |
54
+ | 1.5982 | 5.0 | 2575 | 2.1953 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.51.1
60
+ - Pytorch 2.5.1+cu124
61
+ - Datasets 3.5.0
62
+ - Tokenizers 0.21.0
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 2.468837849038848e+16,
4
+ "train_loss": 1.9720702991670775,
5
+ "train_runtime": 8137.4585,
6
+ "train_samples_per_second": 1.265,
7
+ "train_steps_per_second": 0.316
8
+ }
config.json CHANGED
@@ -1,23 +1,68 @@
1
  {
2
- "activation": "gelu",
 
 
3
  "architectures": [
4
- "DistilBertForQuestionAnswering"
5
  ],
6
- "attention_dropout": 0.1,
7
- "dim": 768,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  "dropout": 0.1,
9
- "hidden_dim": 3072,
10
- "initializer_range": 0.02,
11
- "max_position_embeddings": 512,
12
- "model_type": "distilbert",
13
- "n_heads": 12,
14
- "n_layers": 6,
15
- "pad_token_id": 0,
16
- "qa_dropout": 0.1,
17
- "seq_classif_dropout": 0.2,
18
- "sinusoidal_pos_embds": false,
19
- "tie_weights_": true,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  "torch_dtype": "float32",
21
- "transformers_version": "4.50.3",
22
- "vocab_size": 30522
 
23
  }
 
1
  {
2
+ "_num_labels": 3,
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "gelu",
5
  "architectures": [
6
+ "LEDForConditionalGeneration"
7
  ],
8
+ "attention_dropout": 0.0,
9
+ "attention_window": [
10
+ 1024,
11
+ 1024,
12
+ 1024,
13
+ 1024,
14
+ 1024,
15
+ 1024,
16
+ 1024,
17
+ 1024,
18
+ 1024,
19
+ 1024,
20
+ 1024,
21
+ 1024
22
+ ],
23
+ "bos_token_id": 0,
24
+ "classif_dropout": 0.0,
25
+ "classifier_dropout": 0.0,
26
+ "d_model": 1024,
27
+ "decoder_attention_heads": 16,
28
+ "decoder_ffn_dim": 4096,
29
+ "decoder_layerdrop": 0.0,
30
+ "decoder_layers": 12,
31
+ "decoder_start_token_id": 2,
32
  "dropout": 0.1,
33
+ "early_stopping": null,
34
+ "encoder_attention_heads": 16,
35
+ "encoder_ffn_dim": 4096,
36
+ "encoder_layerdrop": 0.0,
37
+ "encoder_layers": 12,
38
+ "eos_token_id": 2,
39
+ "id2label": {
40
+ "0": "LABEL_0",
41
+ "1": "LABEL_1",
42
+ "2": "LABEL_2"
43
+ },
44
+ "init_std": 0.02,
45
+ "is_encoder_decoder": true,
46
+ "label2id": {
47
+ "LABEL_0": 0,
48
+ "LABEL_1": 1,
49
+ "LABEL_2": 2
50
+ },
51
+ "length_penalty": null,
52
+ "max_decoder_position_embeddings": 1024,
53
+ "max_encoder_position_embeddings": 16384,
54
+ "max_length": null,
55
+ "min_length": null,
56
+ "model_type": "led",
57
+ "no_repeat_ngram_size": null,
58
+ "num_beams": null,
59
+ "num_hidden_layers": 12,
60
+ "output_past": false,
61
+ "pad_token_id": 1,
62
+ "prefix": " ",
63
+ "repetition_penalty": null,
64
  "torch_dtype": "float32",
65
+ "transformers_version": "4.51.1",
66
+ "use_cache": false,
67
+ "vocab_size": 50265
68
  }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "length_penalty": 0.8,
8
+ "max_length": 1024,
9
+ "min_length": 8,
10
+ "no_repeat_ngram_size": 3,
11
+ "num_beams": 4,
12
+ "pad_token_id": 1,
13
+ "repetition_penalty": 3.5,
14
+ "transformers_version": "4.51.1",
15
+ "use_cache": false
16
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:fe078334a1d336480956f4722a660837da5ac5aaac246cce54763b9324d8997d
3
- size 265470032
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12d4fdd9bf936ed82ca1e3cc550ffa3cf4bb8b0c74e2e897c87ee6de77e2eb1b
3
+ size 1839478364
special_tokens_map.json CHANGED
@@ -1,7 +1,51 @@
1
  {
2
- "cls_token": "[CLS]",
3
- "mask_token": "[MASK]",
4
- "pad_token": "[PAD]",
5
- "sep_token": "[SEP]",
6
- "unk_token": "[UNK]"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }
 
1
  {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
  }
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,56 +1,62 @@
1
  {
 
2
  "added_tokens_decoder": {
3
  "0": {
4
- "content": "[PAD]",
5
  "lstrip": false,
6
- "normalized": false,
7
  "rstrip": false,
8
  "single_word": false,
9
  "special": true
10
  },
11
- "100": {
12
- "content": "[UNK]",
13
  "lstrip": false,
14
- "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
- "101": {
20
- "content": "[CLS]",
21
  "lstrip": false,
22
- "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
- "102": {
28
- "content": "[SEP]",
29
  "lstrip": false,
30
- "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
- "103": {
36
- "content": "[MASK]",
37
- "lstrip": false,
38
- "normalized": false,
39
  "rstrip": false,
40
  "single_word": false,
41
  "special": true
42
  }
43
  },
 
44
  "clean_up_tokenization_spaces": false,
45
- "cls_token": "[CLS]",
46
- "do_lower_case": true,
 
47
  "extra_special_tokens": {},
48
- "mask_token": "[MASK]",
49
- "model_max_length": 512,
50
- "pad_token": "[PAD]",
51
- "sep_token": "[SEP]",
52
- "strip_accents": null,
53
- "tokenize_chinese_chars": true,
54
- "tokenizer_class": "DistilBertTokenizer",
55
- "unk_token": "[UNK]"
 
 
 
56
  }
 
1
  {
2
+ "add_prefix_space": false,
3
  "added_tokens_decoder": {
4
  "0": {
5
+ "content": "<s>",
6
  "lstrip": false,
7
+ "normalized": true,
8
  "rstrip": false,
9
  "single_word": false,
10
  "special": true
11
  },
12
+ "1": {
13
+ "content": "<pad>",
14
  "lstrip": false,
15
+ "normalized": true,
16
  "rstrip": false,
17
  "single_word": false,
18
  "special": true
19
  },
20
+ "2": {
21
+ "content": "</s>",
22
  "lstrip": false,
23
+ "normalized": true,
24
  "rstrip": false,
25
  "single_word": false,
26
  "special": true
27
  },
28
+ "3": {
29
+ "content": "<unk>",
30
  "lstrip": false,
31
+ "normalized": true,
32
  "rstrip": false,
33
  "single_word": false,
34
  "special": true
35
  },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": true,
40
  "rstrip": false,
41
  "single_word": false,
42
  "special": true
43
  }
44
  },
45
+ "bos_token": "<s>",
46
  "clean_up_tokenization_spaces": false,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
  "extra_special_tokens": {},
51
+ "mask_token": "<mask>",
52
+ "max_length": 128,
53
+ "model_max_length": 16384,
54
+ "pad_token": "<pad>",
55
+ "sep_token": "</s>",
56
+ "stride": 0,
57
+ "tokenizer_class": "LEDTokenizer",
58
+ "trim_offsets": true,
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "<unk>"
62
  }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 2.468837849038848e+16,
4
+ "train_loss": 1.9720702991670775,
5
+ "train_runtime": 8137.4585,
6
+ "train_samples_per_second": 1.265,
7
+ "train_steps_per_second": 0.316
8
+ }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:93e1d8289c6bea0df06eb106a8e3d899f6bf371130e4d8dacaaa799f04f1db07
3
- size 5304
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df94bb618dffc2cfc260ce7a1a56740163d1cbbb797385dfec089e80c5b428d3
3
+ size 5240
vocab.json ADDED
The diff for this file is too large to render. See raw diff