Luigi commited on
Commit
07154ed
·
verified ·
1 Parent(s): 6a2e3ae

demo: tokenizer config.json

Browse files
Files changed (1) hide show
  1. tokenizer/config.json +197 -0
tokenizer/config.json ADDED
@@ -0,0 +1,197 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "MossTTSNanoForCausalLM"
5
+ ],
6
+ "attn_implementation": "flash_attention_2",
7
+ "audio_assistant_slot_token_id": 9,
8
+ "audio_codebook_sizes": [
9
+ 1024,
10
+ 1024,
11
+ 1024,
12
+ 1024,
13
+ 1024,
14
+ 1024,
15
+ 1024,
16
+ 1024,
17
+ 1024,
18
+ 1024,
19
+ 1024,
20
+ 1024,
21
+ 1024,
22
+ 1024,
23
+ 1024,
24
+ 1024
25
+ ],
26
+ "audio_end_token_id": 7,
27
+ "audio_pad_token_id": 1024,
28
+ "audio_start_token_id": 6,
29
+ "audio_tokenizer_pretrained_name_or_path": "OpenMOSS-Team/MOSS-Audio-Tokenizer-Nano",
30
+ "audio_tokenizer_sample_rate": 48000,
31
+ "audio_tokenizer_type": "moss-audio-tokenizer-nano",
32
+ "audio_user_slot_token_id": 8,
33
+ "audio_vocab_size": 1024,
34
+ "bad_words_ids": null,
35
+ "begin_suppress_tokens": null,
36
+ "bos_token_id": null,
37
+ "chunk_size_feed_forward": 0,
38
+ "cross_attention_hidden_size": null,
39
+ "decoder_start_token_id": null,
40
+ "diversity_penalty": 0.0,
41
+ "do_sample": false,
42
+ "dtype": "float32",
43
+ "early_stopping": false,
44
+ "encoder_no_repeat_ngram_size": 0,
45
+ "eos_token_id": null,
46
+ "exponential_decay_length_penalty": null,
47
+ "finetuning_task": null,
48
+ "forced_bos_token_id": null,
49
+ "forced_eos_token_id": null,
50
+ "gpt2_config": {
51
+ "_name_or_path": "",
52
+ "activation_function": "gelu_new",
53
+ "add_cross_attention": false,
54
+ "architectures": null,
55
+ "attn_pdrop": 0.0,
56
+ "bad_words_ids": null,
57
+ "begin_suppress_tokens": null,
58
+ "bos_token_id": 1,
59
+ "chunk_size_feed_forward": 0,
60
+ "cross_attention_hidden_size": null,
61
+ "decoder_start_token_id": null,
62
+ "diversity_penalty": 0.0,
63
+ "do_sample": false,
64
+ "dtype": null,
65
+ "early_stopping": false,
66
+ "embd_pdrop": 0.0,
67
+ "encoder_no_repeat_ngram_size": 0,
68
+ "eos_token_id": 2,
69
+ "exponential_decay_length_penalty": null,
70
+ "finetuning_task": null,
71
+ "forced_bos_token_id": null,
72
+ "forced_eos_token_id": null,
73
+ "id2label": {
74
+ "0": "LABEL_0",
75
+ "1": "LABEL_1"
76
+ },
77
+ "initializer_range": 0.02,
78
+ "is_decoder": false,
79
+ "is_encoder_decoder": false,
80
+ "label2id": {
81
+ "LABEL_0": 0,
82
+ "LABEL_1": 1
83
+ },
84
+ "layer_norm_epsilon": 1e-05,
85
+ "length_penalty": 1.0,
86
+ "max_length": 20,
87
+ "min_length": 0,
88
+ "model_type": "gpt2",
89
+ "n_ctx": 32768,
90
+ "n_embd": 768,
91
+ "n_head": 12,
92
+ "n_inner": 3072,
93
+ "n_layer": 12,
94
+ "n_positions": 32768,
95
+ "no_repeat_ngram_size": 0,
96
+ "num_beam_groups": 1,
97
+ "num_beams": 1,
98
+ "num_return_sequences": 1,
99
+ "output_attentions": false,
100
+ "output_hidden_states": false,
101
+ "output_scores": false,
102
+ "pad_token_id": 3,
103
+ "position_embedding_type": "rope",
104
+ "prefix": null,
105
+ "problem_type": null,
106
+ "pruned_heads": {},
107
+ "remove_invalid_values": false,
108
+ "reorder_and_upcast_attn": false,
109
+ "repetition_penalty": 1.0,
110
+ "resid_pdrop": 0.0,
111
+ "return_dict": true,
112
+ "return_dict_in_generate": false,
113
+ "rope_base": 10000.0,
114
+ "scale_attn_by_inverse_layer_idx": false,
115
+ "scale_attn_weights": true,
116
+ "sep_token_id": null,
117
+ "summary_activation": null,
118
+ "summary_first_dropout": 0.1,
119
+ "summary_proj_to_labels": true,
120
+ "summary_type": "cls_index",
121
+ "summary_use_proj": true,
122
+ "suppress_tokens": null,
123
+ "task_specific_params": null,
124
+ "temperature": 1.0,
125
+ "tf_legacy_loss": false,
126
+ "tie_encoder_decoder": false,
127
+ "tie_word_embeddings": true,
128
+ "tokenizer_class": null,
129
+ "top_k": 50,
130
+ "top_p": 1.0,
131
+ "torchscript": false,
132
+ "transformers_version": "4.57.1",
133
+ "typical_p": 1.0,
134
+ "use_bfloat16": false,
135
+ "use_cache": true,
136
+ "vocab_size": 16384
137
+ },
138
+ "hidden_size": 768,
139
+ "id2label": {
140
+ "0": "LABEL_0",
141
+ "1": "LABEL_1"
142
+ },
143
+ "im_end_token_id": 5,
144
+ "im_start_token_id": 4,
145
+ "initializer_range": 0.02,
146
+ "is_decoder": false,
147
+ "is_encoder_decoder": false,
148
+ "label2id": {
149
+ "LABEL_0": 0,
150
+ "LABEL_1": 1
151
+ },
152
+ "length_penalty": 1.0,
153
+ "local_transformer_attn_implementation": "flash_attention_2",
154
+ "local_transformer_layers": 1,
155
+ "max_length": 20,
156
+ "max_position_embeddings": 32768,
157
+ "min_length": 0,
158
+ "model_architecture": "global_local_transformer",
159
+ "model_type": "moss_tts_nano",
160
+ "n_vq": 16,
161
+ "no_repeat_ngram_size": 0,
162
+ "num_beam_groups": 1,
163
+ "num_beams": 1,
164
+ "num_return_sequences": 1,
165
+ "output_attentions": false,
166
+ "output_hidden_states": false,
167
+ "output_scores": false,
168
+ "pad_token_id": 3,
169
+ "prefix": null,
170
+ "problem_type": null,
171
+ "pruned_heads": {},
172
+ "remove_invalid_values": false,
173
+ "repetition_penalty": 1.0,
174
+ "return_dict": true,
175
+ "return_dict_in_generate": false,
176
+ "sep_token_id": null,
177
+ "suppress_tokens": null,
178
+ "task_specific_params": null,
179
+ "temperature": 1.0,
180
+ "tf_legacy_loss": false,
181
+ "tie_encoder_decoder": false,
182
+ "tie_word_embeddings": true,
183
+ "tokenizer_class": "MossTTSNanoSentencePieceTokenizer",
184
+ "tokenizer_use_fast": false,
185
+ "top_k": 50,
186
+ "top_p": 1.0,
187
+ "torchscript": false,
188
+ "transformers_version": "4.57.1",
189
+ "typical_p": 1.0,
190
+ "use_bfloat16": false,
191
+ "vocab_size": 16384,
192
+ "auto_map": {
193
+ "AutoConfig": "configuration_moss_tts_nano.MossTTSNanoConfig",
194
+ "AutoModel": "modeling_moss_tts_nano.MossTTSNanoForCausalLM",
195
+ "AutoModelForCausalLM": "modeling_moss_tts_nano.MossTTSNanoForCausalLM"
196
+ }
197
+ }