transformers
Support Audio Flamingo Next checkpoints
#44830
Merged

Support Audio Flamingo Next checkpoints #44830

lashahub
lashahub Music flamingo
caf33f1a
lashahub Fix pos embeddings
b69a9d1f
lashahub Merge branch 'huggingface:main' into main
b4acc17c
lashahub Method arg docstrings
cf1e9bc8
lashahub Add tests & docs
44e801be
lashahub Merge branch 'huggingface:main' into main
f0956e30
lashahub Fix AF3 dtype bug
c9734457
lashahub Fix the MF performance issue
e3a17fb5
lashahub Fix pos embeddings
627dee87
lashahub Merge branch 'main' of https://github.com/lashahub/transformers
e9df30da
lashahub Fix embeddings & format
4c48132d
lashahub Remove external deps
d67c1143
lashahub Update processor token names
aedd3411
lashahub Cleanup
87d55a9c
lashahub Simplify RotaryEmbedding to lang-only
be227468
lashahub Reuse AF3 config classes
e5b4677e
lashahub Trim+rename rotary embedding
d7e0bcb2
lashahub Call parent _init_weights first and drop rotary einsum
74af4fa9
lashahub Precompute rotary cache at init
d622368e
lashahub Use modular processor pattern for MusicFlamingo
cab39379
lashahub Remove audio-only inference example
9dd94a0e
lashahub Refactor Audio Feature Casting Path
767a1d54
lashahub Clarify private source repo
91196605
lashahub Clean up modular
fc8ab3aa
lashahub Move config to modular
5159745d
lashahub Formatting
4aae4ff3
lashahub Remove dummy
ffef7dbe
lashahub Derive musicflamingo timing and rotary config
90148ed4
lashahub Llama style rotary embeddings
87cb03fb
lashahub Added reproducer comments
5abac953
ebezzam Expose _init_weights for modular.
f4a1b681
ebezzam Satisfy repo checks
3b9290f7
lashahub Align MusicFlamingo rotary with Llama style
82ab1ef2
lashahub Move MusicFlamingo _init_weights to encoder
e993dea0
lashahub Keep old behavior
2d88557f
lashahub Move MusicFlamingo rotary settings into encoder rope_parameters
27024f15
lashahub Use AutoConfig in AF3/MF
10797b97
lashahub Align MusicFlamingo RoTE with Llama RoPE conventions
f49014f8
lashahub Update outdated fixtures
f465d3d2
ebezzam init_weights without changing others
4224af51
ebezzam FIx import
2cbf219e
lashahub Remove backward compat
a25c8a6b
lashahub Merge branch 'main' into modular-mf
3ed73a80
lashahub Regenerate modeling for MF
f2e7d3f0
lashahub Fix AF3 batch inference bug
445cd245
ebezzam Simplify config and nit.
fc25c48a
ebezzam Conform more to transformers convention, e.g. removing unused code pa…
664e7b12
ebezzam Add another possible AF3 prefix.
bbca79a4
ebezzam Merge branch 'main' into modular-mf
69c9bee2
ebezzam Use auto_docstring and update docstrings.
17846d93
ebezzam Nits
24fbaa71
ebezzam Nit for review
e25d377b
ebezzam Shift RoTE to main model so that encoder can be directly used from AF3.
c99fc0ad
ebezzam Refactoring nit.
9bb0c53d
lashahub Fix init
e9528a6b
lashahub Fix some failing tests
13af64d4
lashahub Fix AF3 & MF and add batching tests
a34e981a
ebezzam Fix audio embedding masking (bad post length)
702eb272
ebezzam Nits and remove since same as GLM was bug in post length computation
a32520ce
ebezzam Simplify MF as AF3, and style checks.
7750bb5a
ebezzam Merge branch 'main' into modular-mf
74417f6c
ebezzam New config after merge and modular update.
54bfeccf
ebezzam Merge branch 'main' into modular-mf
2f2b552e
ebezzam Address music flamingo tests, and some cleanup.
612840f6
ebezzam style check
2c3e5839
ebezzam Regenerate config.
a20e163b
ebezzam Update fixtures.
fdb849a2
ebezzam Nits
057ad886
ebezzam Merge branch 'modular-mf' of github.com:lashahub/transformers into mo…
0442a67a
ebezzam Nit
7f04d2d6
lashahub Add AudioFlamingoNext alias model
63a135c2
lashahub Merge branch 'modular-mf' into add_AudioFlamingoNext
7125e055
lashahub Regenerate AF-Next files
7c94fb5c
lashahub Merge branch 'huggingface:main' into modular-mf
66ce2012
ebezzam
ebezzam commented on 2026-03-20
lashahub Improve RoTE config
7e06d278
lashahub Refine MusicFlamingo rotary time handling
d423510c
ebezzam Simplification, and update AF3 processor for better modular
e79475b7
ebezzam Fix torch export
6a1add49
ebezzam Simplify modular, including upstreaming input_ids input to get_audio_…
e05b767f
ebezzam Remove upstreaming of input_ids to get_audio_features, and remove aud…
edcffefa
ebezzam Switch to MoonshineRotaryEmbedding, and cleanup.
e986996b
lashahub Remove hardcoded MusicFlamingo partial_rotary_factor
ad76e285
lashahub Update fixtures
8e0dc3b2
ebezzam Compile re.sub
a46aa1c9
ebezzam Merge branch 'modular-mf' of github.com:lashahub/transformers into mo…
836da949
ebezzam Update src/transformers/models/musicflamingo/modular_musicflamingo.py
10894776
ebezzam Update src/transformers/models/musicflamingo/modular_musicflamingo.py
2ea55748
ebezzam Style
999737e5
ebezzam Merge branch 'main' into modular-mf
1533bec8
ebezzam Update fixtures.
6857af95
ebezzam Merge branch 'main' into modular-mf
cd693fc5
ebezzam Conditional torch import for processor.
35fc31fd
ebezzam Merge branch 'modular-mf' of github.com:lashahub/transformers into mo…
a62e7d9e
ebezzam Merge branch 'main' into modular-mf
d0d18f2b
ebezzam Merge branch 'main' into modular-mf
47fa9381
lashahub Merge branch 'modular-mf' into add_AudioFlamingoNext
dd2cc525
lashahub Merge MF & convert modular
c6f4213e
lashahub 30 mins in AF-Next
fd63719a
lashahub Merge branch 'main' into add_AudioFlamingoNext
6d5948e7
lashahub Regen
a44c7745
lashahub Fix AF-Next converter
3c7f5826
lashahub AF-Next readme
8f33aeba
lashahub Add tests
d323d1f5
lashahub Update AF-Next docs
9735a5fe
lashahub lashahub marked this pull request as draft 235 days ago
lashahub Fix MusicFlamingo and AFNext context metadata and rope defaults
548e6469
lashahub lashahub force pushed from c5363016 to 548e6469 231 days ago
lashahub Merge branch 'huggingface:main' into add_AudioFlamingoNext
e771363c
lashahub Update fixtures
8c17076c
lashahub lashahub marked this pull request as ready for review 228 days ago
lashahub
lashahub
ebezzam
ebezzam ebezzam assigned ebezzam ebezzam 218 days ago
ebezzam
ebezzam
ebezzam commented on 2026-04-13
ebezzam
ebezzam
ebezzam commented on 2026-04-24
HuggingFaceDocBuilderDev
ebezzam
ebezzam commented on 2026-04-24
lashahub Address reviews
d79fb29a
lashahub Add reproducer
205f8c85
lashahub
eustlb
eustlb commented on 2026-05-12
lashahub Update AF-Next converter
7e63ddd7
lashahub Remove AF-Next
e38b6acb
lashahub Keep AF-Next converter
8771a9f4
lashahub Merge branch 'main' into add_AudioFlamingoNext
7091a2a4
lashahub
lashahub lashahub changed the title Add AudioFlamingoNext model Support Audio Flamingo Next checkpoints 198 days ago
ebezzam Merge branch 'main' into add_AudioFlamingoNext
da61fd31
ebezzam
ebezzam commented on 2026-05-13
ebezzam
ebezzam commented on 2026-05-13
ebezzam
ebezzam approved these changes on 2026-05-13
ebezzam
lashahub
eustlb
eustlb approved these changes on 2026-05-14
eustlb Update src/transformers/models/musicflamingo/modular_musicflamingo.py
88e96440
eustlb make
3f1219d2
eustlb eustlb enabled auto-merge 197 days ago
github-actions
eustlb eustlb merged dca33474 into main 196 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
Labels
Milestone