Mirror of mlboydaisuke/Parakeet-TDT-0.6B-CoreAI
Browse files- .gitattributes +4 -0
- README.md +80 -0
- demo.gif +3 -0
- mel_filters_128x257_f32.bin +3 -0
- parakeet_encoder_float16_L2885.aimodel/main.hash +1 -0
- parakeet_encoder_float16_L2885.aimodel/main.mlirb +3 -0
- parakeet_encoder_float16_L2885.aimodel/metadata.json +4 -0
- parakeet_joint_float32.aimodel/main.hash +1 -0
- parakeet_joint_float32.aimodel/main.mlirb +3 -0
- parakeet_joint_float32.aimodel/metadata.json +4 -0
- parakeet_predict_float32.aimodel/main.hash +1 -0
- parakeet_predict_float32.aimodel/main.mlirb +3 -0
- parakeet_predict_float32.aimodel/metadata.json +4 -0
- tokenizer.json +0 -0
- tokenizer_config.json +10 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,7 @@ 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 |
+
parakeet_encoder_float16_L2885.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
parakeet_joint_float32.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
parakeet_predict_float32.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
demo.gif filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
library_name: coreai
|
| 4 |
+
pipeline_tag: automatic-speech-recognition
|
| 5 |
+
base_model: nvidia/parakeet-tdt-0.6b-v3
|
| 6 |
+
tags: [core-ai, coreaikit, parakeet, tdt, rnn-t, transducer, asr, on-device, apple]
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
> **Mirror** of [`mlboydaisuke/Parakeet-TDT-0.6B-CoreAI`](https://huggingface.co/mlboydaisuke/Parakeet-TDT-0.6B-CoreAI) — the canonical repo ([CoreAI Model Zoo](https://github.com/john-rocky/coreai-model-zoo)). Updates land there first.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# Parakeet-TDT-0.6B — Core AI
|
| 13 |
+
|
| 14 |
+
[`nvidia/parakeet-tdt-0.6b-v3`](https://huggingface.co/nvidia/parakeet-tdt-0.6b-v3) (cc-by-4.0, 600M)
|
| 15 |
+
converted to **Apple Core AI** `.aimodel` — the first **transducer / TDT (RNN-T family)** ASR in the
|
| 16 |
+
[zoo](https://github.com/john-rocky/coreai-models-community). Transcribes ≤~29 s clips in 25
|
| 17 |
+
European languages as **three stateless graphs + a host greedy loop** (no LLM runtime).
|
| 18 |
+
|
| 19 |
+
- `parakeet_encoder_float16_L2885.aimodel` — FastConformer encoder + projector (fp16, ~1.2 GB),
|
| 20 |
+
`mel[1,128,2885] → enc_proj[1,361,640]`.
|
| 21 |
+
- `parakeet_predict_float32.aimodel` — embedding → 2-layer LSTM → projector (fp32),
|
| 22 |
+
`token[1,1],h,c[2,1,640] → dec_out[1,640],h',c'`.
|
| 23 |
+
- `parakeet_joint_float32.aimodel` — `head(relu(enc_frame+dec_out))` (fp32),
|
| 24 |
+
`→ token_logits[1,8193], dur_logits[1,5]`.
|
| 25 |
+
- `tokenizer.json` (+ `tokenizer_config.json`), `mel_filters_128x257_f32.bin` (librosa-slaney).
|
| 26 |
+
|
| 27 |
+
Gated **77/77 token-exact** end-to-end vs the HF `ParakeetForTDT` reference, and again token-exact
|
| 28 |
+
through the Swift **CoreAIKit** `KitParakeetModel`. blank 8192 · durations [0,1,2,3,4] · 16 kHz.
|
| 29 |
+
|
| 30 |
+
<!-- gen-cards:use-it begin id=parakeet-tdt-0.6b-v3 (managed by scripts/gen-cards — edit cards.json / QuickStart.swift, not this block) -->
|
| 31 |
+

|
| 32 |
+
*Parakeet-TDT 0.6B on iPhone 17 Pro — the zoo's coreai-audio app, real speed.*
|
| 33 |
+
|
| 34 |
+
## Use it
|
| 35 |
+
|
| 36 |
+
▶️ **Run it (source)** — the [Transcribe runner](https://github.com/john-rocky/coreai-kit/tree/main/Examples/Transcribe)
|
| 37 |
+
(GUI + CLI, one app for every speech-to-text model in the catalog):
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
git clone https://github.com/john-rocky/coreai-kit
|
| 41 |
+
open coreai-kit/Examples/Transcribe/Transcribe.xcodeproj
|
| 42 |
+
# → Run, then pick "Parakeet-TDT 0.6B v3" in the model picker
|
| 43 |
+
|
| 44 |
+
# agents / headless (macOS):
|
| 45 |
+
cd coreai-kit/Examples/Transcribe
|
| 46 |
+
swift run transcribe-cli --model parakeet-tdt-0.6b-v3 --audio sample.wav
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
💻 **Build with it** — complete; the glue is kit API, copy-paste runs:
|
| 50 |
+
|
| 51 |
+
```swift
|
| 52 |
+
import CoreAIKit
|
| 53 |
+
|
| 54 |
+
let transcriber = try await KitTranscriber(catalog: "parakeet-tdt-0.6b-v3")
|
| 55 |
+
let samples = try AudioFile.pcm16kMono(url) // any wav/m4a/mp3 → 16 kHz mono Float
|
| 56 |
+
let result = try await transcriber.transcribe(samples: samples)
|
| 57 |
+
// result.text (25 EU languages)
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
The take-home is [`Examples/Transcribe/Sources/QuickStart.swift`](https://github.com/john-rocky/coreai-kit/blob/main/Examples/Transcribe/Sources/QuickStart.swift)
|
| 61 |
+
— this exact code as one typed function, no UI; both the runner's GUI and its CLI call it.
|
| 62 |
+
Recording? `MicRecorder` (kit API) captures mic audio as 16 kHz mono `[Float]` — the record
|
| 63 |
+
button and permission prompt are your app's own chrome.
|
| 64 |
+
|
| 65 |
+
**Integration checklist**
|
| 66 |
+
|
| 67 |
+
- SPM: `https://github.com/john-rocky/coreai-kit` → product **CoreAIKit**
|
| 68 |
+
- Info.plist: `NSMicrophoneUsageDescription` — only if you record
|
| 69 |
+
- Entitlements: none needed (macOS)
|
| 70 |
+
- First run downloads the model — 1.3 GB (Mac) — then it loads from the
|
| 71 |
+
local cache (Application Support; progress via the `downloadProgress` callback)
|
| 72 |
+
- Measure in Release — Debug is ~3× slower on per-token host work
|
| 73 |
+
<!-- gen-cards:use-it end -->
|
| 74 |
+
|
| 75 |
+
## Use (CoreAIKit)
|
| 76 |
+
|
| 77 |
+
```swift
|
| 78 |
+
let parakeet = try await KitParakeetModel(model: .parakeetTDT)
|
| 79 |
+
let result = try await parakeet.transcribe(samples: pcm16kMono) // 16 kHz mono Float
|
| 80 |
+
```
|
demo.gif
ADDED
|
Git LFS Details
|
mel_filters_128x257_f32.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bce5ec5f194a5913f6508cee5a85512e7bad2352db8fc28f5c6ff75af8b09137
|
| 3 |
+
size 131584
|
parakeet_encoder_float16_L2885.aimodel/main.hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
P�Q)�{.�x�ШQX1�mE��@�`��q�.�(
|
parakeet_encoder_float16_L2885.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:509e5129f87b2e8d78cdd0a85158311eb36d45b78b409d60f7fb71ae2e02ef28
|
| 3 |
+
size 1221023465
|
parakeet_encoder_float16_L2885.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"assetVersion" : "2.0",
|
| 3 |
+
"license" : "cc-by-4.0"
|
| 4 |
+
}
|
parakeet_joint_float32.aimodel/main.hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
�m3p��QW�&%��>��1K���_�N�>���
|
parakeet_joint_float32.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a26d337099b65157eb2602258ce79a3ea8b3314be41188eb5f8a4ee03e889afd
|
| 3 |
+
size 21021917
|
parakeet_joint_float32.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"assetVersion" : "2.0",
|
| 3 |
+
"license" : "cc-by-4.0"
|
| 4 |
+
}
|
parakeet_predict_float32.aimodel/main.hash
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
���A��e8œMlږ,�����U
|
parakeet_predict_float32.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e80bebf441ad9b650f38c5934d6cda962cf884fa8995550dd384253f1ef4ebcb
|
| 3 |
+
size 48880540
|
parakeet_predict_float32.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"assetVersion" : "2.0",
|
| 3 |
+
"license" : "cc-by-4.0"
|
| 4 |
+
}
|
tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"clean_up_tokenization_spaces": false,
|
| 4 |
+
"eos_token": "<|endoftext|>",
|
| 5 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 6 |
+
"pad_token": "<pad>",
|
| 7 |
+
"processor_class": "ParakeetProcessor",
|
| 8 |
+
"tokenizer_class": "PreTrainedTokenizer",
|
| 9 |
+
"unk_token": "<unk>"
|
| 10 |
+
}
|