whk-sjtu commited on
Commit
e2aea9c
·
0 Parent(s):

Release dots.tts.edit

Browse files
.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ - zh
6
+ pipeline_tag: text-to-speech
7
+ tags:
8
+ - audio
9
+ - speech-editing
10
+ - text-to-speech
11
+ - safetensors
12
+ ---
13
+
14
+ # dots.tts.edit
15
+
16
+ **dots.tts.edit** is a continuous autoregressive model for precise,
17
+ instruction-controlled speech editing and zero-shot text-to-speech synthesis.
18
+ It supports text replacement, insertion and deletion, emotion and prosody
19
+ control, pauses, enhancement, and background-audio operations while preserving
20
+ the speaker and the acoustic context outside edited regions.
21
+
22
+ - [Code](https://github.com/studio-dots-ai/dots.tts/tree/main)
23
+ - [Paper](https://arxiv.org/abs/2608.02673)
24
+ - [Interactive Playground](https://dots-studio-dots-tts-edit.hf.space)
25
+ - [Demo Page](https://dots-studio-dots-tts-edit-demo.static.hf.space)
26
+
27
+ ## Model details
28
+
29
+ The model supports English and Mandarin speech editing and zero-shot speech
30
+ synthesis. It produces 48 kHz audio. The core weights use BF16; the speaker
31
+ encoder and vocoder retain FP32 weights.
32
+
33
+ Supported editing operations include:
34
+
35
+ - Text replacement, insertion, and deletion
36
+ - Localized emotion control
37
+ - Pitch and speaking-rate control
38
+ - Pause insertion and reduction
39
+ - Speech enhancement and background-audio operations
40
+ - Compositions of multiple edit operations
41
+
42
+ ## Installation
43
+
44
+ Install the latest `main` branch of
45
+ [dots.tts](https://github.com/studio-dots-ai/dots.tts) and its recommended
46
+ dependencies:
47
+
48
+ ```bash
49
+ git clone --branch main --single-branch https://github.com/studio-dots-ai/dots.tts.git
50
+ cd dots.tts
51
+ python -m pip install -e . -c constraints/recommended.txt
52
+ ```
53
+
54
+ ## Speech editing CLI
55
+
56
+ Source audio, a tagged instruction, and the output path are required. Source
57
+ and target transcripts are optional; when omitted, both are derived from the
58
+ instruction.
59
+
60
+ ```bash
61
+ dots.tts.edit \
62
+ --model-name-or-path dots-studio/dots.tts.edit \
63
+ --source-audio /path/to/source.wav \
64
+ --instruction 'Hello <sub targ="small">brave</sub> world.' \
65
+ --output edited.wav
66
+ ```
67
+
68
+ Use `--source-text` and `--target-text` to override the derived transcripts.
69
+ Source-speaker guidance defaults to `auto`: it is disabled when the instruction
70
+ contains at least one operation and every operation is `emo`, `bg`, or
71
+ `enhance`, and enabled for text, pitch, rate, pause, speaker-transfer, or mixed
72
+ edits. Pass bare `--use-xvector` (or
73
+ `--use-xvector on`) to force it on, and `--use-xvector off` to force it off.
74
+ Speaker guidance uses a default scale of `1.5`; override it with
75
+ `--speaker-scale` when needed.
76
+
77
+ ## Python API
78
+
79
+ ```python
80
+ import soundfile as sf
81
+
82
+ from dots_tts.edit_runtime import DotsTtsEditRuntime
83
+
84
+ runtime = DotsTtsEditRuntime.from_pretrained(
85
+ "dots-studio/dots.tts.edit",
86
+ precision="bfloat16",
87
+ )
88
+ result = runtime.generate_edit(
89
+ source_audio_path="/path/to/source.wav",
90
+ instruction='Hello <sub targ="small">brave</sub> world.',
91
+ # source_text and target_text are optional overrides.
92
+ # use_xvector defaults to "auto"; pass True or False to override it.
93
+ )
94
+ sf.write(
95
+ "edited.wav",
96
+ result["audio"].float().cpu().squeeze().numpy(),
97
+ result["sample_rate"],
98
+ )
99
+ ```
100
+
101
+ Supported structural tags include `<del>`, `<ins>`,
102
+ `<sub targ="replacement">`, `<emo>`, `<pitch>`, `<rate>`, `<enhance>`,
103
+ `<bg>`, `<pause/>`, and `<spk_transfer/>`. Malformed instructions and
104
+ instructions that derive an empty source or target transcript are rejected.
105
+
106
+ `DotsTtsEditRuntime` also provides `generate` and `generate_stream` for
107
+ zero-shot TTS with the same checkpoint. See the
108
+ [code repository](https://github.com/studio-dots-ai/dots.tts) for examples.
109
+
110
+ ## Local Edit Playground
111
+
112
+ Build the committed frontend source with Node.js 20+ and launch the local app:
113
+
114
+ ```bash
115
+ cd apps/edit_playground/frontend
116
+ npm ci
117
+ npm run build
118
+ cd ../../..
119
+ python apps/edit_playground/app.py \
120
+ --model-name-or-path dots-studio/dots.tts.edit \
121
+ --optimize
122
+ ```
123
+
124
+ ## Limitations and responsible use
125
+
126
+ Generated or edited speech may contain pronunciation, timing,
127
+ speaker-similarity, or instruction-following errors. Do not use the model to
128
+ impersonate people, mislead listeners, violate consent, or create unlawful
129
+ content. Users are responsible for complying with applicable laws and for
130
+ clearly disclosing synthetic or edited audio where appropriate.
131
+
132
+ ## License
133
+
134
+ See the repository license metadata and the
135
+ [`dots.tts`](https://github.com/studio-dots-ai/dots.tts) project for the terms
136
+ that apply to the weights and code.
added_tokens.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|audio_comp_end|>": 151667,
5
+ "<|audio_comp_span|>": 151666,
6
+ "<|audio_comp_start|>": 151665,
7
+ "<|audio_gen_end|>": 151670,
8
+ "<|audio_gen_span|>": 151669,
9
+ "<|audio_gen_start|>": 151668,
10
+ "<|box_end|>": 151649,
11
+ "<|box_start|>": 151648,
12
+ "<|endoftext|>": 151643,
13
+ "<|file_sep|>": 151664,
14
+ "<|fim_middle|>": 151660,
15
+ "<|fim_pad|>": 151662,
16
+ "<|fim_prefix|>": 151659,
17
+ "<|fim_suffix|>": 151661,
18
+ "<|im_end|>": 151645,
19
+ "<|im_start|>": 151644,
20
+ "<|image_pad|>": 151655,
21
+ "<|object_ref_end|>": 151647,
22
+ "<|object_ref_start|>": 151646,
23
+ "<|quad_end|>": 151651,
24
+ "<|quad_start|>": 151650,
25
+ "<|repo_name|>": 151663,
26
+ "<|text_cond_end|>": 151671,
27
+ "<|video_pad|>": 151656,
28
+ "<|vision_end|>": 151653,
29
+ "<|vision_pad|>": 151654,
30
+ "<|vision_start|>": 151652
31
+ }
chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "dots_tts",
3
+ "latent_dim": 128,
4
+ "patch_size": 4,
5
+ "jit_mode": "1d",
6
+ "encoder_type": "vse",
7
+ "prediction_type": "v",
8
+ "cfg_droprate": 0.2,
9
+ "PatchEncoder": {
10
+ "num_layers": 24,
11
+ "num_heads": 16,
12
+ "hidden_size": 1024,
13
+ "ffn_hidden_size": 4096,
14
+ "modulation": false,
15
+ "qkv_bias": false,
16
+ "qk_norm": true,
17
+ "attn_dropout": 0.0,
18
+ "dropout": 0.1,
19
+ "norm_layer": "RMSNorm",
20
+ "alibi_bias": false,
21
+ "rotary_bias": true,
22
+ "rotary_theta": 10000.0,
23
+ "input_dim": 128,
24
+ "causal": true
25
+ },
26
+ "DiT": {
27
+ "num_layers": 18,
28
+ "num_heads": 16,
29
+ "hidden_size": 1024,
30
+ "ffn_hidden_size": 4096,
31
+ "modulation": true,
32
+ "qkv_bias": false,
33
+ "qk_norm": true,
34
+ "attn_dropout": 0.0,
35
+ "dropout": 0.0,
36
+ "norm_layer": "RMSNorm",
37
+ "alibi_bias": false,
38
+ "rotary_bias": true,
39
+ "rotary_theta": 10000.0,
40
+ "attn_backend": "sdpa",
41
+ "max_tokens": 8192
42
+ },
43
+ "vocoder": {
44
+ "type": "audio_vae",
45
+ "use_cuda_kernel": false,
46
+ "sample_rate": 48000,
47
+ "upsample_rates": [
48
+ 10,
49
+ 6,
50
+ 4,
51
+ 2,
52
+ 2,
53
+ 2
54
+ ],
55
+ "upsample_kernel_sizes": [
56
+ 20,
57
+ 12,
58
+ 8,
59
+ 4,
60
+ 4,
61
+ 4
62
+ ],
63
+ "upsample_initial_channel": 1536,
64
+ "resblock": "1",
65
+ "resblock_kernel_sizes": [
66
+ 3,
67
+ 7,
68
+ 11
69
+ ],
70
+ "resblock_dilation_sizes": [
71
+ [
72
+ 1,
73
+ 3,
74
+ 5
75
+ ],
76
+ [
77
+ 1,
78
+ 3,
79
+ 5
80
+ ],
81
+ [
82
+ 1,
83
+ 3,
84
+ 5
85
+ ]
86
+ ],
87
+ "downsample_rates": [
88
+ 2,
89
+ 2,
90
+ 2,
91
+ 4,
92
+ 6,
93
+ 10
94
+ ],
95
+ "downsample_channels": [
96
+ 12,
97
+ 24,
98
+ 48,
99
+ 96,
100
+ 192,
101
+ 384,
102
+ 768
103
+ ],
104
+ "activation": "snakebeta",
105
+ "snake_logscale": true,
106
+ "latent_dim": 128,
107
+ "causal": true,
108
+ "mi_num_layers": 4,
109
+ "mi_skip": true,
110
+ "causal_encoder": true,
111
+ "use_bias_at_final": false,
112
+ "use_tanh_at_final": false
113
+ },
114
+ "fm_sigma": 0.0,
115
+ "t_sample_mode": "uniform",
116
+ "P_mean": -0.8,
117
+ "P_std": 0.8,
118
+ "xvec_drop_rate": 0.2,
119
+ "campplus_embedding_size": 512,
120
+ "xvec_max_audio_seconds": 10.0,
121
+ "architectures": [
122
+ "DotsTTSForConditionalGeneration"
123
+ ]
124
+ }
latent_stats.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:047cddab7ae613a43f7147ef0a7dead409f5a3875c2e40ab413fe2e4107d76e0
3
+ size 2893
llm_config.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 151672,
3
+ "max_position_embeddings": 131072,
4
+ "hidden_size": 1536,
5
+ "intermediate_size": 8960,
6
+ "num_hidden_layers": 28,
7
+ "num_attention_heads": 12,
8
+ "use_sliding_window": false,
9
+ "sliding_window": null,
10
+ "max_window_layers": 28,
11
+ "num_key_value_heads": 2,
12
+ "hidden_act": "silu",
13
+ "initializer_range": 0.02,
14
+ "rms_norm_eps": 1e-06,
15
+ "use_cache": true,
16
+ "rope_theta": 1000000.0,
17
+ "rope_scaling": null,
18
+ "attention_dropout": 0.0,
19
+ "layer_types": [
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention"
48
+ ],
49
+ "return_dict": true,
50
+ "output_hidden_states": false,
51
+ "torchscript": false,
52
+ "dtype": "bfloat16",
53
+ "pruned_heads": {},
54
+ "tie_word_embeddings": true,
55
+ "chunk_size_feed_forward": 0,
56
+ "is_encoder_decoder": false,
57
+ "is_decoder": false,
58
+ "cross_attention_hidden_size": null,
59
+ "add_cross_attention": false,
60
+ "tie_encoder_decoder": false,
61
+ "architectures": [
62
+ "Qwen2ForCausalLM"
63
+ ],
64
+ "finetuning_task": null,
65
+ "id2label": {
66
+ "0": "LABEL_0",
67
+ "1": "LABEL_1"
68
+ },
69
+ "label2id": {
70
+ "LABEL_0": 0,
71
+ "LABEL_1": 1
72
+ },
73
+ "task_specific_params": null,
74
+ "problem_type": null,
75
+ "tokenizer_class": null,
76
+ "prefix": null,
77
+ "bos_token_id": 151643,
78
+ "pad_token_id": null,
79
+ "eos_token_id": 151643,
80
+ "sep_token_id": null,
81
+ "decoder_start_token_id": null,
82
+ "max_length": 20,
83
+ "min_length": 0,
84
+ "do_sample": false,
85
+ "early_stopping": false,
86
+ "num_beams": 1,
87
+ "temperature": 1.0,
88
+ "top_k": 50,
89
+ "top_p": 1.0,
90
+ "typical_p": 1.0,
91
+ "repetition_penalty": 1.0,
92
+ "length_penalty": 1.0,
93
+ "no_repeat_ngram_size": 0,
94
+ "encoder_no_repeat_ngram_size": 0,
95
+ "bad_words_ids": null,
96
+ "num_return_sequences": 1,
97
+ "output_scores": false,
98
+ "return_dict_in_generate": false,
99
+ "forced_bos_token_id": null,
100
+ "forced_eos_token_id": null,
101
+ "remove_invalid_values": false,
102
+ "exponential_decay_length_penalty": null,
103
+ "suppress_tokens": null,
104
+ "begin_suppress_tokens": null,
105
+ "num_beam_groups": 1,
106
+ "diversity_penalty": 0.0,
107
+ "_name_or_path": "",
108
+ "transformers_version": "4.57.0",
109
+ "use_mrope": false,
110
+ "tf_legacy_loss": false,
111
+ "use_bfloat16": false,
112
+ "model_type": "qwen2",
113
+ "output_attentions": false
114
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12bb38bafcc59e8bc29eced971dff1a2426446ad57c1d2c3264d53d0d27b9b4b
3
+ size 4396292364
speaker_encoder.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cf3861c9dee79e4db34bd0b8a4155e68bed27a7c6274e168bb6ee4fed191c85
3
+ size 29150484
special_tokens_map.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|audio_comp_start|>",
4
+ "<|audio_comp_span|>",
5
+ "<|audio_comp_end|>",
6
+ "<|audio_gen_start|>",
7
+ "<|audio_gen_span|>",
8
+ "<|audio_gen_end|>",
9
+ "<|text_cond_end|>"
10
+ ],
11
+ "eos_token": {
12
+ "content": "<|endoftext|>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "pad_token": {
19
+ "content": "<|endoftext|>",
20
+ "lstrip": false,
21
+ "normalized": false,
22
+ "rstrip": false,
23
+ "single_word": false
24
+ }
25
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c16521f66774c7a4774e5303b7c8ec5c99830c0be5aef6c6edde3ca2a5e05dd0
3
+ size 11423263
tokenizer_config.json ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<|audio_comp_start|>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": true
188
+ },
189
+ "151666": {
190
+ "content": "<|audio_comp_span|>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": true
196
+ },
197
+ "151667": {
198
+ "content": "<|audio_comp_end|>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": true
204
+ },
205
+ "151668": {
206
+ "content": "<|audio_gen_start|>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": true
212
+ },
213
+ "151669": {
214
+ "content": "<|audio_gen_span|>",
215
+ "lstrip": false,
216
+ "normalized": false,
217
+ "rstrip": false,
218
+ "single_word": false,
219
+ "special": true
220
+ },
221
+ "151670": {
222
+ "content": "<|audio_gen_end|>",
223
+ "lstrip": false,
224
+ "normalized": false,
225
+ "rstrip": false,
226
+ "single_word": false,
227
+ "special": true
228
+ },
229
+ "151671": {
230
+ "content": "<|text_cond_end|>",
231
+ "lstrip": false,
232
+ "normalized": false,
233
+ "rstrip": false,
234
+ "single_word": false,
235
+ "special": true
236
+ }
237
+ },
238
+ "additional_special_tokens": [
239
+ "<|audio_comp_start|>",
240
+ "<|audio_comp_span|>",
241
+ "<|audio_comp_end|>",
242
+ "<|audio_gen_start|>",
243
+ "<|audio_gen_span|>",
244
+ "<|audio_gen_end|>",
245
+ "<|text_cond_end|>"
246
+ ],
247
+ "bos_token": null,
248
+ "clean_up_tokenization_spaces": false,
249
+ "eos_token": "<|endoftext|>",
250
+ "errors": "replace",
251
+ "extra_special_tokens": {},
252
+ "model_max_length": 131072,
253
+ "pad_token": "<|endoftext|>",
254
+ "split_special_tokens": false,
255
+ "tokenizer_class": "Qwen2Tokenizer",
256
+ "unk_token": null
257
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
vocoder.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0e45c08f480df67ac4c354b465355fcc7e2f6c8765263b6dfeddd1f4671c93d
3
+ size 723585584