transformers
Add Music Flamingo
#43538
Merged

Add Music Flamingo #43538

ebezzam merged 92 commits into huggingface:main from lashahub:modular-mf
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
ebezzam
ebezzam ebezzam assigned ebezzam ebezzam 73 days ago
ebezzam ebezzam added Audio
ebezzam ebezzam added New model
ebezzam
ebezzam commented on 2026-02-10
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 lashahub force pushed from fa89e88d to 767a1d54 53 days ago
ebezzam
ebezzam commented on 2026-02-17
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
denadai2
denadai2
lashahub
ebezzam Expose _init_weights for modular.
f4a1b681
ebezzam Satisfy repo checks
3b9290f7
ebezzam
ebezzam commented on 2026-02-24
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
ebezzam FIx import
2cbf219e
ebezzam
ebezzam commented on 2026-02-27
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
lashahub
ebezzam Simplify config and nit.
fc25c48a
ebezzam Conform more to transformers convention, e.g. removing unused code pa…
664e7b12
ebezzam
ebezzam Add another possible AF3 prefix.
bbca79a4
ebezzam Merge branch 'main' into modular-mf
69c9bee2
ebezzam Use auto_docstring and update docstrings.
17846d93
ebezzam
ebezzam commented on 2026-03-11
ebezzam Nits
24fbaa71
ebezzam Nit for review
e25d377b
ebezzam
ebezzam commented on 2026-03-11
ebezzam Shift RoTE to main model so that encoder can be directly used from AF3.
c99fc0ad
ebezzam
ebezzam commented on 2026-03-11
ebezzam Refactoring nit.
9bb0c53d
lashahub Fix init
e9528a6b
lashahub Fix some failing tests
13af64d4
lashahub Fix AF3 & MF and add batching tests
a34e981a
lashahub
ebezzam
ebezzam commented on 2026-03-17
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
ebezzam commented on 2026-03-17
ebezzam Simplify MF as AF3, and style checks.
7750bb5a
ebezzam
ebezzam Merge branch 'main' into modular-mf
74417f6c
HuggingFaceDocBuilderDev
ebezzam New config after merge and modular update.
54bfeccf
ebezzam
github-actions
github-actions
ebezzam Merge branch 'main' into modular-mf
2f2b552e
ebezzam Address music flamingo tests, and some cleanup.
612840f6
ebezzam style check
2c3e5839
ebezzam
github-actions
ebezzam Regenerate config.
a20e163b
github-actions
ebezzam Update fixtures.
fdb849a2
ebezzam
github-actions
github-actions
ebezzam Nits
057ad886
ebezzam Merge branch 'modular-mf' of github.com:lashahub/transformers into mo…
0442a67a
lashahub
ebezzam Nit
7f04d2d6
ebezzam
ebezzam commented on 2026-03-18
ebezzam
ebezzam ebezzam requested a review from eustlb eustlb 22 days ago
lashahub Merge branch 'huggingface:main' into modular-mf
66ce2012
eustlb
eustlb commented on 2026-03-20
lashahub Improve RoTE config
7e06d278
lashahub Refine MusicFlamingo rotary time handling
d423510c
lashahub
ebezzam Simplification, and update AF3 processor for better modular
e79475b7
ebezzam
github-actions
github-actions
ebezzam Fix torch export
6a1add49
ebezzam Simplify modular, including upstreaming input_ids input to get_audio_…
e05b767f
ebezzam
ebezzam commented on 2026-03-23
ebezzam ebezzam requested a review from eustlb eustlb 19 days ago
eustlb
eustlb commented on 2026-03-24
ebezzam Remove upstreaming of input_ids to get_audio_features, and remove aud…
edcffefa
ebezzam Switch to MoonshineRotaryEmbedding, and cleanup.
e986996b
ebezzam
ebezzam commented on 2026-03-24
eustlb
eustlb approved these changes on 2026-03-24
lashahub Remove hardcoded MusicFlamingo partial_rotary_factor
ad76e285
lashahub
lashahub Update fixtures
8e0dc3b2
ebezzam ebezzam requested a review from ArthurZucker ArthurZucker 16 days ago
ArthurZucker
ArthurZucker approved these changes on 2026-03-25
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
github-actions
ebezzam
github-actions
github-actions
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
github-actions
github-actions
ebezzam ebezzam enabled auto-merge 11 days ago
github-actions
ebezzam Merge branch 'main' into modular-mf
47fa9381
github-actions
ebezzam ebezzam merged a9c6700a into main 11 days ago
lashahub lashahub deleted the modular-mf branch 6 days ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone