Upload BartForConditionalGeneration
Browse files- config.json +10 -0
- generation_config.json +10 -1
config.json
CHANGED
@@ -29,9 +29,19 @@
|
|
29 |
"force_bos_token_to_be_generated": false,
|
30 |
"forced_eos_token_id": 1,
|
31 |
"gradient_checkpointing": false,
|
|
|
|
|
|
|
|
|
|
|
32 |
"init_std": 0.02,
|
33 |
"is_encoder_decoder": true,
|
34 |
"kobart_version": 2.0,
|
|
|
|
|
|
|
|
|
|
|
35 |
"max_position_embeddings": 1026,
|
36 |
"model_type": "bart",
|
37 |
"normalize_before": false,
|
|
|
29 |
"force_bos_token_to_be_generated": false,
|
30 |
"forced_eos_token_id": 1,
|
31 |
"gradient_checkpointing": false,
|
32 |
+
"id2label": {
|
33 |
+
"0": "LABEL_0",
|
34 |
+
"1": "LABEL_1",
|
35 |
+
"2": "LABEL_2"
|
36 |
+
},
|
37 |
"init_std": 0.02,
|
38 |
"is_encoder_decoder": true,
|
39 |
"kobart_version": 2.0,
|
40 |
+
"label2id": {
|
41 |
+
"LABEL_0": 0,
|
42 |
+
"LABEL_1": 1,
|
43 |
+
"LABEL_2": 2
|
44 |
+
},
|
45 |
"max_position_embeddings": 1026,
|
46 |
"model_type": "bart",
|
47 |
"normalize_before": false,
|
generation_config.json
CHANGED
@@ -2,8 +2,17 @@
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 1,
|
4 |
"decoder_start_token_id": 1,
|
|
|
|
|
|
|
|
|
5 |
"eos_token_id": 1,
|
6 |
"forced_eos_token_id": 1,
|
|
|
7 |
"pad_token_id": 3,
|
8 |
-
"
|
|
|
|
|
|
|
|
|
9 |
}
|
|
|
2 |
"_from_model_config": true,
|
3 |
"bos_token_id": 1,
|
4 |
"decoder_start_token_id": 1,
|
5 |
+
"do_sample": [
|
6 |
+
false
|
7 |
+
],
|
8 |
+
"early_stopping": true,
|
9 |
"eos_token_id": 1,
|
10 |
"forced_eos_token_id": 1,
|
11 |
+
"max_new_tokens": 120,
|
12 |
"pad_token_id": 3,
|
13 |
+
"penalty_alpha": 0.6,
|
14 |
+
"repetition_penalty": 1.2,
|
15 |
+
"top_k": 10,
|
16 |
+
"transformers_version": "4.30.2",
|
17 |
+
"use_cache": false
|
18 |
}
|