codestylist
commited on
Commit
•
514b963
1
Parent(s):
aacde44
Upload config.json
Browse files- config.json +72 -0
config.json
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Salesforce/codet5-small",
|
3 |
+
"adapters": {
|
4 |
+
"adapters": {},
|
5 |
+
"config_map": {},
|
6 |
+
"fusion_config_map": {},
|
7 |
+
"fusions": {}
|
8 |
+
},
|
9 |
+
"architectures": [
|
10 |
+
"T5ForConditionalGeneration"
|
11 |
+
],
|
12 |
+
"bos_token_id": 1,
|
13 |
+
"d_ff": 2048,
|
14 |
+
"d_kv": 64,
|
15 |
+
"d_model": 512,
|
16 |
+
"decoder_start_token_id": 0,
|
17 |
+
"dropout_rate": 0.1,
|
18 |
+
"eos_token_id": 2,
|
19 |
+
"feed_forward_proj": "relu",
|
20 |
+
"gradient_checkpointing": false,
|
21 |
+
"id2label": {
|
22 |
+
"0": "LABEL_0"
|
23 |
+
},
|
24 |
+
"initializer_factor": 1.0,
|
25 |
+
"is_encoder_decoder": true,
|
26 |
+
"label2id": {
|
27 |
+
"LABEL_0": 0
|
28 |
+
},
|
29 |
+
"layer_norm_epsilon": 1e-06,
|
30 |
+
"max_length": 512,
|
31 |
+
"model_type": "t5",
|
32 |
+
"n_positions": 512,
|
33 |
+
"num_decoder_layers": 6,
|
34 |
+
"num_heads": 8,
|
35 |
+
"num_layers": 6,
|
36 |
+
"output_past": true,
|
37 |
+
"pad_token_id": 0,
|
38 |
+
"relative_attention_num_buckets": 32,
|
39 |
+
"task_specific_params": {
|
40 |
+
"summarization": {
|
41 |
+
"early_stopping": true,
|
42 |
+
"length_penalty": 2.0,
|
43 |
+
"max_length": 200,
|
44 |
+
"min_length": 30,
|
45 |
+
"no_repeat_ngram_size": 3,
|
46 |
+
"num_beams": 4,
|
47 |
+
"prefix": "summarize: "
|
48 |
+
},
|
49 |
+
"translation_en_to_de": {
|
50 |
+
"early_stopping": true,
|
51 |
+
"max_length": 300,
|
52 |
+
"num_beams": 4,
|
53 |
+
"prefix": "translate English to German: "
|
54 |
+
},
|
55 |
+
"translation_en_to_fr": {
|
56 |
+
"early_stopping": true,
|
57 |
+
"max_length": 300,
|
58 |
+
"num_beams": 4,
|
59 |
+
"prefix": "translate English to French: "
|
60 |
+
},
|
61 |
+
"translation_en_to_ro": {
|
62 |
+
"early_stopping": true,
|
63 |
+
"max_length": 300,
|
64 |
+
"num_beams": 4,
|
65 |
+
"prefix": "translate English to Romanian: "
|
66 |
+
}
|
67 |
+
},
|
68 |
+
"torch_dtype": "float32",
|
69 |
+
"transformers_version": "4.17.0",
|
70 |
+
"use_cache": true,
|
71 |
+
"vocab_size": 32100
|
72 |
+
}
|