TYGER for iPhone (Core ML, Neural Engine)
TYGER is NineNineSix's turn-taking model for voice agents. It hears the caller and the agent's own playback, and decides when the caller has finished, when they are cutting in, and when a "mm-hm" fits. It ships as one 2.6 GB fp32 PyTorch file, which tyger-s2s runs on a GPU.
This repository is a Core ML version of the part of TYGER that makes those decisions, for the iPhone's Neural Engine, with a small C runtime to use it from an app. On an iPhone 17 Pro it kept up with live audio for 10 minutes: every 320 ms step was done within 232 ms of its audio arriving. On 28 recorded phone calls, it makes the same decision as the original on at least 99.9% of 80 ms frames.
For computers, see matthiastl/tyger-onnx, the 8-bit ONNX version.
Summary
| TYGER | This repository | |
|---|---|---|
| Files | model.safetensors, 2.6 GB, fp32 |
TygerEncoder.mlpackage 740 MB (16-bit floats) + turn_taker.onnx 56 MB |
| Runs on | PyTorch and transformers | iOS 18 or later: Core ML, and ONNX Runtime for the turn-taker |
| Turn-taking | yes | yes, same decisions on at least 99.9% of frames |
| Transcribes turns | yes (Nemotron, all 24 layers and its decoder) | no |
| Time from a step's audio arriving to its result, iPhone 17 Pro, 10 minutes live | β | p90 64 ms, worst 232 ms |
Things to know before using it:
- One phone, one run. Tested on an iPhone 17 Pro with iOS 27.2.1, for 10 minutes, plugged in, with the battery full. Not tested on any other iPhone. Battery use was not measured.
- The phone slows down at times. When steps run back to back, their time switches between about 34 ms and about 187 ms for seconds at a time. The cause is not known, and it was not seen on the Mac. In the 10-minute test at live pace, no step was late.
- It loads in 29 to 47 s, measured on that phone, and again every time. Load it before the conversation starts.
- It is big. 740 MB, about 0.9 GB of memory while running. The app's memory peaked at 1.2 GB.
- There is no speech recognition here. TYGER's turn-taker reads only the first 15 of Nemotron's 24 layers, so that is all the Core ML model contains. Transcribe each ENDPOINT's turn with any speech recognizer you like.
- It was checked against the original, not against the truth. How good TYGER's decisions are is measured on TYGER's card.
This is an unofficial conversion. It is not made or endorsed by NineNineSix or NVIDIA.
Use it
Add to an iOS 18 app:
TygerEncoder.mlpackage(Xcode compiles it into the app asTygerEncoder.mlmodelc),turn_taker.onnxandmel_filters.f32, as app resources;ios/Tyger.handios/Tyger.m, with#include "Tyger.h"in the bridging header;- ONNX Runtime for iOS (
onnxruntime-c; 1.30.0 was used), and the frameworks CoreML, Accelerate and Network.
// Off the main thread: it takes 30 to 45 s.
let tyger = tyger_open(encoderPath, turnTakerPath, melFiltersPath, tyger_default_policy())!
// Every 320 ms: 5,120 samples of 16 kHz mono float from the caller and from the agent's playback
// (zeros while the agent is silent).
var events = [TygerEvent](repeating: TygerEvent(), count: Int(TYGER_MAX_EVENTS))
let count = tyger_process(tyger, userHop, agentHop, agentIsSpeaking ? 1 : 0, &events, nil)
if count < 0 { print(String(cString: tyger_error())) }
for event in events.prefix(max(0, Int(count))) {
if event.kind == TYGER_ENDPOINT { /* the caller has finished; their turn is the last event.turn_s seconds of their audio (at most 20 s) */ }
if event.kind == TYGER_BARGE { /* the caller is cutting in: stop the agent, then tyger_reset(tyger) */ }
if event.kind == TYGER_BACKCHANNEL { /* a "mm-hm" fits here */ }
}
tyger_process does what tyger-s2s's engine does for one conversation: the 8 s windows, the log-mels,
the encoder, the turn-taker, and tyger-s2s's turn rules with TYGER's default thresholds (endpoint
0.91, barge-in 0.5, backchannel 0.4). The rules are a C port of tyger-s2s's rules.py. Tyger.h has
the details, including the thresholds and the per-frame probabilities.
A Mac can run the model too (macOS 15 or later, the same Core ML package), in about 28 ms per step on
an Apple M4 Max, through Python and ONNX Runtime. scripts/phone_coreml.py does that.
Files
| File | Size | Description |
|---|---|---|
TygerEncoder.mlpackage |
740 MB | Nemotron's encoder up to layer 15, both streams at once: log-mels [2, 801, 128] in, layer 15 [2, 101, 1024] out, one frame per 80 ms |
turn_taker.onnx |
56 MB | TYGER's turn-taker (a 3-layer GRU, width 768), one 80 ms frame per call, fp32 |
mel_filters.f32 |
0.1 MB | the mel filterbank of Nemotron's feature extractor |
ios/Tyger.h, ios/Tyger.m |
β | the runtime: log-mels, the 8 s windows, the turn-taker and the turn rules |
ios/SpeedTest/ |
β | the app that produced the iPhone numbers |
vendor/tyger_s2s/ |
β | tyger-s2s's turn rules and constants in Python, Apache-2.0 |
config.json |
β | inputs and outputs, checksums, the base model's revision, default thresholds |
scripts/ |
β | the code that made the files and the numbers below |
results/ |
β | the rules, written before the runs, and the scores behind the tables |
LICENSE.md, NOTICE.md, licenses/ |
β | OpenMDW-1.1, and what was changed |
Speed on an iPhone 17 Pro
The rule (results/RULE-coreml.md) was written before any Core ML run of this encoder, and says what
to run, what passes and what is reported anyway. The test: both streams are speech, and each 320 ms
step re-encodes both 8 s windows. It starts when its audio has arrived and the previous step is done.
10 minutes at live pace, after a 25-step warm-up, 1,850 steps, on the CPU for the turn-taker and
the Neural Engine for the encoder. The app stayed on screen, Low Power Mode was off, and the phone's
heat level was normal at the start and the end (results/iphone17pro-10min.json):
| Steps later than 320 ms | 0 of 1,850 |
| Delay, median | 57 ms |
| Delay, p90 | 64 ms |
| Delay, p99 | 157 ms |
| Delay, worst | 232 ms |
| p90 delay per minute, best and worst minute | 62 ms and 127 ms |
The rule asked for a p90 under 320 ms in every minute. The 8-bit CPU version of TYGER
(tyger-onnx) fell behind on the same phone, in both
10-minute runs, by up to 0.9 s (results/cpu-version-iphone17pro-run1.json and -run2.json). The
phone had been in a hot place for the first of those runs.
Step 1, before that: 230 steps back to back, the last 200 timed, to decide whether to go on. The limit was a p90 of 160 ms. Three versions were timed, in this order, and only the third met it. It is the one published here:
| Version | Median | p90 |
|---|---|---|
One stream at a time, first graph (iphone17pro-speed-v1.json) |
186 ms | 188 ms |
One stream at a time, accuracy fixed (-v2.json) |
37 ms | 191 ms |
Both streams at once, accuracy fixed (-v3.json) |
49 ms | 145 ms |
In the fast stretches, versions two and three take about 34 ms. Which of them stays under 160 ms depends partly on how long the slow stretches last, so a different run could go the other way.
Check against the original
The rule is results/RULE.md, for decisions and events. It was written before this version existed,
and the settings were fixed before the calls were scored.
- Original: TYGER as tyger-s2s's own CPU reference runs it (
scripts/validate/reference.pyin tyger-s2s). That is fp32 PyTorch with transformers 5.23: each stream's last 8 s are re-encoded every 320 ms, and the newest 4 frames of layer 15 go to the GRU. - This version: the same steps, with the files above, the encoder on the Neural Engine of an Apple M4 Max. The phone's outputs were compared with the Mac's: of 920 frames, 1 decision differs.
- Audio: 28 calls from CallHome English. In each recording both people are on one channel.
- Listening: the first 120 s of each call played as the caller, with the agent silent, as TYGER's own Full-Duplex-Bench rows were run. That is 56 minutes, 42,000 frames.
- Speaking: 30 s of each call played as the caller, and the same call 60 s later as the agent, so two voices overlap. That is 14 minutes, 10,416 frames.
Frame by frame, with the turn-taker running freely, the share of frames where the two give a different answer. The 8-bit CPU version (tyger-onnx) is shown for comparison:
| Decision | This version | Of the frames where either fires | 8-bit CPU version |
|---|---|---|---|
| Endpoint (p β₯ 0.91), listening | 0.005% | 0.4% | 0.06% |
| Backchannel (p β₯ 0.40), listening | 0.09% | 0.9% | 0.34% |
| Backchannel (p β₯ 0.80), listening | 0.00% | 0.0% | 0.01% |
| Barge-in (p β₯ 0.50), speaking | 0.05% | 1.4% | 0.18% |
| Barge-in (p β₯ 0.93), speaking | 0.01% | 5.6% | 0.03% |
| Turn state (most likely of 4), listening | 0.00% | β | 0.00% |
| Turn state (most likely of 4), speaking | 0.03% | β | 0.23% |
Events, with tyger-s2s's turn rules and default thresholds. An event of the original counts as matched when this version has the same kind of event within one frame (80 ms):
| Event | Original | This version | Matched | 8-bit CPU version |
|---|---|---|---|---|
| ENDPOINT | 91 | 93 | 91 (100%) | 85 (93.4%) |
| BACKCHANNEL | 617 | 614 | 608 (98.5%) | 597 (96.8%) |
| BARGE | 115 | 114 | 114 (99.1%) | 113 (98.3%) |
| All three | 823 | 821 | 813 (98.8%) | 795 (96.6%) |
The rule asked for at most 1% of frames to differ on each decision, and for at least 95% of all events to match. Both passed. The two extra endpoints of this version have no counterpart in the original within one frame.
How it was made
- Only what the decisions use. TYGER's turn-taker reads Nemotron's layer 15 of 24.
scripts/l15.pyrebuilds Nemotron's encoder up to that layer in plain PyTorch, with weights taken from TYGER's file. Nothing was retrained. - Fixed shapes and constants.
scripts/coreml_export.pywrites the same function with a fixed 801-frame input, position terms and attention mask as constants, and padding as symmetric padding and a slice. It matches the original encoder to within 2e-4 on values up to about 240, in PyTorch. - Both streams in one prediction, so the weights are read once per step instead of twice.
- 16-bit floats for the Neural Engine. ONNX Runtime's Core ML provider turns the exported model into an ML Program. On the iPhone, Core ML's plan places all 964 operations on the Neural Engine.
- The Neural Engine's SiLU. On the Neural Engine,
x * sigmoid(x)is imprecise: in the convolution modules its output is about 2.5% off, about half of it a constant offset, which moved the endpoint decisions. Written asx * (0.5 + 0.5 * tanh(x / 2)), the same function, the total error of the encoder's output drops by about nine times, at the same speed. The convolution modules' gate is written the same way. The feed-forward modules keep the first form, because there the tanh form was worse. On the graphics processor, the same 16-bit weights gave errors 11 to 14 times smaller than the Neural Engine's before the fix, so 16 bits are enough. - Checks.
scripts/test_runtime.pychecks thatios/Tyger.mgives the same events, on the same frames, as the Python version, over 6.4 minutes of audio with barge-ins, mode changes and resets. A shorter part of it, 2.1 minutes, gave the same events on the iPhone as on the Mac. The ONNX file behind the package is reproduced byte for byte by the scripts, and a rebuilt package gives the same outputs.scripts/README.mdhas the commands.
Limitations
- Agreement was measured on 28 recorded phone calls with both people on one channel, not in a live voice agent with separate caller and agent channels.
- The iPhone speed is for one phone and one 10-minute run. Nothing is known about older iPhones, other iPhone 17 models, heat, or battery use.
- English only, as TYGER is.
- No speech recognition (see above).
- The turn-taker runs on the CPU, with ONNX Runtime. It was not converted to Core ML.
- Everything TYGER's card says about the model's accuracy and limits still applies.
License and attribution
TYGER is Β© 2026 NineNineSix and is built on NVIDIA's Nemotron 3.5 ASR Streaming 0.6B; both are
released under OpenMDW-1.1, and so are the model files here (LICENSE.md; NVIDIA's copy of the
license in licenses/). NOTICE.md keeps TYGER's notice and lists what was changed. vendor/tyger_s2s/
is from tyger-s2s (Apache-2.0), and the turn rules in ios/Tyger.m are a port of them. The code in
ios/, scripts/ and config.json is Apache-2.0.
The development audio is the Open Yap 1K sample (TheAgenticDataCompany/open-yap-1k, CC-BY-4.0). The test calls are the first 28 calls of the English part of talkbank/callhome (CABank English CallHome Corpus, TalkBank, doi:10.21415/T5KP54, CC BY-NC-SA 4.0). They were used for testing only. None of either corpus's audio or annotation is in this repository.
- Downloads last month
- 57
Model tree for matthiastl/tyger-coreml
Base model
nvidia/nemotron-3.5-asr-streaming-0.6b