chaiwatt commited on
Commit
2463649
·
verified ·
1 Parent(s): 83c7031

LeKa ONNX model (560 ms)

Browse files
Files changed (12) hide show
  1. .gitattributes +1 -0
  2. LICENSE +50 -0
  3. README.md +39 -0
  4. decoder.onnx +3 -0
  5. encoder.onnx +3 -0
  6. encoder.onnx.data +3 -0
  7. frontend.json +17 -0
  8. joint.onnx +3 -0
  9. mel_fb.bin +3 -0
  10. model.json +56 -0
  11. tokens.json +0 -0
  12. window.bin +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* 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
 
 
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
+ encoder.onnx.data filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ OpenMDW License Agreement, version 1.1 (OpenMDW-1.1)
2
+
3
+ By exercising rights granted to you under this agreement, you accept and
4
+ agree to its terms.
5
+
6
+ As used in this agreement, "Model Materials" means the materials provided
7
+ to you under this agreement, consisting of: (1) one or more machine
8
+ learning models (including architecture and parameters); and (2) all
9
+ related artifacts (including associated data, documentation and software)
10
+ that are provided to you hereunder.
11
+
12
+ Subject to your compliance with this agreement, permission is hereby
13
+ granted, free of charge, to deal in the Model Materials without
14
+ restriction, including under all copyright, patent, database, and trade
15
+ secret rights included or embodied therein.
16
+
17
+ If you distribute any portion of the Model Materials, you shall retain in
18
+ your distribution (1) a copy of this agreement, and (2) all copyright
19
+ notices and other notices of origin included in the Model Materials that
20
+ are applicable to your distribution.
21
+
22
+ If you file, maintain, or voluntarily participate in a lawsuit against any
23
+ person or entity asserting that the Model Materials directly or indirectly
24
+ infringe any patent or copyright, then all rights and grants made to you
25
+ hereunder are terminated, unless that lawsuit was in response to a
26
+ corresponding lawsuit first brought against you.
27
+
28
+ This agreement does not impose any restrictions or obligations with
29
+ respect to any use, modification, or sharing of any outputs generated by
30
+ using the Model Materials.
31
+
32
+ THE MODEL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
34
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NONINFRINGEMENT,
35
+ ACCURACY, OR THE ABSENCE OF LATENT OR OTHER DEFECTS OR ERRORS, WHETHER OR
36
+ NOT DISCOVERABLE, ALL TO THE GREATEST EXTENT PERMISSIBLE UNDER APPLICABLE
37
+ LAW.
38
+
39
+ YOU ARE SOLELY RESPONSIBLE FOR (1) CLEARING RIGHTS OF OTHER PERSONS THAT
40
+ MAY APPLY TO THE MODEL MATERIALS OR ANY USE THEREOF, INCLUDING WITHOUT
41
+ LIMITATION ANY PERSON'S COPYRIGHTS OR OTHER RIGHTS INCLUDED OR EMBODIED IN
42
+ THE MODEL MATERIALS; (2) OBTAINING ANY NECESSARY CONSENTS, PERMISSIONS OR
43
+ OTHER RIGHTS REQUIRED FOR ANY USE OF THE MODEL MATERIALS; OR (3)
44
+ PERFORMING ANY DUE DILIGENCE OR UNDERTAKING ANY OTHER INVESTIGATIONS INTO
45
+ THE MODEL MATERIALS OR ANYTHING INCORPORATED OR EMBODIED THEREIN.
46
+
47
+ IN NO EVENT SHALL THE PROVIDERS OF THE MODEL MATERIALS BE LIABLE FOR ANY
48
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
49
+ OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODEL
50
+ MATERIALS, THE USE THEREOF OR OTHER DEALINGS THEREIN.
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: openmdw-1.1
4
+ license_link: LICENSE
5
+ language:
6
+ - th
7
+ pipeline_tag: automatic-speech-recognition
8
+ tags:
9
+ - onnx
10
+ - streaming
11
+ - thai
12
+ base_model: iapp/OpenThai2.0-ASR-Streaming
13
+ ---
14
+
15
+ # LeKa model — OpenThai2.0 ASR Streaming (ONNX)
16
+
17
+ Thai streaming speech-to-text model files used by the **LeKa** desktop app. The app downloads them on first run and runs them locally with ONNX Runtime; no audio leaves the computer.
18
+
19
+ This is an ONNX export of [iapp/OpenThai2.0-ASR-Streaming](https://huggingface.co/iapp/OpenThai2.0-ASR-Streaming) by iApp, a Thai fine-tune of NVIDIA [nemotron-3.5-asr-streaming-0.6b](https://huggingface.co/nvidia/nemotron-3.5-asr-streaming-0.6b). The weights are unchanged (FP32); only the file format differs.
20
+
21
+ ## Files
22
+
23
+ | file | what it is |
24
+ |---|---|
25
+ | `encoder.onnx` + `encoder.onnx.data` | cache-aware FastConformer encoder, one streaming step; language prompt and joint encoder projection included |
26
+ | `decoder.onnx` | RNN-T prediction network (2-layer LSTM) + joint prediction projection |
27
+ | `joint.onnx` | joint network → logits (14,988 tokens + blank) |
28
+ | `frontend.json`, `mel_fb.bin`, `window.bin` | exact log-mel front-end constants (128 mels, n_fft 512, hop 160, pre-emphasis 0.97) |
29
+ | `model.json` | streaming constants (chunk/shift sizes, cache shapes, prompt ids, blank id) |
30
+ | `tokens.json` | vocabulary |
31
+
32
+ Latency setting: **560 ms** (`att_context_size` [56, 6]). Greedy decoding, max 2 symbols per frame, blank offset applied at decode time (−2.0 conversation, −1.0 standard).
33
+
34
+ Checked against the original NeMo decoder: identical text on all test clips.
35
+
36
+ ## Licence and credit
37
+
38
+ Released under the **OpenMDW License Agreement, version 1.1** (see `LICENSE`), the same licence as the original model.
39
+ Model by **iApp Technology** (OpenThai), built on **NVIDIA Nemotron**. All credit for training goes to them; this repository only repackages the model for ONNX Runtime.
decoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6760c8490c4794e0220b8d147fd243d2028ec55f797d6db39bfbebe0bdcfe2c
3
+ size 66272405
encoder.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74ccdb741190d74f2b81a7e6edc3e71bff0bbcd7ccd6a7cbdb15e1115cf1a451
3
+ size 41985553
encoder.onnx.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3b98fb3d855ccb80525acb522efa7a3b65cfb8930f4ee070eeb271ba6294e88
3
+ size 2457029120
frontend.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "sample_rate": 16000,
3
+ "n_fft": 512,
4
+ "win_length": 400,
5
+ "hop_length": 160,
6
+ "n_mels": 128,
7
+ "preemph": 0.97,
8
+ "log": true,
9
+ "log_zero_guard_type": "add",
10
+ "log_zero_guard_value": 5.960464477539063e-08,
11
+ "mag_power": 2.0,
12
+ "normalize": "NA",
13
+ "center": true,
14
+ "pad_value": 0.0,
15
+ "exact_pad": false,
16
+ "stft_pad_amount": null
17
+ }
joint.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f0f0a34fa6f4aaf9f1c46ed57eead88ec8c6f09e4b311bf36bd51c425708503
3
+ size 38432201
mel_fb.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:219cf29e906c3a1485963959bfe708f410cda746592ffe9b6800acf78436b1a5
3
+ size 131584
model.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "latency_ms": 560,
3
+ "att_context_size": [
4
+ 56,
5
+ 6
6
+ ],
7
+ "chunk_size": [
8
+ 49,
9
+ 56
10
+ ],
11
+ "shift_size": [
12
+ 49,
13
+ 56
14
+ ],
15
+ "pre_encode_cache_size": [
16
+ 0,
17
+ 9
18
+ ],
19
+ "drop_extra_pre_encoded": 2,
20
+ "valid_out_len": 7,
21
+ "sampling_frames": [
22
+ 1,
23
+ 8
24
+ ],
25
+ "cache_last_channel": [
26
+ 24,
27
+ 1,
28
+ 56,
29
+ 1024
30
+ ],
31
+ "cache_last_time": [
32
+ 24,
33
+ 1,
34
+ 1024,
35
+ 8
36
+ ],
37
+ "num_prompts": 128,
38
+ "prompts": {
39
+ "th-TH": 32,
40
+ "th-mix": 63
41
+ },
42
+ "blank_id": 14988,
43
+ "vocab_size": 14988,
44
+ "pred_hidden": 640,
45
+ "pred_layers": 2,
46
+ "max_symbols_per_step": 2,
47
+ "blank_as_pad": true,
48
+ "orig_blank_bias": 2.2470524311065674,
49
+ "policies": {
50
+ "standard": -1.0,
51
+ "conversation": -2.0,
52
+ "short_delta": -2.5,
53
+ "short_s": 2.0,
54
+ "retry_delta": -4.0
55
+ }
56
+ }
tokens.json ADDED
The diff for this file is too large to render. See raw diff
 
window.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f0a0cf678b5b95c01d7d584b900f019a69dcffdf926c94d57cdc59f886b6b889
3
+ size 1600