feat(diarizer/nemotron3): load monolithic presets from monolithic/v2 (M3 ANE compile fix) - #960
Conversation
The shipped monolithic bundles never compile for the ANE on M3 (h15g): ANECCompile() fails with InvalidMILProgram on every load (~3 s retry), and CoreML falls back to a mixed CPU/ANE plan (#951). H15 can't run the int16 gather or the integer index casts, so the input-end packing is split off to the CPU and the first ANE function takes fp32 inputs, which h15g rejects. M5 keeps the packing on the ANE and never saw it. monolithic/v2/ on the HF repo holds all five presets re-exported with fp16 inputs and outputs and gather-free (one-hot matmul) state packing. Same checkpoint and weights; the originals stay in monolithic/ so older releases keep working and we can roll back by path. No weightsVersion bump: the new path is a fresh download, and the split bundles and .bin assets stay cached. - M3 Max (reporter): fast32 v2 compiles, 100% frame decisions vs shipped. - M5 Pro, AMI 16 meetings, shipped -> v2: DER identical on .all for all five presets, within +-0.06 on ANE; RTFx within a few percent. - Downloaded v2 fast32 is byte-identical to the local build and its --dump-preds match exactly; split presets unaffected.
Supertonic3 Smoke Test ✅
Runtime: 0m29s Note: CI VMs lack a physical Neural Engine; the ANE-bucketed VectorEstimator falls back to CPU here. This validates download + variant resolution + synthesis, not ANE residency/perf. |
VAD Benchmark ResultsPerformance Comparison
Dataset Details
✅: Average F1-Score above 70% |
PocketTTS Smoke Test ✅
Runtime: 0m27s Note: PocketTTS uses CoreML MLState (macOS 15) KV cache + Mimi streaming state. CI VM lacks physical GPU — audio quality and performance may differ from Apple Silicon. |
Parakeet EOU Benchmark Results ✅Status: Benchmark passed Performance Metrics
Streaming Metrics
Test runtime: 2m11s • 09/24/2026, 08:09 PM EST RTFx = Real-Time Factor (higher is better) • Processing includes: Model inference, audio preprocessing, state management, and file I/O |
ASR Benchmark Results ✅Status: All benchmarks passed Parakeet v3 (multilingual)
Parakeet v2 (English-optimized)
Streaming (v3)
Streaming (v2)
Streaming tests use 5 files with 0.5s chunks to simulate real-time audio streaming 25 files per dataset • Test runtime: 7m41s • 09/24/2026, 08:16 PM EST RTFx = Real-Time Factor (higher is better) • Calculated as: Total audio duration ÷ Total processing time Expected RTFx Performance on Physical M1 Hardware:• M1 Mac: ~28x (clean), ~25x (other) Testing methodology follows HuggingFace Open ASR Leaderboard |
Offline VBx Pipeline ResultsSpeaker Diarization Performance (VBx Batch Mode)Optimal clustering with Hungarian algorithm for maximum accuracy
Offline VBx Pipeline Timing BreakdownTime spent in each stage of batch diarization
Speaker Diarization Research ComparisonOffline VBx achieves competitive accuracy with batch processing
Pipeline Details:
🎯 Offline VBx Test • AMI Corpus ES2004a • 1049.0s meeting audio • 144.2s processing • Test runtime: 2m 36s • 09/24/2026, 08:17 PM EST |
Speaker Diarization Benchmark ResultsSpeaker Diarization PerformanceEvaluating "who spoke when" detection accuracy
Diarization Pipeline Timing BreakdownTime spent in each stage of speaker diarization
Speaker Diarization Research ComparisonResearch baselines typically achieve 18-30% DER on standard datasets
Note: RTFx shown above is from GitHub Actions runner. On Apple Silicon with ANE:
🎯 Speaker Diarization Test • AMI Corpus ES2004a • 1049.0s meeting audio • 47.6s diarization time • Test runtime: 3m 23s • 09/24/2026, 08:19 PM EST |
Sortformer High-Latency Benchmark ResultsES2004a Performance (30.4s latency config)
Sortformer High-Latency • ES2004a • Runtime: 3m 36s • 2026-09-25T00:19:29.300Z |
Refs #951.
The shipped monolithic Nemotron 3 bundles never compile for the ANE on M3 (h15g):
ANECCompile()fails withInvalidMILProgramon every load, and CoreML falls back to a mixed CPU/ANE plan. On H15 the input-end packing (int16 gather, integer index casts) is split off to the CPU, so the first ANE function takes fp32 inputs, which h15g rejects.monolithic/v2/on the HF repo: all five presets re-exported with fp16 inputs/outputs and gather-free state packing (mobius Need cocoapods support #100). Same checkpoint and weights.monolithic/, so older releases keep working and rollback is a one-line path change.weightsVersionbump: the new path is a fresh download; split bundles and.binassets stay cached.Verification
.allfor all five presets, within ±0.06 on ANE; RTFx within a few percent.--dump-predsexact; split presets unaffected.🤖 Generated with Claude Code