fix(audio): match mlx-vlm in the Nemotron-H Nano Omni STFT and subsampling biases
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- audio-video-rtc
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 505
- Forks
- 81
- Merge medio
- 14 h 2 min
- PR fusionados (30 d)
- 448
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de lablup/mlxcel
-
area:core priority:high status:ready type:security
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
priority:medium status:ready type:security
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
-
area:models modeltype:text priority:medium status:in-progress type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 57/100
Los mantenedores suelen responder en 1 día
-
area:models priority:low status:ready type:test
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
area:models platform:linux priority:medium status:ready type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Los mantenedores suelen responder en 1 día
Todos los issues de lablup/mlxcel
Issues similares
-
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)Posiblemente ocupada @ealwanlee la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
psmux/psmux-plugins#47 ·
-
Link Checker ReportAbiertoautomated issue report
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
ratatui/awesome-ratatui#598 ·
Los mantenedores suelen responder en 1 día
-
release
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
github/gh-aw-mcpg#17603 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
C-Bug S-Needs-Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
bevyengine/bevy#26718 ·
Los mantenedores suelen responder en 2 días