gcesare commited on
Commit
e423de2
1 Parent(s): eaacfba

Upload T5ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +85 -0
  2. generation_config.json +7 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "t5-base",
3
+ "adapters": {
4
+ "adapters": {
5
+ "samsum": "2e3d1fb61268c5a4"
6
+ },
7
+ "config_map": {
8
+ "2e3d1fb61268c5a4": {
9
+ "alpha": 16,
10
+ "architecture": "lora",
11
+ "attn_matrices": [
12
+ "q",
13
+ "v"
14
+ ],
15
+ "composition_mode": "add",
16
+ "dropout": 0.0,
17
+ "init_weights": "lora",
18
+ "intermediate_lora": true,
19
+ "output_lora": true,
20
+ "r": 8,
21
+ "selfattn_lora": true,
22
+ "use_gating": false
23
+ }
24
+ },
25
+ "fusion_config_map": {},
26
+ "fusions": {}
27
+ },
28
+ "architectures": [
29
+ "T5ForConditionalGeneration"
30
+ ],
31
+ "d_ff": 3072,
32
+ "d_kv": 64,
33
+ "d_model": 768,
34
+ "decoder_start_token_id": 0,
35
+ "dense_act_fn": "relu",
36
+ "dropout_rate": 0.1,
37
+ "eos_token_id": 1,
38
+ "feed_forward_proj": "relu",
39
+ "initializer_factor": 1.0,
40
+ "is_encoder_decoder": true,
41
+ "is_gated_act": false,
42
+ "layer_norm_epsilon": 1e-06,
43
+ "model_type": "t5",
44
+ "n_positions": 512,
45
+ "num_decoder_layers": 12,
46
+ "num_heads": 12,
47
+ "num_layers": 12,
48
+ "output_past": true,
49
+ "pad_token_id": 0,
50
+ "relative_attention_max_distance": 128,
51
+ "relative_attention_num_buckets": 32,
52
+ "task_specific_params": {
53
+ "summarization": {
54
+ "early_stopping": true,
55
+ "length_penalty": 2.0,
56
+ "max_length": 200,
57
+ "min_length": 30,
58
+ "no_repeat_ngram_size": 3,
59
+ "num_beams": 4,
60
+ "prefix": "summarize: "
61
+ },
62
+ "translation_en_to_de": {
63
+ "early_stopping": true,
64
+ "max_length": 300,
65
+ "num_beams": 4,
66
+ "prefix": "translate English to German: "
67
+ },
68
+ "translation_en_to_fr": {
69
+ "early_stopping": true,
70
+ "max_length": 300,
71
+ "num_beams": 4,
72
+ "prefix": "translate English to French: "
73
+ },
74
+ "translation_en_to_ro": {
75
+ "early_stopping": true,
76
+ "max_length": 300,
77
+ "num_beams": 4,
78
+ "prefix": "translate English to Romanian: "
79
+ }
80
+ },
81
+ "torch_dtype": "float32",
82
+ "transformers_version": "4.26.1",
83
+ "use_cache": true,
84
+ "vocab_size": 32128
85
+ }
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.26.1"
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:495e88b1517d997308ba167247d951e66fc8a24f5683e732c2ec774be25710d8
3
+ size 901226257