raratu commited on
Commit
d9fe87b
·
verified ·
1 Parent(s): 0a0e989

Add verified Irodori-TTS-v4.1-Small iOS ONNX pack

Browse files
LICENSES/ModernBERT-MIT.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2025 SB Intuitions
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
README.md CHANGED
@@ -14,6 +14,7 @@ tags:
14
 
15
  ONNX model packs exported for the Onsei iOS client from the following upstream models:
16
 
 
17
  - [`Aratako/Irodori-TTS-500M-v3`](https://huggingface.co/Aratako/Irodori-TTS-500M-v3), source revision `236c1e56591279fc24e3c1bf6609fc06e48dde28`
18
  - [`Aratako/Irodori-TTS-600M-v3-VoiceDesign`](https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign), source revision `e863a3a93e652e09afeff3e84823a206a0a60314`
19
  - [`Aratako/Semantic-DACVAE-Japanese-32dim`](https://huggingface.co/Aratako/Semantic-DACVAE-Japanese-32dim)
@@ -23,6 +24,7 @@ These files are converted runtime artifacts, not new model weights. They are not
23
 
24
  ## Packs
25
 
 
26
  - `500m-v3/`: standard Japanese TTS and reference-audio voice cloning.
27
  - `600m-v3-vd/`: VoiceDesign model with caption conditioning.
28
 
@@ -30,7 +32,7 @@ Each pack contains the split `context_kv.onnx` + `dit_step.onnx` execution path
30
 
31
  ## Licenses and attribution
32
 
33
- The Irodori-TTS model weights, Semantic-DACVAE model weights, and conversion code are distributed under the MIT License. The llm-jp tokenizer is distributed under Apache License 2.0. See `LICENSES/` and `THIRD_PARTY_NOTICES.md`. Each component remains subject to its own license; no relicensing is implied.
34
 
35
  ## Responsible use
36
 
@@ -54,4 +56,3 @@ The ONNX export used here does not add a SilentCipher watermark. Applications us
54
  howpublished = {https://huggingface.co/Aratako/Irodori-TTS-500M-v3}
55
  }
56
  ```
57
-
 
14
 
15
  ONNX model packs exported for the Onsei iOS client from the following upstream models:
16
 
17
+ - [`Aratako/Irodori-TTS-v4.1-Small`](https://huggingface.co/Aratako/Irodori-TTS-v4.1-Small), source revision `2b28324dc263ed5e6638b3cf3dd94c82ead07b4b`
18
  - [`Aratako/Irodori-TTS-500M-v3`](https://huggingface.co/Aratako/Irodori-TTS-500M-v3), source revision `236c1e56591279fc24e3c1bf6609fc06e48dde28`
19
  - [`Aratako/Irodori-TTS-600M-v3-VoiceDesign`](https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign), source revision `e863a3a93e652e09afeff3e84823a206a0a60314`
20
  - [`Aratako/Semantic-DACVAE-Japanese-32dim`](https://huggingface.co/Aratako/Semantic-DACVAE-Japanese-32dim)
 
24
 
25
  ## Packs
26
 
27
+ - `v4.1-small/`: unified Japanese TTS, reference cloning and VoiceDesign, with the improved v4.1 duration predictor. `text_encoder.onnx` contains the shared ModernBERT backbone and both `text_state` and `caption_state` outputs. The app reuses one session for both inputs. No separate `caption_encoder.onnx` is needed. Requires the v4.1-compatible iOS client.
28
  - `500m-v3/`: standard Japanese TTS and reference-audio voice cloning.
29
  - `600m-v3-vd/`: VoiceDesign model with caption conditioning.
30
 
 
32
 
33
  ## Licenses and attribution
34
 
35
+ The Irodori-TTS model weights, Semantic-DACVAE model weights, ModernBERT-ja-310m encoder/tokenizer, and conversion code are distributed under the MIT License. The legacy llm-jp tokenizer is distributed under Apache License 2.0. See `LICENSES/` and `THIRD_PARTY_NOTICES.md`. Each component remains subject to its own license; no relicensing is implied.
36
 
37
  ## Responsible use
38
 
 
56
  howpublished = {https://huggingface.co/Aratako/Irodori-TTS-500M-v3}
57
  }
58
  ```
 
THIRD_PARTY_NOTICES.md CHANGED
@@ -2,6 +2,8 @@
2
 
3
  ## Irodori-TTS
4
 
 
 
5
  - Copyright: Chihiro Arata and contributors
6
  - Sources: https://huggingface.co/Aratako/Irodori-TTS-500M-v3 and https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign
7
  - License: MIT (`LICENSES/MIT.txt`)
@@ -28,3 +30,9 @@ The responsible-use restrictions and disclaimers from the upstream model cards a
28
  - Source: https://github.com/Aratako/Irodori-TTS
29
  - License: MIT (`LICENSES/MIT.txt`)
30
 
 
 
 
 
 
 
 
2
 
3
  ## Irodori-TTS
4
 
5
+ - v4.1 source: https://huggingface.co/Aratako/Irodori-TTS-v4.1-Small (revision `2b28324dc263ed5e6638b3cf3dd94c82ead07b4b`)
6
+ - v4 implementation: https://github.com/Aratako/Irodori-TTS (revision `8224dafb46d0aba89209a8f905f1cb7e3299d9c1`); shared backbone export and tensor-based attention mask handling for dynamic ONNX inputs.
7
  - Copyright: Chihiro Arata and contributors
8
  - Sources: https://huggingface.co/Aratako/Irodori-TTS-500M-v3 and https://huggingface.co/Aratako/Irodori-TTS-600M-v3-VoiceDesign
9
  - License: MIT (`LICENSES/MIT.txt`)
 
30
  - Source: https://github.com/Aratako/Irodori-TTS
31
  - License: MIT (`LICENSES/MIT.txt`)
32
 
33
+ ## ModernBERT-ja-310m (v4.1 encoder and tokenizer)
34
+
35
+ - Source: https://huggingface.co/sbintuitions/modernbert-ja-310m
36
+ - Copyright: SB Intuitions and contributors
37
+ - License: MIT
38
+ - The fine-tuned encoder and exact tokenizer are redistributed as part of the Irodori-TTS-v4.1-Small conversion. Text and caption share one encoder graph.
manifest.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "schemaVersion": 1,
3
  "repository": "raratu/Onsei-iOS-Models",
4
- "revision": "ios-v1",
5
  "packs": {
6
  "500m-v3": {
7
  "files": [
@@ -105,6 +105,60 @@
105
  "sha256": "955dc1fa623fab38cc92a3f4ee172423ae6d73201c4207569bfdf5626bc733f0"
106
  }
107
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  }
109
  }
110
  }
 
1
  {
2
  "schemaVersion": 1,
3
  "repository": "raratu/Onsei-iOS-Models",
4
+ "revision": "ios-v2",
5
  "packs": {
6
  "500m-v3": {
7
  "files": [
 
105
  "sha256": "955dc1fa623fab38cc92a3f4ee172423ae6d73201c4207569bfdf5626bc733f0"
106
  }
107
  ]
108
+ },
109
+ "v4.1-small": {
110
+ "files": [
111
+ {
112
+ "path": "config.json",
113
+ "size": 2071,
114
+ "sha256": "f6b12d8c6b076b08fea876d402008e659773f2300c0f1e279b3b5174e968535c"
115
+ },
116
+ {
117
+ "path": "text_encoder.onnx",
118
+ "size": 1272933729,
119
+ "sha256": "961efbf4b01e47114e75b62210f29db1568acf244308c7b8657c245061fc2f39"
120
+ },
121
+ {
122
+ "path": "context_kv.onnx",
123
+ "size": 220370311,
124
+ "sha256": "5700d738f68ac9df1ed868f7fa983450897a240531d4877c4794e1ba9087c22e"
125
+ },
126
+ {
127
+ "path": "dit_step.onnx",
128
+ "size": 1243780959,
129
+ "sha256": "e772e50cdfbc2c72d6ea153cbcbe5f00ec10d4006d9bc1bc727e4a6f69b21877"
130
+ },
131
+ {
132
+ "path": "duration.onnx",
133
+ "size": 87172678,
134
+ "sha256": "b807f0e9a3e86bce4fd4324db6da2ded1627f6af3ed155b918e249f2fde50809"
135
+ },
136
+ {
137
+ "path": "speaker_encoder.onnx",
138
+ "size": 242880837,
139
+ "sha256": "ecfa3a47f0a5bde19a4fcdca46d27fe51da97fbf68897476dca313017931945f"
140
+ },
141
+ {
142
+ "path": "dacvae_encode.onnx",
143
+ "size": 109452758,
144
+ "sha256": "3ccc52d3a5b7af5a7f2ade7f187e277c6f7d457b609db2206ea25b8956b34169"
145
+ },
146
+ {
147
+ "path": "dacvae_decode.onnx",
148
+ "size": 261400162,
149
+ "sha256": "48f55372b800130ce3f56895501fcb154bac486a9ac805da1c39ccd06e2d1e48"
150
+ },
151
+ {
152
+ "path": "tokenizer/tokenizer.json",
153
+ "size": 6718495,
154
+ "sha256": "6a0734cf21c802169defaffe719bc2ef12bb9d0be37e54b61ed27aa89394723d"
155
+ },
156
+ {
157
+ "path": "tokenizer/tokenizer_config.json",
158
+ "size": 668,
159
+ "sha256": "d229a271c64de1a7939d20d3665498e873fa91d5ee2edf135d73ec752cb9c9d3"
160
+ }
161
+ ]
162
  }
163
  }
164
  }
v4.1-small/config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": {
3
+ "latent_dim": 32,
4
+ "latent_patch_size": 1,
5
+ "model_dim": 1280,
6
+ "num_layers": 12,
7
+ "num_heads": 20,
8
+ "mlp_ratio": 2.875,
9
+ "text_mlp_ratio": 2.6,
10
+ "speaker_mlp_ratio": 2.6,
11
+ "dropout": 0.0,
12
+ "text_vocab_size": 102400,
13
+ "text_tokenizer_repo": "sbintuitions/modernbert-ja-310m",
14
+ "text_encoder_revision": "77675fc96a7e445e982e2ba90246b816efc74ec6",
15
+ "text_add_bos": true,
16
+ "text_encoder_type": "pretrained",
17
+ "pretrained_projector_type": "residual_mlp",
18
+ "pretrained_projector_hidden_ratio": 2.0,
19
+ "pretrained_projector_dropout": 0.0,
20
+ "text_dim": 512,
21
+ "text_layers": 14,
22
+ "text_heads": 10,
23
+ "use_caption_condition": true,
24
+ "use_speaker_condition": true,
25
+ "caption_vocab_size": 102400,
26
+ "caption_tokenizer_repo": "sbintuitions/modernbert-ja-310m",
27
+ "caption_add_bos": true,
28
+ "caption_dim": 512,
29
+ "caption_layers": null,
30
+ "caption_heads": null,
31
+ "caption_mlp_ratio": null,
32
+ "speaker_dim": 768,
33
+ "speaker_layers": 8,
34
+ "speaker_heads": 12,
35
+ "speaker_patch_size": 4,
36
+ "timestep_embed_dim": 512,
37
+ "adaln_rank": 192,
38
+ "norm_eps": 1e-05,
39
+ "use_duration_predictor": true,
40
+ "duration_aux_dim": 14,
41
+ "duration_hidden_dim": 1024,
42
+ "duration_layers": 3,
43
+ "duration_dropout": 0.1,
44
+ "duration_attention_heads": 8,
45
+ "duration_architecture": "token_sum_dual_adarn_zero_no_aux",
46
+ "duration_token_init_frames": 9.0,
47
+ "duration_speaker_fusion": "adarn_zero",
48
+ "duration_caption_fusion": "adarn_zero",
49
+ "duration_caption_pooling": "masked_mean"
50
+ },
51
+ "inference": {
52
+ "max_text_len": 256,
53
+ "max_caption_len": 512,
54
+ "ref_max_seconds": 120.0
55
+ },
56
+ "export": {
57
+ "seq_len": 128,
58
+ "text_len": 256,
59
+ "caption_len": 512,
60
+ "ref_len": 200,
61
+ "sample_rate": 48000,
62
+ "hop_length": 1920,
63
+ "requires_duration": true,
64
+ "shared_condition_encoder": true,
65
+ "context_kv_cache": true,
66
+ "latent_dim": 32,
67
+ "num_layers": 12,
68
+ "has_caption": true,
69
+ "has_speaker_kv_scale": true,
70
+ "lora_merged": false
71
+ }
72
+ }
v4.1-small/context_kv.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5700d738f68ac9df1ed868f7fa983450897a240531d4877c4794e1ba9087c22e
3
+ size 220370311
v4.1-small/dacvae_decode.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48f55372b800130ce3f56895501fcb154bac486a9ac805da1c39ccd06e2d1e48
3
+ size 261400162
v4.1-small/dacvae_encode.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ccc52d3a5b7af5a7f2ade7f187e277c6f7d457b609db2206ea25b8956b34169
3
+ size 109452758
v4.1-small/dit_step.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e772e50cdfbc2c72d6ea153cbcbe5f00ec10d4006d9bc1bc727e4a6f69b21877
3
+ size 1243780959
v4.1-small/duration.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b807f0e9a3e86bce4fd4324db6da2ded1627f6af3ed155b918e249f2fde50809
3
+ size 87172678
v4.1-small/speaker_encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ecfa3a47f0a5bde19a4fcdca46d27fe51da97fbf68897476dca313017931945f
3
+ size 242880837
v4.1-small/text_encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:961efbf4b01e47114e75b62210f29db1568acf244308c7b8657c245061fc2f39
3
+ size 1272933729
v4.1-small/tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
v4.1-small/tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_dummy_prefix_space": false,
3
+ "add_prefix_space": false,
4
+ "backend": "tokenizers",
5
+ "bos_token": "<s>",
6
+ "clean_up_tokenization_spaces": false,
7
+ "cls_token": "<cls>",
8
+ "do_lower_case": false,
9
+ "eos_token": "</s>",
10
+ "extra_ids": 0,
11
+ "is_local": false,
12
+ "keep_accents": true,
13
+ "legacy": false,
14
+ "local_files_only": false,
15
+ "mask_token": "<mask>",
16
+ "model_max_length": 1000000000000000019884624838656,
17
+ "pad_token": "<pad>",
18
+ "padding_side": "right",
19
+ "sep_token": "<sep>",
20
+ "sp_model_kwargs": {},
21
+ "spaces_between_special_tokens": false,
22
+ "tokenizer_class": "TokenizersBackend",
23
+ "unk_token": "<unk>",
24
+ "use_default_system_prompt": false
25
+ }