Commit From AutoTrain
Browse files- .gitattributes +2 -0
- README.md +32 -0
- added_tokens.json +3 -0
- config.json +97 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +18 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -29,3 +29,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
29 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
30 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
31 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
29 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
30 |
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
31 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags: autotrain
|
3 |
+
language: unk
|
4 |
+
widget:
|
5 |
+
- text: "I love AutoTrain 🤗"
|
6 |
+
datasets:
|
7 |
+
- ben-yu/autotrain-data-MS2
|
8 |
+
co2_eq_emissions: 0.687008092853648
|
9 |
+
---
|
10 |
+
|
11 |
+
# Model Trained Using AutoTrain
|
12 |
+
|
13 |
+
- Problem type: Summarization
|
14 |
+
- Model ID: 1173943517
|
15 |
+
- CO2 Emissions (in grams): 0.687008092853648
|
16 |
+
|
17 |
+
## Validation Metrics
|
18 |
+
|
19 |
+
- Loss: 2.806302070617676
|
20 |
+
- Rouge1: 0.0342
|
21 |
+
- Rouge2: 0.006
|
22 |
+
- RougeL: 0.0242
|
23 |
+
- RougeLsum: 0.0283
|
24 |
+
- Gen Len: 19.9989
|
25 |
+
|
26 |
+
## Usage
|
27 |
+
|
28 |
+
You can use cURL to access this model:
|
29 |
+
|
30 |
+
```
|
31 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_HUGGINGFACE_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/ben-yu/autotrain-MS2-1173943517
|
32 |
+
```
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<doc-sep>": 50265
|
3 |
+
}
|
config.json
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "gelu",
|
6 |
+
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": false,
|
8 |
+
"architectures": [
|
9 |
+
"LEDForConditionalGeneration"
|
10 |
+
],
|
11 |
+
"attention_dilation": [
|
12 |
+
1,
|
13 |
+
1,
|
14 |
+
1,
|
15 |
+
1,
|
16 |
+
1,
|
17 |
+
1,
|
18 |
+
1,
|
19 |
+
1,
|
20 |
+
1,
|
21 |
+
1,
|
22 |
+
1,
|
23 |
+
1
|
24 |
+
],
|
25 |
+
"attention_dropout": 0.0,
|
26 |
+
"attention_mode": "sliding_chunks",
|
27 |
+
"attention_window": [
|
28 |
+
512,
|
29 |
+
512,
|
30 |
+
512,
|
31 |
+
512,
|
32 |
+
512,
|
33 |
+
512,
|
34 |
+
512,
|
35 |
+
512,
|
36 |
+
512,
|
37 |
+
512,
|
38 |
+
512,
|
39 |
+
512
|
40 |
+
],
|
41 |
+
"autoregressive": false,
|
42 |
+
"bos_token_id": 0,
|
43 |
+
"classif_dropout": 0.0,
|
44 |
+
"classifier_dropout": 0.0,
|
45 |
+
"d_model": 1024,
|
46 |
+
"decoder_attention_heads": 16,
|
47 |
+
"decoder_ffn_dim": 4096,
|
48 |
+
"decoder_layerdrop": 0.0,
|
49 |
+
"decoder_layers": 12,
|
50 |
+
"decoder_start_token_id": 2,
|
51 |
+
"dropout": 0.1,
|
52 |
+
"encoder_attention_heads": 16,
|
53 |
+
"encoder_ffn_dim": 4096,
|
54 |
+
"encoder_layerdrop": 0.0,
|
55 |
+
"encoder_layers": 12,
|
56 |
+
"eos_token_id": 2,
|
57 |
+
"extra_pos_embeddings": 2,
|
58 |
+
"force_bos_token_to_be_generated": false,
|
59 |
+
"id2label": {
|
60 |
+
"0": "LABEL_0",
|
61 |
+
"1": "LABEL_1",
|
62 |
+
"2": "LABEL_2"
|
63 |
+
},
|
64 |
+
"init_std": 0.02,
|
65 |
+
"is_encoder_decoder": true,
|
66 |
+
"label2id": {
|
67 |
+
"LABEL_0": 0,
|
68 |
+
"LABEL_1": 1,
|
69 |
+
"LABEL_2": 2
|
70 |
+
},
|
71 |
+
"max_decoder_position_embeddings": 1024,
|
72 |
+
"max_encoder_position_embeddings": 4096,
|
73 |
+
"max_position_embeddings": 4096,
|
74 |
+
"model_type": "led",
|
75 |
+
"normalize_before": false,
|
76 |
+
"normalize_embedding": true,
|
77 |
+
"num_hidden_layers": 12,
|
78 |
+
"output_past": false,
|
79 |
+
"pad_token_id": 1,
|
80 |
+
"prefix": " ",
|
81 |
+
"scale_embedding": false,
|
82 |
+
"static_position_embeddings": false,
|
83 |
+
"task_specific_params": {
|
84 |
+
"summarization": {
|
85 |
+
"early_stopping": true,
|
86 |
+
"length_penalty": 2.0,
|
87 |
+
"max_length": 142,
|
88 |
+
"min_length": 56,
|
89 |
+
"no_repeat_ngram_size": 3,
|
90 |
+
"num_beams": 4
|
91 |
+
}
|
92 |
+
},
|
93 |
+
"torch_dtype": "float32",
|
94 |
+
"transformers_version": "4.20.0",
|
95 |
+
"use_cache": true,
|
96 |
+
"vocab_size": 50266
|
97 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0a001353c2ce0626701791b5f5641b2cbd0e7f0127642a83d4b9b43017ad8e8d
|
3 |
+
size 1789277169
|
special_tokens_map.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<doc-sep>"
|
4 |
+
],
|
5 |
+
"bos_token": "<s>",
|
6 |
+
"cls_token": "<s>",
|
7 |
+
"eos_token": "</s>",
|
8 |
+
"mask_token": {
|
9 |
+
"content": "<mask>",
|
10 |
+
"lstrip": true,
|
11 |
+
"normalized": false,
|
12 |
+
"rstrip": false,
|
13 |
+
"single_word": false
|
14 |
+
},
|
15 |
+
"pad_token": "<pad>",
|
16 |
+
"sep_token": "</s>",
|
17 |
+
"unk_token": "<unk>"
|
18 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"bos_token": {
|
4 |
+
"__type": "AddedToken",
|
5 |
+
"content": "<s>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false
|
10 |
+
},
|
11 |
+
"cls_token": {
|
12 |
+
"__type": "AddedToken",
|
13 |
+
"content": "<s>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": true,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false
|
18 |
+
},
|
19 |
+
"eos_token": {
|
20 |
+
"__type": "AddedToken",
|
21 |
+
"content": "</s>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": true,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
"errors": "replace",
|
28 |
+
"mask_token": {
|
29 |
+
"__type": "AddedToken",
|
30 |
+
"content": "<mask>",
|
31 |
+
"lstrip": true,
|
32 |
+
"normalized": true,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false
|
35 |
+
},
|
36 |
+
"model_max_length": 4096,
|
37 |
+
"name_or_path": "AutoTrain",
|
38 |
+
"pad_token": {
|
39 |
+
"__type": "AddedToken",
|
40 |
+
"content": "<pad>",
|
41 |
+
"lstrip": false,
|
42 |
+
"normalized": true,
|
43 |
+
"rstrip": false,
|
44 |
+
"single_word": false
|
45 |
+
},
|
46 |
+
"sep_token": {
|
47 |
+
"__type": "AddedToken",
|
48 |
+
"content": "</s>",
|
49 |
+
"lstrip": false,
|
50 |
+
"normalized": true,
|
51 |
+
"rstrip": false,
|
52 |
+
"single_word": false
|
53 |
+
},
|
54 |
+
"special_tokens_map_file": "/app/.cache/huggingface/transformers/11580dbf54b49da2d44191726dd2ed18e1ed26a495b393512201f5822711c62b.0e55ca6797ff34881d64b92cd1563c7e5dbfccac3b6235e6923625abd01fb78b",
|
55 |
+
"tokenizer_class": "LEDTokenizer",
|
56 |
+
"trim_offsets": true,
|
57 |
+
"unk_token": {
|
58 |
+
"__type": "AddedToken",
|
59 |
+
"content": "<unk>",
|
60 |
+
"lstrip": false,
|
61 |
+
"normalized": true,
|
62 |
+
"rstrip": false,
|
63 |
+
"single_word": false
|
64 |
+
}
|
65 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|