hieunguyen1053 commited on
Commit
71e0a97
·
verified ·
1 Parent(s): 8f06854

Upload Text2TextGenerationPipeline

Browse files
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "checkpoints-segment",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "classifier_dropout": 0.0,
7
+ "d_ff": 3072,
8
+ "d_kv": 64,
9
+ "d_model": 768,
10
+ "decoder_start_token_id": 0,
11
+ "dense_act_fn": "relu",
12
+ "dropout_rate": 0.1,
13
+ "eos_token_id": 1,
14
+ "feed_forward_proj": "relu",
15
+ "initializer_factor": 1.0,
16
+ "is_encoder_decoder": true,
17
+ "is_gated_act": false,
18
+ "layer_norm_epsilon": 1e-06,
19
+ "model_type": "t5",
20
+ "n_positions": 512,
21
+ "num_decoder_layers": 12,
22
+ "num_heads": 12,
23
+ "num_layers": 12,
24
+ "output_past": true,
25
+ "pad_token_id": 0,
26
+ "relative_attention_max_distance": 128,
27
+ "relative_attention_num_buckets": 32,
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.45.1",
30
+ "use_cache": true,
31
+ "vocab_size": 36100
32
+ }
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.45.1"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b683c99a839b0655ea17b3ca7ef2a1064f9158805700e1fe4fa2af9b26fb0075
3
+ size 903846696
special_tokens_map.json CHANGED
@@ -1,28 +1,124 @@
1
  {
2
  "additional_special_tokens": [
3
- {
4
- "content": "[NEG]",
5
- "lstrip": false,
6
- "normalized": false,
7
- "rstrip": false,
8
- "single_word": false
9
- },
10
- {
11
- "content": "[NEU]",
12
- "lstrip": false,
13
- "normalized": false,
14
- "rstrip": false,
15
- "single_word": false
16
- },
17
- {
18
- "content": "[POS]",
19
- "lstrip": false,
20
- "normalized": false,
21
- "rstrip": false,
22
- "single_word": false
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ],
25
- "eos_token": "</s>",
26
- "pad_token": "<pad>",
27
- "unk_token": "<unk>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
 
1
  {
2
  "additional_special_tokens": [
3
+ "[NEG]",
4
+ "[NEU]",
5
+ "[POS]",
6
+ "<extra_id_0>",
7
+ "<extra_id_1>",
8
+ "<extra_id_2>",
9
+ "<extra_id_3>",
10
+ "<extra_id_4>",
11
+ "<extra_id_5>",
12
+ "<extra_id_6>",
13
+ "<extra_id_7>",
14
+ "<extra_id_8>",
15
+ "<extra_id_9>",
16
+ "<extra_id_10>",
17
+ "<extra_id_11>",
18
+ "<extra_id_12>",
19
+ "<extra_id_13>",
20
+ "<extra_id_14>",
21
+ "<extra_id_15>",
22
+ "<extra_id_16>",
23
+ "<extra_id_17>",
24
+ "<extra_id_18>",
25
+ "<extra_id_19>",
26
+ "<extra_id_20>",
27
+ "<extra_id_21>",
28
+ "<extra_id_22>",
29
+ "<extra_id_23>",
30
+ "<extra_id_24>",
31
+ "<extra_id_25>",
32
+ "<extra_id_26>",
33
+ "<extra_id_27>",
34
+ "<extra_id_28>",
35
+ "<extra_id_29>",
36
+ "<extra_id_30>",
37
+ "<extra_id_31>",
38
+ "<extra_id_32>",
39
+ "<extra_id_33>",
40
+ "<extra_id_34>",
41
+ "<extra_id_35>",
42
+ "<extra_id_36>",
43
+ "<extra_id_37>",
44
+ "<extra_id_38>",
45
+ "<extra_id_39>",
46
+ "<extra_id_40>",
47
+ "<extra_id_41>",
48
+ "<extra_id_42>",
49
+ "<extra_id_43>",
50
+ "<extra_id_44>",
51
+ "<extra_id_45>",
52
+ "<extra_id_46>",
53
+ "<extra_id_47>",
54
+ "<extra_id_48>",
55
+ "<extra_id_49>",
56
+ "<extra_id_50>",
57
+ "<extra_id_51>",
58
+ "<extra_id_52>",
59
+ "<extra_id_53>",
60
+ "<extra_id_54>",
61
+ "<extra_id_55>",
62
+ "<extra_id_56>",
63
+ "<extra_id_57>",
64
+ "<extra_id_58>",
65
+ "<extra_id_59>",
66
+ "<extra_id_60>",
67
+ "<extra_id_61>",
68
+ "<extra_id_62>",
69
+ "<extra_id_63>",
70
+ "<extra_id_64>",
71
+ "<extra_id_65>",
72
+ "<extra_id_66>",
73
+ "<extra_id_67>",
74
+ "<extra_id_68>",
75
+ "<extra_id_69>",
76
+ "<extra_id_70>",
77
+ "<extra_id_71>",
78
+ "<extra_id_72>",
79
+ "<extra_id_73>",
80
+ "<extra_id_74>",
81
+ "<extra_id_75>",
82
+ "<extra_id_76>",
83
+ "<extra_id_77>",
84
+ "<extra_id_78>",
85
+ "<extra_id_79>",
86
+ "<extra_id_80>",
87
+ "<extra_id_81>",
88
+ "<extra_id_82>",
89
+ "<extra_id_83>",
90
+ "<extra_id_84>",
91
+ "<extra_id_85>",
92
+ "<extra_id_86>",
93
+ "<extra_id_87>",
94
+ "<extra_id_88>",
95
+ "<extra_id_89>",
96
+ "<extra_id_90>",
97
+ "<extra_id_91>",
98
+ "<extra_id_92>",
99
+ "<extra_id_93>",
100
+ "<extra_id_94>",
101
+ "<extra_id_95>"
102
  ],
103
+ "eos_token": {
104
+ "content": "</s>",
105
+ "lstrip": false,
106
+ "normalized": false,
107
+ "rstrip": false,
108
+ "single_word": false
109
+ },
110
+ "pad_token": {
111
+ "content": "<pad>",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": false,
115
+ "single_word": false
116
+ },
117
+ "unk_token": {
118
+ "content": "<unk>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false
123
+ }
124
  }
tokenizer_config.json CHANGED
@@ -828,14 +828,114 @@
828
  "additional_special_tokens": [
829
  "[NEG]",
830
  "[NEU]",
831
- "[POS]"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
832
  ],
833
  "clean_up_tokenization_spaces": false,
834
  "eos_token": "</s>",
835
  "extra_ids": 96,
 
836
  "model_max_length": 1000000000000000019884624838656,
837
  "pad_token": "<pad>",
838
  "sp_model_kwargs": {},
 
839
  "tokenizer_class": "T5Tokenizer",
 
 
840
  "unk_token": "<unk>"
841
  }
 
828
  "additional_special_tokens": [
829
  "[NEG]",
830
  "[NEU]",
831
+ "[POS]",
832
+ "<extra_id_0>",
833
+ "<extra_id_1>",
834
+ "<extra_id_2>",
835
+ "<extra_id_3>",
836
+ "<extra_id_4>",
837
+ "<extra_id_5>",
838
+ "<extra_id_6>",
839
+ "<extra_id_7>",
840
+ "<extra_id_8>",
841
+ "<extra_id_9>",
842
+ "<extra_id_10>",
843
+ "<extra_id_11>",
844
+ "<extra_id_12>",
845
+ "<extra_id_13>",
846
+ "<extra_id_14>",
847
+ "<extra_id_15>",
848
+ "<extra_id_16>",
849
+ "<extra_id_17>",
850
+ "<extra_id_18>",
851
+ "<extra_id_19>",
852
+ "<extra_id_20>",
853
+ "<extra_id_21>",
854
+ "<extra_id_22>",
855
+ "<extra_id_23>",
856
+ "<extra_id_24>",
857
+ "<extra_id_25>",
858
+ "<extra_id_26>",
859
+ "<extra_id_27>",
860
+ "<extra_id_28>",
861
+ "<extra_id_29>",
862
+ "<extra_id_30>",
863
+ "<extra_id_31>",
864
+ "<extra_id_32>",
865
+ "<extra_id_33>",
866
+ "<extra_id_34>",
867
+ "<extra_id_35>",
868
+ "<extra_id_36>",
869
+ "<extra_id_37>",
870
+ "<extra_id_38>",
871
+ "<extra_id_39>",
872
+ "<extra_id_40>",
873
+ "<extra_id_41>",
874
+ "<extra_id_42>",
875
+ "<extra_id_43>",
876
+ "<extra_id_44>",
877
+ "<extra_id_45>",
878
+ "<extra_id_46>",
879
+ "<extra_id_47>",
880
+ "<extra_id_48>",
881
+ "<extra_id_49>",
882
+ "<extra_id_50>",
883
+ "<extra_id_51>",
884
+ "<extra_id_52>",
885
+ "<extra_id_53>",
886
+ "<extra_id_54>",
887
+ "<extra_id_55>",
888
+ "<extra_id_56>",
889
+ "<extra_id_57>",
890
+ "<extra_id_58>",
891
+ "<extra_id_59>",
892
+ "<extra_id_60>",
893
+ "<extra_id_61>",
894
+ "<extra_id_62>",
895
+ "<extra_id_63>",
896
+ "<extra_id_64>",
897
+ "<extra_id_65>",
898
+ "<extra_id_66>",
899
+ "<extra_id_67>",
900
+ "<extra_id_68>",
901
+ "<extra_id_69>",
902
+ "<extra_id_70>",
903
+ "<extra_id_71>",
904
+ "<extra_id_72>",
905
+ "<extra_id_73>",
906
+ "<extra_id_74>",
907
+ "<extra_id_75>",
908
+ "<extra_id_76>",
909
+ "<extra_id_77>",
910
+ "<extra_id_78>",
911
+ "<extra_id_79>",
912
+ "<extra_id_80>",
913
+ "<extra_id_81>",
914
+ "<extra_id_82>",
915
+ "<extra_id_83>",
916
+ "<extra_id_84>",
917
+ "<extra_id_85>",
918
+ "<extra_id_86>",
919
+ "<extra_id_87>",
920
+ "<extra_id_88>",
921
+ "<extra_id_89>",
922
+ "<extra_id_90>",
923
+ "<extra_id_91>",
924
+ "<extra_id_92>",
925
+ "<extra_id_93>",
926
+ "<extra_id_94>",
927
+ "<extra_id_95>"
928
  ],
929
  "clean_up_tokenization_spaces": false,
930
  "eos_token": "</s>",
931
  "extra_ids": 96,
932
+ "max_length": 128,
933
  "model_max_length": 1000000000000000019884624838656,
934
  "pad_token": "<pad>",
935
  "sp_model_kwargs": {},
936
+ "stride": 0,
937
  "tokenizer_class": "T5Tokenizer",
938
+ "truncation_side": "right",
939
+ "truncation_strategy": "longest_first",
940
  "unk_token": "<unk>"
941
  }