tyger-coreml / config.json
matthiastl's picture
TYGER for iPhone (Core ML, Neural Engine)
d65bf0f
Raw History Blame Contribute Delete
3.32 kB
{
"format": "tyger-coreml",
"format_version": 1,
"base_model": {
"repo_id": "nineninesix/tyger",
"weights_sha256": "4acb6661c64817e2efba64778db6c2688296bf770f69a61258db7f93e9335b21",
"nemotron": "nvidia/nemotron-3.5-asr-streaming-0.6b@ea30d66debe3740a08b573244286791d423d6b3e"
},
"runtime": {
"sample_rate": 16000,
"hop_samples": 5120,
"window_s": 8.0,
"frame_s": 0.08,
"frames_per_hop": 4,
"streams": ["user", "agent"],
"note": "Every hop, both streams' last 8 s (or less at the start) are turned into log-mels and encoded in one prediction; the newest 4 frames go through the turn-taker, as tyger-s2s does it. A shorter window's log-mels are padded on the right with zeros to 801 frames, which changes nothing before the padding, because every stage of the encoder is causal. ios/Tyger.m runs it."
},
"files": {
"TygerEncoder.mlpackage": {
"sha256": {
"Data/com.microsoft.OnnxRuntime/model.mlmodel": "411dc40c1419a1a69b9a9efc9b38c6e768c0e0bfe6c938bdb5bbbe185c38001b",
"Data/com.microsoft.OnnxRuntime/weights/weight.bin": "dfc6c0b08b88a5825cfe1a6c217d1755824f6df013d0adb6a7162571adbedc01"
},
"contents": "Nemotron 3.5 ASR Streaming 0.6B encoder: subsampling and conformer layers 1-15 of 24, attention to the current frame and the 56 before it (no lookahead), both streams at once",
"inputs": {"mel": "float16 [2, 801, 128], log-mels of the user's and the agent's window"},
"outputs": {"l15": "float16 [2, 101, 1024], layer 15, one frame per 80 ms; frames past the real ones are padding"},
"precision": "16-bit floats, ML Program, for iOS 18 and macOS 15 or later; compute units CPU and Neural Engine"
},
"turn_taker.onnx": {
"sha256": "af35424f07518d796e725b0a7550e11d2db22c94d4d529c1123f7cb2ae2b6567",
"contents": "TYGER's turn-taker (3-layer GRU, width 768, five heads), fp32, weights unchanged, one frame per call; the same file as matthiastl/tyger-onnx",
"inputs": {
"user": "float32 [1, 1024], the user's layer-15 frame",
"agent": "float32 [1, 1024], the agent playback's layer-15 frame",
"energy_db": "float32 [1], the user's frame energy in dB (normalised inside: clip((dB + 50) / 25, -3, 3))",
"previous_state": "int64 [1], 0 (LISTEN) while the agent listens, 2 (SPEAK) while it speaks",
"state_in": "float32 [3, 1, 768], GRU state, zeros at a reset"
},
"outputs": {
"outputs": "float32 [1, 8]: state logits LISTEN, HOLD, SPEAK, BACKCHANNEL, then hazard, yield (barge-in), backchannel and endpoint probabilities",
"state_out": "float32 [3, 1, 768]"
},
"opset": 17
},
"mel_filters.f32": {
"sha256": "bce5ec5f194a5913f6508cee5a85512e7bad2352db8fc28f5c6ff75af8b09137",
"contents": "float32 [128, 257], the Slaney mel filterbank of Nemotron's feature extractor, raw little-endian, row by row"
}
},
"default_policy": {
"ep_thr": 0.91,
"ep_deb": 2,
"barge_thr": 0.5,
"barge_deb": 2,
"bc_thr": 0.4,
"bc_deb": 2,
"bc_refractory_frames": 15,
"source": "nineninesix/tyger config.json"
},
"tested_with": {"ios": "27.2.1 (iPhone 17 Pro, iPhone18,1)", "onnxruntime-c (iOS)": "1.30.0", "onnxruntime (Mac)": "1.32.0", "xcode_sdk": "iOS 27.2"}
}