asahi417 commited on
Commit
65a6ff6
1 Parent(s): 533c766

Upload T5ForConditionalGeneration

Browse files
Files changed (3) hide show
  1. config.json +73 -0
  2. generation_config.json +7 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "analogy_models/flan-t5-small-analogy-epoch1-p/model",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "d_ff": 1024,
7
+ "d_kv": 64,
8
+ "d_model": 512,
9
+ "decoder_start_token_id": 0,
10
+ "dense_act_fn": "gelu_new",
11
+ "dropout_rate": 0.1,
12
+ "eos_token_id": 1,
13
+ "feed_forward_proj": "gated-gelu",
14
+ "finetuing_config": {
15
+ "batch_size": 32,
16
+ "data": "relbert/semeval2012_relational_similarity",
17
+ "epoch": 1,
18
+ "gradient_accumulation_steps": 1,
19
+ "learning_rate": 0.0001,
20
+ "model": "google/flan-t5-small",
21
+ "random_seed": 42,
22
+ "task_prefix": "generate analogy:",
23
+ "template_footer": "<subj-b> is to <obj-b>",
24
+ "template_header": "<subj-a> is to <obj-a>"
25
+ },
26
+ "initializer_factor": 1.0,
27
+ "is_encoder_decoder": true,
28
+ "is_gated_act": true,
29
+ "layer_norm_epsilon": 1e-06,
30
+ "model_type": "t5",
31
+ "n_positions": 512,
32
+ "num_decoder_layers": 8,
33
+ "num_heads": 6,
34
+ "num_layers": 8,
35
+ "output_past": true,
36
+ "pad_token_id": 0,
37
+ "relative_attention_max_distance": 128,
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
+ "tie_word_embeddings": false,
69
+ "torch_dtype": "float32",
70
+ "transformers_version": "4.26.1",
71
+ "use_cache": true,
72
+ "vocab_size": 32128
73
+ }
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:5c2ba31e341d9782d4c1bc03030da27736607ce74eaab628bddc9843c27f01de
3
+ size 307907461