Time is 232.55102243026099 minutes, Memory is 9.4GB
Browse files- README.md +61 -0
- added_tokens.json +4 -0
- config.json +55 -0
- generation_config.json +6 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- runs/Dec02_22-44-07_71fd48f3e142/events.out.tfevents.1701557048.71fd48f3e142.1077.0 +3 -0
- special_tokens_map.json +19 -0
- tokenizer.json +0 -0
- tokenizer_config.json +37 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
datasets:
|
5 |
+
- xsum
|
6 |
+
model-index:
|
7 |
+
- name: ReFormer-summarization
|
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 |
+
# ReFormer-summarization
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on the xsum dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 4.5207
|
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: 0.001
|
38 |
+
- train_batch_size: 8
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: cosine
|
43 |
+
- lr_scheduler_warmup_steps: 100
|
44 |
+
- num_epochs: 3
|
45 |
+
- mixed_precision_training: Native AMP
|
46 |
+
|
47 |
+
### Training results
|
48 |
+
|
49 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
50 |
+
|:-------------:|:-----:|:-----:|:---------------:|
|
51 |
+
| 5.336 | 1.0 | 23050 | 4.8078 |
|
52 |
+
| 4.6673 | 2.0 | 46100 | 4.5712 |
|
53 |
+
| 4.519 | 3.0 | 69150 | 4.5207 |
|
54 |
+
|
55 |
+
|
56 |
+
### Framework versions
|
57 |
+
|
58 |
+
- Transformers 4.35.2
|
59 |
+
- Pytorch 2.1.0+cu118
|
60 |
+
- Datasets 2.15.0
|
61 |
+
- Tokenizers 0.15.0
|
added_tokens.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|pad|>": 50257,
|
3 |
+
"<|sep|>": 50258
|
4 |
+
}
|
config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"ReformerModelWithLMHead"
|
4 |
+
],
|
5 |
+
"attention_head_size": 64,
|
6 |
+
"attn_layers": [
|
7 |
+
"local",
|
8 |
+
"lsh",
|
9 |
+
"local",
|
10 |
+
"lsh",
|
11 |
+
"local",
|
12 |
+
"lsh"
|
13 |
+
],
|
14 |
+
"axial_norm_std": 1.0,
|
15 |
+
"axial_pos_embds": true,
|
16 |
+
"axial_pos_embds_dim": [
|
17 |
+
22,
|
18 |
+
22
|
19 |
+
],
|
20 |
+
"axial_pos_shape": [
|
21 |
+
32,
|
22 |
+
32
|
23 |
+
],
|
24 |
+
"chunk_size_lm_head": 0,
|
25 |
+
"classifier_dropout": null,
|
26 |
+
"eos_token_id": 50256,
|
27 |
+
"feed_forward_size": 64,
|
28 |
+
"hash_seed": null,
|
29 |
+
"hidden_act": "relu",
|
30 |
+
"hidden_dropout_prob": 0.0,
|
31 |
+
"hidden_size": 44,
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"is_decoder": true,
|
34 |
+
"layer_norm_eps": 1e-12,
|
35 |
+
"local_attention_probs_dropout_prob": 0.0,
|
36 |
+
"local_attn_chunk_length": 64,
|
37 |
+
"local_num_chunks_after": 0,
|
38 |
+
"local_num_chunks_before": 1,
|
39 |
+
"lsh_attention_probs_dropout_prob": 0.0,
|
40 |
+
"lsh_attn_chunk_length": 64,
|
41 |
+
"lsh_num_chunks_after": 0,
|
42 |
+
"lsh_num_chunks_before": 1,
|
43 |
+
"max_position_embeddings": 1024,
|
44 |
+
"model_type": "reformer",
|
45 |
+
"num_attention_heads": 3,
|
46 |
+
"num_buckets": 32,
|
47 |
+
"num_hashes": 1,
|
48 |
+
"num_hidden_layers": 6,
|
49 |
+
"pad_token_id": 50257,
|
50 |
+
"tie_word_embeddings": false,
|
51 |
+
"torch_dtype": "float32",
|
52 |
+
"transformers_version": "4.35.2",
|
53 |
+
"use_cache": true,
|
54 |
+
"vocab_size": 50259
|
55 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"eos_token_id": 50256,
|
4 |
+
"pad_token_id": 50257,
|
5 |
+
"transformers_version": "4.35.2"
|
6 |
+
}
|
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:b5a1bcfef8fcbc67a3a11df69ff57590de203b0519fde7da5d4eb38a1bcc51a5
|
3 |
+
size 27605172
|
runs/Dec02_22-44-07_71fd48f3e142/events.out.tfevents.1701557048.71fd48f3e142.1077.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:67a487dcb365b55efbf7f2d26f059132b91f2edb6a201034317277c4a1376411
|
3 |
+
size 6401
|
special_tokens_map.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<|endoftext|>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"pad_token": {
|
5 |
+
"content": "<|pad|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false
|
10 |
+
},
|
11 |
+
"sep_token": {
|
12 |
+
"content": "<|sep|>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false
|
17 |
+
},
|
18 |
+
"unk_token": "<|endoftext|>"
|
19 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"50257": {
|
13 |
+
"content": "<|pad|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"50258": {
|
21 |
+
"content": "<|sep|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"bos_token": "<|endoftext|>",
|
30 |
+
"clean_up_tokenization_spaces": true,
|
31 |
+
"eos_token": "<|endoftext|>",
|
32 |
+
"model_max_length": 1024,
|
33 |
+
"pad_token": "<|pad|>",
|
34 |
+
"sep_token": "<|sep|>",
|
35 |
+
"tokenizer_class": "GPT2Tokenizer",
|
36 |
+
"unk_token": "<|endoftext|>"
|
37 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3d2999a38a8a4fd9059f8c7803d943e6a01552dc226c929816029d55a131040
|
3 |
+
size 4600
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|