You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5a388a1
Browse filesBrowse the repository at this point in the historyBrowse files
[examples] Enable Nemotron 3 Diarization on XNNPACK (pytorch#23152)
### Summary
Add XNNPACK CPU export and native runner build targets for the
Transformers-based Nemotron 3 Diarization example. The CPU path defaults
to BF16, with `--dtype fp32` available explicitly, and reuses the
existing streaming runner and XNNPACK preprocessor. MLX-specific code
and linking are enabled only for MLX builds.
Rebased onto main after pytorch#23153 landed. This PR contains only the six
example/build files; the CPU kernel fixes and tests are already in main.
Vulkan support is separate in pytorch#23155.
### Test plan
Built the native CPU runner using `make nemotron3-diarization-cpu` on
macOS arm64, with the CPU fixes from main. Verified the runner links
XNNPACK without either the MLX or Vulkan delegate. Fresh exports pass
for the default BF16 mode and explicit FP32 mode.
All eight production CLI runs (two dtypes across offline, low, very_low,
and ultra_low) retain the previous segments. All eight streaming
integration runs pass partitioning, reset, short final-window, and
input-validation checks. Also exercised 11 method shapes per dtype and
compared speech, partial-tail, and silence inputs across all four
presets against saved Transformers references.
The 12 FP32 audio comparisons pass at `rtol=1e-4, atol=1e-4`, with
maximum probability error 1.3709068298339844e-6. The 12 BF16 audio
comparisons have maximum probability error 0.015625; four of 52,896
values exceed `rtol=1e-2, atol=5e-3`. Both dtypes have zero
speaker-decision disagreements. BF16 is approximate and is not claimed
to pass that tight numerical tolerance.
Export CLI, CMake presets, `lintrunner`, and `git diff --check` pass.
The rebase preserves the example patch unchanged and removes the CPU
commits already merged through pytorch#23153.
Supplemental evaluation scripts and artifacts remain local.
Authored with AI assistance from OpenAI Codex.
cc @SS-JIA@manuelcandales@digantdesai@cbilgin
0 commit comments