fix(audio): match mlx-vlm in the Nemotron-H Nano Omni STFT and subsampling biases
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- audio-video-rtc
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 505
- Fork
- 81
- Merge medio
- 14h 2m
- PR unite (30g)
- 448
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lablup/mlxcel
-
area:core priority:high status:ready type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
priority:medium status:ready type:security
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
area:models modeltype:text priority:medium status:in-progress type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
I maintainer di solito rispondono entro 1 giorno
-
area:models priority:low status:ready type:test
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:models platform:linux priority:medium status:ready type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di lablup/mlxcel
Issue simili
-
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)Forse già presa @ealwanlee l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
psmux/psmux-plugins#47 ·
-
Link Checker ReportApertaautomated issue report
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
ratatui/awesome-ratatui#598 ·
I maintainer di solito rispondono entro 1 giorno
-
release
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
github/gh-aw-mcpg#17603 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
C-Bug S-Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bevyengine/bevy#26718 ·
I maintainer di solito rispondono entro 2 giorni