Spaces:
Sleeping
Sleeping
yilmazmusa
commited on
Commit
·
8b051da
1
Parent(s):
8fef257
Add application file
Browse files- app.py +21 -0
- models/bart-summarizer/checkpoint-4000/config.json +70 -0
- models/bart-summarizer/checkpoint-4000/generation_config.json +16 -0
- models/bart-summarizer/checkpoint-4000/model.safetensors +3 -0
- models/bart-summarizer/checkpoint-4000/optimizer.pt +3 -0
- models/bart-summarizer/checkpoint-4000/rng_state.pth +3 -0
- models/bart-summarizer/checkpoint-4000/scheduler.pt +3 -0
- models/bart-summarizer/checkpoint-4000/trainer_state.json +77 -0
- models/bart-summarizer/checkpoint-4000/training_args.bin +3 -0
- models/bart-summarizer/checkpoint-8000/config.json +70 -0
- models/bart-summarizer/checkpoint-8000/generation_config.json +16 -0
- models/bart-summarizer/checkpoint-8000/model.safetensors +3 -0
- models/bart-summarizer/checkpoint-8000/optimizer.pt +3 -0
- models/bart-summarizer/checkpoint-8000/rng_state.pth +3 -0
- models/bart-summarizer/checkpoint-8000/scheduler.pt +3 -0
- models/bart-summarizer/checkpoint-8000/trainer_state.json +133 -0
- models/bart-summarizer/checkpoint-8000/training_args.bin +3 -0
- requirements.txt +8 -0
app.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import BartTokenizer, BartForConditionalGeneration, BartConfig
|
3 |
+
|
4 |
+
# Load tokenizer and model
|
5 |
+
tokenizer = BartTokenizer.from_pretrained("facebook/bart-large-cnn")
|
6 |
+
config = BartConfig.from_pretrained("./models/bart-summarizer/checkpoint-8000/config.json")
|
7 |
+
model_path = "./models/bart-summarizer/checkpoint-8000/"
|
8 |
+
model = BartForConditionalGeneration.from_pretrained(pretrained_model_name_or_path=model_path, config=config)
|
9 |
+
|
10 |
+
# Define summarize function
|
11 |
+
def summarize(text):
|
12 |
+
inputs = tokenizer([text], max_length=1024, return_tensors='pt', truncation=False)
|
13 |
+
summary_ids = model.generate(inputs['input_ids'], num_beams=4, min_length=30, max_length=128, early_stopping=True)
|
14 |
+
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True, clean_up_tokenization_spaces=True)
|
15 |
+
return summary
|
16 |
+
|
17 |
+
# Create Gradio interface
|
18 |
+
inputs = gr.Textbox(lines=10, label="Input Text")
|
19 |
+
outputs = gr.Textbox(label="Summary")
|
20 |
+
|
21 |
+
gr.Interface(summarize, inputs, outputs, title="Mail Subject Extraction", description="Get Subject from Email Content").launch()
|
models/bart-summarizer/checkpoint-4000/config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/bart-large-cnn",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "gelu",
|
6 |
+
"add_final_layer_norm": false,
|
7 |
+
"architectures": [
|
8 |
+
"BartForConditionalGeneration"
|
9 |
+
],
|
10 |
+
"attention_dropout": 0.0,
|
11 |
+
"bos_token_id": 0,
|
12 |
+
"classif_dropout": 0.0,
|
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 |
+
"force_bos_token_to_be_generated": true,
|
28 |
+
"forced_bos_token_id": 0,
|
29 |
+
"forced_eos_token_id": 2,
|
30 |
+
"gradient_checkpointing": false,
|
31 |
+
"id2label": {
|
32 |
+
"0": "LABEL_0",
|
33 |
+
"1": "LABEL_1",
|
34 |
+
"2": "LABEL_2"
|
35 |
+
},
|
36 |
+
"init_std": 0.02,
|
37 |
+
"is_encoder_decoder": true,
|
38 |
+
"label2id": {
|
39 |
+
"LABEL_0": 0,
|
40 |
+
"LABEL_1": 1,
|
41 |
+
"LABEL_2": 2
|
42 |
+
},
|
43 |
+
"length_penalty": 2.0,
|
44 |
+
"max_length": 142,
|
45 |
+
"max_position_embeddings": 1024,
|
46 |
+
"min_length": 56,
|
47 |
+
"model_type": "bart",
|
48 |
+
"no_repeat_ngram_size": 3,
|
49 |
+
"normalize_before": false,
|
50 |
+
"num_beams": 4,
|
51 |
+
"num_hidden_layers": 12,
|
52 |
+
"output_past": true,
|
53 |
+
"pad_token_id": 1,
|
54 |
+
"prefix": " ",
|
55 |
+
"scale_embedding": false,
|
56 |
+
"task_specific_params": {
|
57 |
+
"summarization": {
|
58 |
+
"early_stopping": true,
|
59 |
+
"length_penalty": 2.0,
|
60 |
+
"max_length": 142,
|
61 |
+
"min_length": 56,
|
62 |
+
"no_repeat_ngram_size": 3,
|
63 |
+
"num_beams": 4
|
64 |
+
}
|
65 |
+
},
|
66 |
+
"torch_dtype": "float32",
|
67 |
+
"transformers_version": "4.39.3",
|
68 |
+
"use_cache": true,
|
69 |
+
"vocab_size": 50264
|
70 |
+
}
|
models/bart-summarizer/checkpoint-4000/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 |
+
"forced_bos_token_id": 0,
|
8 |
+
"forced_eos_token_id": 2,
|
9 |
+
"length_penalty": 2.0,
|
10 |
+
"max_length": 142,
|
11 |
+
"min_length": 56,
|
12 |
+
"no_repeat_ngram_size": 3,
|
13 |
+
"num_beams": 4,
|
14 |
+
"pad_token_id": 1,
|
15 |
+
"transformers_version": "4.39.3"
|
16 |
+
}
|
models/bart-summarizer/checkpoint-4000/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c75444fc36a53eaac2f4cc4194c34941c9ef7a8ea898d2858b790ce7c6f2c89c
|
3 |
+
size 1625422896
|
models/bart-summarizer/checkpoint-4000/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e5a6b6989c79789912310711647baee8b8e1cd7545135b578f8de96fed6b0bb1
|
3 |
+
size 3250751759
|
models/bart-summarizer/checkpoint-4000/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7af64837f6c1802373f9a63146270fcae08cd224632d257beb2a234bda76b2b6
|
3 |
+
size 14244
|
models/bart-summarizer/checkpoint-4000/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a180fa12b33ed5d6c4308c080cb5d6a6cfd00e8661fe71dd10d82934574a89d4
|
3 |
+
size 1064
|
models/bart-summarizer/checkpoint-4000/trainer_state.json
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.8298755186721992,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 4000,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.1,
|
13 |
+
"grad_norm": 59.103092193603516,
|
14 |
+
"learning_rate": 5e-05,
|
15 |
+
"loss": 3.2072,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.21,
|
20 |
+
"grad_norm": 4.993757247924805,
|
21 |
+
"learning_rate": 4.726477024070022e-05,
|
22 |
+
"loss": 1.7111,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.31,
|
27 |
+
"grad_norm": 21.068601608276367,
|
28 |
+
"learning_rate": 4.452954048140044e-05,
|
29 |
+
"loss": 1.1954,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.41,
|
34 |
+
"grad_norm": 46.41459274291992,
|
35 |
+
"learning_rate": 4.179431072210066e-05,
|
36 |
+
"loss": 0.8376,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.52,
|
41 |
+
"grad_norm": 0.6010065078735352,
|
42 |
+
"learning_rate": 3.9059080962800876e-05,
|
43 |
+
"loss": 0.6233,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.62,
|
48 |
+
"grad_norm": 57.68833541870117,
|
49 |
+
"learning_rate": 3.6323851203501094e-05,
|
50 |
+
"loss": 0.5353,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.73,
|
55 |
+
"grad_norm": 0.1653015911579132,
|
56 |
+
"learning_rate": 3.358862144420131e-05,
|
57 |
+
"loss": 0.3499,
|
58 |
+
"step": 3500
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.83,
|
62 |
+
"grad_norm": 8.111839294433594,
|
63 |
+
"learning_rate": 3.085339168490153e-05,
|
64 |
+
"loss": 0.3051,
|
65 |
+
"step": 4000
|
66 |
+
}
|
67 |
+
],
|
68 |
+
"logging_steps": 500,
|
69 |
+
"max_steps": 9640,
|
70 |
+
"num_input_tokens_seen": 0,
|
71 |
+
"num_train_epochs": 2,
|
72 |
+
"save_steps": 4000,
|
73 |
+
"total_flos": 8668418408448000.0,
|
74 |
+
"train_batch_size": 1,
|
75 |
+
"trial_name": null,
|
76 |
+
"trial_params": null
|
77 |
+
}
|
models/bart-summarizer/checkpoint-4000/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be23372fa8d5d4e5a43443bc60a636cd29afe53b764c8e48c9ac5b0cb5cd0832
|
3 |
+
size 4920
|
models/bart-summarizer/checkpoint-8000/config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/bart-large-cnn",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "gelu",
|
6 |
+
"add_final_layer_norm": false,
|
7 |
+
"architectures": [
|
8 |
+
"BartForConditionalGeneration"
|
9 |
+
],
|
10 |
+
"attention_dropout": 0.0,
|
11 |
+
"bos_token_id": 0,
|
12 |
+
"classif_dropout": 0.0,
|
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 |
+
"force_bos_token_to_be_generated": true,
|
28 |
+
"forced_bos_token_id": 0,
|
29 |
+
"forced_eos_token_id": 2,
|
30 |
+
"gradient_checkpointing": false,
|
31 |
+
"id2label": {
|
32 |
+
"0": "LABEL_0",
|
33 |
+
"1": "LABEL_1",
|
34 |
+
"2": "LABEL_2"
|
35 |
+
},
|
36 |
+
"init_std": 0.02,
|
37 |
+
"is_encoder_decoder": true,
|
38 |
+
"label2id": {
|
39 |
+
"LABEL_0": 0,
|
40 |
+
"LABEL_1": 1,
|
41 |
+
"LABEL_2": 2
|
42 |
+
},
|
43 |
+
"length_penalty": 2.0,
|
44 |
+
"max_length": 142,
|
45 |
+
"max_position_embeddings": 1024,
|
46 |
+
"min_length": 56,
|
47 |
+
"model_type": "bart",
|
48 |
+
"no_repeat_ngram_size": 3,
|
49 |
+
"normalize_before": false,
|
50 |
+
"num_beams": 4,
|
51 |
+
"num_hidden_layers": 12,
|
52 |
+
"output_past": true,
|
53 |
+
"pad_token_id": 1,
|
54 |
+
"prefix": " ",
|
55 |
+
"scale_embedding": false,
|
56 |
+
"task_specific_params": {
|
57 |
+
"summarization": {
|
58 |
+
"early_stopping": true,
|
59 |
+
"length_penalty": 2.0,
|
60 |
+
"max_length": 142,
|
61 |
+
"min_length": 56,
|
62 |
+
"no_repeat_ngram_size": 3,
|
63 |
+
"num_beams": 4
|
64 |
+
}
|
65 |
+
},
|
66 |
+
"torch_dtype": "float32",
|
67 |
+
"transformers_version": "4.39.3",
|
68 |
+
"use_cache": true,
|
69 |
+
"vocab_size": 50264
|
70 |
+
}
|
models/bart-summarizer/checkpoint-8000/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 |
+
"forced_bos_token_id": 0,
|
8 |
+
"forced_eos_token_id": 2,
|
9 |
+
"length_penalty": 2.0,
|
10 |
+
"max_length": 142,
|
11 |
+
"min_length": 56,
|
12 |
+
"no_repeat_ngram_size": 3,
|
13 |
+
"num_beams": 4,
|
14 |
+
"pad_token_id": 1,
|
15 |
+
"transformers_version": "4.39.3"
|
16 |
+
}
|
models/bart-summarizer/checkpoint-8000/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27c176d5344671a354389c0d9317caba88a6baa0d0db6d7dbf10c6f98319ff9b
|
3 |
+
size 1625422896
|
models/bart-summarizer/checkpoint-8000/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c573c59236bede059c962101b74c0a90234af3f1051904edc1924bf4eeaae862
|
3 |
+
size 3250751759
|
models/bart-summarizer/checkpoint-8000/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6e3c987845d54ca14955bbb363cf521761b0e578be66901a29384d649b82bda
|
3 |
+
size 14244
|
models/bart-summarizer/checkpoint-8000/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:27fd70081fb52707eb8537ab797eb0186393f9aeb921afdd7b96607215636c6b
|
3 |
+
size 1064
|
models/bart-summarizer/checkpoint-8000/trainer_state.json
ADDED
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.6597510373443982,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 8000,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.1,
|
13 |
+
"grad_norm": 59.103092193603516,
|
14 |
+
"learning_rate": 5e-05,
|
15 |
+
"loss": 3.2072,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.21,
|
20 |
+
"grad_norm": 4.993757247924805,
|
21 |
+
"learning_rate": 4.726477024070022e-05,
|
22 |
+
"loss": 1.7111,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.31,
|
27 |
+
"grad_norm": 21.068601608276367,
|
28 |
+
"learning_rate": 4.452954048140044e-05,
|
29 |
+
"loss": 1.1954,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.41,
|
34 |
+
"grad_norm": 46.41459274291992,
|
35 |
+
"learning_rate": 4.179431072210066e-05,
|
36 |
+
"loss": 0.8376,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.52,
|
41 |
+
"grad_norm": 0.6010065078735352,
|
42 |
+
"learning_rate": 3.9059080962800876e-05,
|
43 |
+
"loss": 0.6233,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.62,
|
48 |
+
"grad_norm": 57.68833541870117,
|
49 |
+
"learning_rate": 3.6323851203501094e-05,
|
50 |
+
"loss": 0.5353,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.73,
|
55 |
+
"grad_norm": 0.1653015911579132,
|
56 |
+
"learning_rate": 3.358862144420131e-05,
|
57 |
+
"loss": 0.3499,
|
58 |
+
"step": 3500
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.83,
|
62 |
+
"grad_norm": 8.111839294433594,
|
63 |
+
"learning_rate": 3.085339168490153e-05,
|
64 |
+
"loss": 0.3051,
|
65 |
+
"step": 4000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.93,
|
69 |
+
"grad_norm": 0.1723615527153015,
|
70 |
+
"learning_rate": 2.811816192560175e-05,
|
71 |
+
"loss": 0.206,
|
72 |
+
"step": 4500
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 1.04,
|
76 |
+
"grad_norm": 2.4750895500183105,
|
77 |
+
"learning_rate": 2.538293216630197e-05,
|
78 |
+
"loss": 0.1699,
|
79 |
+
"step": 5000
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 1.14,
|
83 |
+
"grad_norm": 1.0484932661056519,
|
84 |
+
"learning_rate": 2.264770240700219e-05,
|
85 |
+
"loss": 0.1049,
|
86 |
+
"step": 5500
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 1.24,
|
90 |
+
"grad_norm": 0.005179296713322401,
|
91 |
+
"learning_rate": 1.9912472647702408e-05,
|
92 |
+
"loss": 0.1088,
|
93 |
+
"step": 6000
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 1.35,
|
97 |
+
"grad_norm": 10.785158157348633,
|
98 |
+
"learning_rate": 1.7177242888402626e-05,
|
99 |
+
"loss": 0.0777,
|
100 |
+
"step": 6500
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 1.45,
|
104 |
+
"grad_norm": 0.00013241704436950386,
|
105 |
+
"learning_rate": 1.4442013129102846e-05,
|
106 |
+
"loss": 0.0672,
|
107 |
+
"step": 7000
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 1.56,
|
111 |
+
"grad_norm": 48.77959442138672,
|
112 |
+
"learning_rate": 1.1706783369803063e-05,
|
113 |
+
"loss": 0.1183,
|
114 |
+
"step": 7500
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 1.66,
|
118 |
+
"grad_norm": 0.09291552007198334,
|
119 |
+
"learning_rate": 8.971553610503283e-06,
|
120 |
+
"loss": 0.0474,
|
121 |
+
"step": 8000
|
122 |
+
}
|
123 |
+
],
|
124 |
+
"logging_steps": 500,
|
125 |
+
"max_steps": 9640,
|
126 |
+
"num_input_tokens_seen": 0,
|
127 |
+
"num_train_epochs": 2,
|
128 |
+
"save_steps": 4000,
|
129 |
+
"total_flos": 1.7336836816896e+16,
|
130 |
+
"train_batch_size": 1,
|
131 |
+
"trial_name": null,
|
132 |
+
"trial_params": null
|
133 |
+
}
|
models/bart-summarizer/checkpoint-8000/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be23372fa8d5d4e5a43443bc60a636cd29afe53b764c8e48c9ac5b0cb5cd0832
|
3 |
+
size 4920
|
requirements.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
accelerate==0.24.1
|
2 |
+
gradio==3.50.2
|
3 |
+
huggingface-hub==0.17.3
|
4 |
+
numpy==1.24.1
|
5 |
+
pdfplumber==0.10.3
|
6 |
+
scipy==1.10.1
|
7 |
+
torch
|
8 |
+
transformers==4.35.0
|