fix(audio): match mlx-vlm in the Nemotron-H Nano Omni STFT and subsampling biases
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- audio-video-rtc
Research direction
Read src/audio/nemotron_h_nano_omni/feature_extractor.rs, config.rs, and encoder.rs, then inspect the referenced mlx-vlm 0.8.1 audio implementation and existing tests. Update the extractor defaults and bias handling described in the issue, remove the d1-omni opt-in, and check the listed unit tests and d1-omni parity tests. Done means the real checkpoint’s log-mel features and first-token logits match the reference, with the max absolute difference recorded and the supported-models entry updated.
Written by the indexing model from the issue text.
Description
Problem
The Nemotron-H Nano Omni sound path does not compute what mlx-vlm computes on the same checkpoint. PR #3533 added the mlx-vlm form as an opt-in for d1-omni only and kept Nemotron on the old form, so Nemotron audio features and logits differ from the reference.
Current Behavior
src/audio/nemotron_h_nano_omni/feature_extractor.rs:150with_mlx_audio_stft(symmetric Hann,1 + (padded_len - n_fft) / hopframes) is called only bysrc/decision/d1_omni/audio.rs:222. The default innewuses a periodic window andpadded_len / hopframes. mlx-vlm 0.8.1nemotron_h_nano_omni/audio.py:474callshanning(win_length, periodic=False).src/audio/nemotron_h_nano_omni/config.rs:133subsampling_conv_biasdefaults tofalse, soencoder.rs:248never loads the subsampling biases. UpstreamParakeetEncoderSubsamplingConv2Dusesnn.Conv2dwith the defaultbias=True, andmodels/nemotron-3-nano-omni-30b-a3b-reasoning-4bitshipssound_encoder.encoder.subsampling.layers.{0,2,3,5,6}.bias.
Proposed Solution
Make the mlx-vlm form the only form: move the symmetric window and mlx-audio frame count into NemotronOmniFeatureExtractor::new, delete with_mlx_audio_stft and its d1-omni call, and make subsampling_conv_bias default to true (serde default and Default). A checkpoint missing a subsampling bias keeps failing with the existing copy_weight error. Callers already take the frame count from the extractor (src/server/model_worker.rs:3199, src/loading/vlm_nemotron_h_nano_omni.rs:484), so no placeholder formula changes.
Acceptance Criteria
- Default extractor uses the symmetric window and mlx-audio frame count;
one_second_tone_has_expected_frame_countandmlx_audio_stft_uses_a_symmetric_window_and_the_default_stays_periodicare updated to the new expectation - New failing test in
encoder_tests.rs:NemotronOmniAudioConfig::default()andserde_json::from_str::<NemotronOmniAudioConfig>("{}")both havesubsampling_conv_bias == true, and the synthetic encoder's output changes when its subsampling biases go from zero to nonzero (fails today because the default ignores them) - d1-omni parity tests in
src/decision/d1_omni/audio_tests.rsstill pass - Log-mel features and first-token logits match mlx-vlm 0.8.1 on
models/nemotron-3-nano-omni-30b-a3b-reasoning-4bitfor one real clip (record the max abs diff in the PR) -
docs/supported-models.mdNemotron-H Nano Omni entry states the parity result
Verification
cargo test --lib audio::nemotron_h_nano_omni
cargo test --lib decision::d1_omni
cargo clippy --all-targets -- -D warnings
The real-checkpoint parity run uses the GPU and must go through gpu-lock run.
- Dominant language
- Rust
- Stars
- 505
- Forks
- 81
- Avg merge
- 14h 2m
- Merged PRs (30d)
- 448
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lablup/mlxcel
-
area:core priority:high status:ready type:security
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
priority:medium status:ready type:security
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
-
area:models modeltype:text priority:medium status:in-progress type:bug
Difficulty 4/5 3-5 days Newbie friendliness 57/100
Maintainers usually reply within 1 day
-
area:models priority:low status:ready type:test
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
area:models platform:linux priority:medium status:ready type:bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 1 day
Similar issues
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Possibly taken @ealwanlee claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
psmux/psmux-plugins#47 ·
-
Link Checker ReportOpenautomated issue report
Difficulty 1/5 Under an hour Newbie friendliness 76/100
ratatui/awesome-ratatui#598 ·
Maintainers usually reply within 1 day
-
release
Difficulty 1/5 Under an hour Newbie friendliness 75/100
github/gh-aw-mcpg#17603 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
C-Bug S-Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bevyengine/bevy#26718 ·
Maintainers usually reply within 2 days