Skip to content

fix(audio): Route the ALM conversion scripts through from_pretrained - #48525

Merged
vasqu merged 2 commits into
huggingface:mainfrom
harshaljanjani:fix/alm-converter-weight-renaming
Oct 21, 2026
Merged

vasqu merged 2 commits into
huggingface:mainfrom
harshaljanjani:fix/alm-converter-weight-renaming

Conversation

@harshaljanjani

@harshaljanjani harshaljanjani commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

🤗 Transformers CI

What does this PR do?

→ #45534 nested the ALM models under model. and added the renames to conversion_mapping.py, but those are only applied by from_pretrained, so every one of these scripts has been loading 0% of its weights since then
→ One nit with GLM-ASR, #41250 dropped GlmAsrEncoderConfig.head_dim, so I've changed that to the way the model does it

Tested the following, which broke before and now produce valid outputs (transcriptions/captions).

→ zai-org/GLM-ASR-Nano-2512
→ mistralai/Voxtral-Mini-3B-2507
→ mistralai/Voxtral-Mini-4B-Realtime-2602
→ nvidia/music-flamingo-2601-hf
→ nvidia/audio-flamingo-3
→ nvidia/audio-flamingo-next-hf
→ microsoft/VibeVoice-ASR

cc: @eustlb @ebezzam

Before submitting

@harshaljanjani
harshaljanjani marked this pull request as ready for review September 4, 2026 11:57
@zucchini-nlp
zucchini-nlp removed their request for review September 4, 2026 12:20
@harshaljanjani

Copy link
Copy Markdown
Contributor Author

@zucchini-nlp In relation to the #37033 update, the VLM conversion scripts might need similar updates as well. I checked a few, and LLaVA and a couple of models that inherit from it don't load their weights. Happy to raise the VLM equivalent after a thorough investigation, please do let me know if you have a refactor planned :)

@zucchini-nlp
zucchini-nlp requested a review from ebezzam September 4, 2026 12:20
@zucchini-nlp

zucchini-nlp commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Oke, thanks for checking that. I don't think it is a prio atm since conversion scripts aren't really maintained/used, and for new releases we try to put all the renames in conversion_mapping and kindaly ask repo owners to update their processors if needed

@harshaljanjani

Copy link
Copy Markdown
Contributor Author

Makes sense, thanks, will leave the VLM ones then!

@ebezzam ebezzam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @harshaljanjani! as @zucchini-nlp said, we don't actively maintain the conversion scripts, so i don't have a strong opinion on whether to merge this. But every now and then, I point existing conversion scripts to a contributor so it could be nice that the script doesn't fail if they are trying it?

@eustlb eustlb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks indeed this will give better refs for contributors

@harshaljanjani

Copy link
Copy Markdown
Contributor Author

Good day; just checking in to see if there've been any updates on this :)

@harshaljanjani

Copy link
Copy Markdown
Contributor Author

@eustlb @ebezzam Good day, looking forward to any updates on this 🤗

@ArthurZucker
ArthurZucker requested a review from vasqu October 21, 2026 01:34
@ArthurZucker

Copy link
Copy Markdown
Collaborator

@vasqu this was approved by @eustlb on 2026-09-07; could you give it the core-maintainer review so it can be merged?

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice optim, are there more new recent models with the same issue?

@harshaljanjani

Copy link
Copy Markdown
Contributor Author

Thanks @vasqu; none of the other audio ones. Outside ALMs though the DETR family has the same issue. Happy to include those in this PR as well and re-title it; if not, here are the models for future reference. LW-DETR, D-FINE, RT-DETR, RT-DETRv2 and Deformable DETR, and the fix is pretty similar I think to this PR's.

@vasqu

vasqu commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Let's do it in another PR then, we should keep ALMs separate to the vision models imo

@vasqu
vasqu enabled auto-merge October 21, 2026 14:48
@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: audioflamingo3, glmasr, musicflamingo, vibevoice_asr, voxtral, voxtral_realtime

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@vasqu
vasqu added this pull request to the merge queue Oct 21, 2026
Merged via the queue into huggingface:main with commit 7202143 Oct 21, 2026
34 checks passed
@harshaljanjani
harshaljanjani deleted the fix/alm-converter-weight-renaming branch October 21, 2026 15:14
vasqu added a commit to athrael-soju/transformers that referenced this pull request Oct 21, 2026
…uggingface#48525)

fix: Route the ALM conversion scripts through from_pretrained

Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
ebezzam pushed a commit to ebezzam/transformers that referenced this pull request Oct 21, 2026
* Add UltraVBert: UltraBERT text encoder with a SigLIP vision encoder

* Cap UltraVBert page tiles and add its model doc

* Trim UltraVBert comments

* Document UltraVBert's image_hidden_states and image-processor kwargs, date its model doc

* Add UltraVBert integration tests on the released checkpoint

* Skip SDPA flash dispatch for UltraVBert's sliding-window text tower

* Describe UltraVBert as extending ModernVBert in its model doc

* Update docs/source/en/model_doc/ultravbert.md

Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>

* Load the receipt fixture with load_image in the UltraVBert usage example

* Split the UltraVBert usage example into AutoModel and Pipeline tabs

* Always RMS-normalize UltraVBert's image tokens and drop connector_norm

* Batch UltraVBert's capped resize, write its image processing out in full and default the tile cap to 27

* Reuse ModernVBert's MLM head layout and forwards in UltraVBert and test it with the VLM tester

* Address review: drop the PIL image processor, adopt ModernVBert task tests

* Drop SigLIP's unused pooling head from UltraVBert

* Default UltraVBert's vision config to no pooling head through init_kwargs

* last stuff

* fix model parallel bug for molmo2 model (huggingface#49816)

Signed-off-by: kaixuanliu <kaixuan.liu@intel.com>

* fix(audio): Route the ALM conversion scripts through from_pretrained (huggingface#48525)

fix: Route the ALM conversion scripts through from_pretrained

Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>

---------

Signed-off-by: kaixuanliu <kaixuan.liu@intel.com>
Co-authored-by: Anton Vlasjuk <73884904+vasqu@users.noreply.github.com>
Co-authored-by: vasqu <antonprogamer@gmail.com>
Co-authored-by: kaixuanliu <kaixuan.liu@intel.com>
Co-authored-by: Harshal Janjani <harshaljanjani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants