lizhuang144 commited on
Commit
9977fb9
1 Parent(s): dafeae6

Upload T5ForConditionalGeneration (#2)

Browse files

- Upload T5ForConditionalGeneration (58adef08efd6fa657150a11898b1f5df84fa6176)

Files changed (3) hide show
  1. config.json +67 -0
  2. generation_config.json +7 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "flan-t5-base",
3
+ "adapters": {
4
+ "adapters": {},
5
+ "config_map": {},
6
+ "fusion_config_map": {},
7
+ "fusions": {}
8
+ },
9
+ "architectures": [
10
+ "T5ForConditionalGeneration"
11
+ ],
12
+ "d_ff": 2048,
13
+ "d_kv": 64,
14
+ "d_model": 768,
15
+ "decoder_start_token_id": 0,
16
+ "dense_act_fn": "gelu_new",
17
+ "dropout_rate": 0.1,
18
+ "eos_token_id": 1,
19
+ "feed_forward_proj": "gated-gelu",
20
+ "initializer_factor": 1.0,
21
+ "is_encoder_decoder": true,
22
+ "is_gated_act": true,
23
+ "layer_norm_epsilon": 1e-06,
24
+ "model_type": "t5",
25
+ "n_positions": 512,
26
+ "num_decoder_layers": 12,
27
+ "num_heads": 12,
28
+ "num_layers": 12,
29
+ "output_past": true,
30
+ "pad_token_id": 0,
31
+ "relative_attention_max_distance": 128,
32
+ "relative_attention_num_buckets": 32,
33
+ "task_specific_params": {
34
+ "summarization": {
35
+ "early_stopping": true,
36
+ "length_penalty": 2.0,
37
+ "max_length": 200,
38
+ "min_length": 30,
39
+ "no_repeat_ngram_size": 3,
40
+ "num_beams": 4,
41
+ "prefix": "summarize: "
42
+ },
43
+ "translation_en_to_de": {
44
+ "early_stopping": true,
45
+ "max_length": 300,
46
+ "num_beams": 4,
47
+ "prefix": "translate English to German: "
48
+ },
49
+ "translation_en_to_fr": {
50
+ "early_stopping": true,
51
+ "max_length": 300,
52
+ "num_beams": 4,
53
+ "prefix": "translate English to French: "
54
+ },
55
+ "translation_en_to_ro": {
56
+ "early_stopping": true,
57
+ "max_length": 300,
58
+ "num_beams": 4,
59
+ "prefix": "translate English to Romanian: "
60
+ }
61
+ },
62
+ "tie_word_embeddings": false,
63
+ "torch_dtype": "float32",
64
+ "transformers_version": "4.28.1",
65
+ "use_cache": true,
66
+ "vocab_size": 32128
67
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.28.1"
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b88dfad095903ae4991e6b3fbceeb4857d75452b01dce3ef186c176ea6cbcb14
3
+ size 990404917