Add Dia model #38405

vasqu merged 217 commits into huggingface:main from buttercrab:add-dia
buttercrab
buttercrab add dia model
86d38f16
ArthurZucker add tokenizer files
ad7302e0
ArthurZucker cleanup some stuff
3aefa5fc
ArthurZucker Merge branch 'main' into add-dia
782af0ef
ArthurZucker brut copy paste code
c61f8856
ArthurZucker Merge branch 'add-dia' of github.com:huggingface/transformers into ad…
810a8df6
ArthurZucker rough cleanup of the modeling code
4ac684e7
ArthurZucker nuke some stuff
9cc0d6b9
ArthurZucker more nuking
d7491abd
ArthurZucker more cleanups
a447adfe
ArthurZucker updates
5f3b0c3d
ArthurZucker add mulitLayerEmbedding vectorization
64273232
ArthurZucker nits
79e4f039
ArthurZucker more modeling simplifications
df780fd9
ArthurZucker updates
f7b2c085
ArthurZucker update rope
fdabeb5c
ArthurZucker update rope
9861ab52
ArthurZucker just fixup
007d4803
ArthurZucker update configuration files
14a502ed
ArthurZucker more cleanup!
d9e9585d
ArthurZucker default config values
677481b9
ArthurZucker update
919ef033
ArthurZucker forgotten comma
73acbdde
ArthurZucker another comma!
87375efc
ArthurZucker update, more cleanups
f1dfefdc
ArthurZucker just more nits
13117926
ArthurZucker more config cleanups
f795327c
ArthurZucker time for the encoder
68650efb
ArthurZucker fix
10066b6d
ArthurZucker sa=mall nit
738b858d
ArthurZucker nits
233db050
ArthurZucker n
9f2608c4
ArthurZucker refacto a bit
87efaf0e
ArthurZucker cleanup
525a40dd
ArthurZucker update cv scipt
4d358083
ArthurZucker fix last issues
3dfe8cd7
ArthurZucker fix last nits
0ee2ac64
ArthurZucker styling
8ac8a9e8
ArthurZucker small fixes
8e63b288
ArthurZucker just run 1 generation
43e10821
ArthurZucker fixes
ab43e723
ArthurZucker nits
83ce1f8d
ArthurZucker fix conversion
35a317f8
ArthurZucker fix
a12a7667
ArthurZucker more fixes
ed0d00c0
ArthurZucker full generate
2af24189
ArthurZucker ouf!
41990003
ArthurZucker fixes!
5f396557
ArthurZucker updates
f09666c3
ArthurZucker fix
badc5d05
ArthurZucker fix cvrt
463f366e
ArthurZucker fixup
37b19430
ArthurZucker nits
81497ed1
ArthurZucker delete wrong test
afb3915c
buttercrab update
0d60608a
buttercrab update
06912280
buttercrab test tokenization
41c4f39b
vasqu let's start changing things bit by bit - fix encoder step
465d92f6
buttercrab removing custom generation, moving to GenerationMixin
10893cb5
buttercrab add encoder decoder attention masks for generation
30007d95
buttercrab merge upstream main
6ecf9535
vasqu mask changes, correctness checked against ad29837 in dia repo
daaa83de
vasqu refactor a bit already --> next cache
f88ea865
vasqu too important not to push :)
a72e6e46
Rocketknight1
vasqu minimal cleanup + more todos
7c3c230d
vasqu Merge branch 'main' into add-dia
02ce881a
vasqu make main overwrite modeling utils
b1534265
buttercrab add cfg filter & eos filter
6891a655
buttercrab add eos countdown & delay pattern
93670a3b
buttercrab update eos countdown
cd3d95c5
buttercrab add max step eos countdown
47de6881
buttercrab fix tests
a4fdcab7
buttercrab merge
601143e0
buttercrab fix some things
40b9c647
buttercrab fix generation with testing
00d15a68
buttercrab move cfg & eos stuff to logits processor
a4a750d2
buttercrab make RepetitionPenaltyLogitsProcessor flexible
616e70a0
buttercrab fix input_ids concatenation dimension in GenerationMixin for flexibility
0837c73e
buttercrab Add DiaHangoverLogitsProcessor and DiaExponentialDecayLengthPenalty c…
20535742
buttercrab merge main
3d339513
buttercrab Add stopping criteria
35f564d0
buttercrab refactor
baa56770
buttercrab move delay pattern from processor to modeling like musicgen.
fa47036d
buttercrab fix processor & fix tests
5fe7b82c
buttercrab refactor types
52628a5c
buttercrab refactor imports
bd2ac7e1
buttercrab format code
7e22d243
buttercrab fix docstring to pass ci
f793f0d5
buttercrab Merge branch 'main' into add-dia
c1016a1f
buttercrab add docstring to DiaConfig & add DiaModel to test
efce6629
buttercrab fix docstring
093ad3b5
buttercrab add docstring
b6121254
buttercrab fix some bugs
607fa7ae
buttercrab Merge branch 'main' into add-dia
4e140973
vasqu check
85febf32
vasqu porting / merging results from other branch - IMPORTANT: it very like…
34299856
vasqu experimental testing of left padding for first channel
23574475
vasqu whoops
036c9aec
buttercrab Fix merge to make generation work
b8e648cf
buttercrab fix cfg filter
15b43adb
vasqu add position ids
fc6e4c59
vasqu add todos, break things
68b75d8a
vasqu revert changes to generation --> we will force 2d but go 3d on custom…
d8b892e6
vasqu refactor a lot, change prepare decoder ids to work with left padding …
19a9dffa
vasqu some first fixes to get to 10. in generation
4e7c5508
vasqu some more generation fixes / adjustment
7d08de5f
vasqu style + rope fixes
e988dda4
vasqu move cfg out, simplify a few things, more todos
7f9a0c8e
vasqu nit
1a274d77
vasqu start working on custom logit processors
d0ab6932
vasqu nit
5804eedd
vasqu quick fixes
8d0979ee
vasqu cfg top k
5dc7b3f8
vasqu more refactor of logits processing, needs a decision if gen config ge…
686e754a
vasqu lets keep changes to core code minimal, only eos scaling is questiona…
52d983a7
vasqu simpler eos delay logits processor
2e7c6c70
vasqu that was for debugging :D
e636bde0
vasqu proof of concept rope
d46de542
buttercrab small fix on device mismatch
2db8338d
vasqu cfg fixes + delay logits max len
a9d95209
vasqu transformers rope
371b9534
vasqu modular dia
5cfac34d
vasqu more cleanup
93829266
vasqu keep modeling consistently 3D, generate handles 2D internally
07f2720c
vasqu decoder starts with bos if nothing
3f8c1be9
vasqu post processing prototype
a0f61edf
vasqu style
59e2bccd
vasqu lol
282de2d1
vasqu force sample / greedy + fixes on padding
0f9171f3
vasqu style
db69ca32
vasqu fixup tokenization
4d3805a8
vasqu nits
0b26d2b5
vasqu revert
5e104a43
vasqu start working on dia tests
210faf56
vasqu fix a lot of tests
291fe544
vasqu more test fixes
ef9ab752
vasqu nit
da1ad0d7
vasqu Merge branch 'main' into add-dia
cedd8a5b
vasqu more test fixes + some features to simplify code more
8d93cd3f
vasqu more cleanup
d75899cc
vasqu forgot that one
a31ae4bc
vasqu autodocs
456a9cdd
vasqu small consistency fixes
1a1953e7
vasqu fix regression
0a41da29
vasqu small fixes
a1bf0f78
vasqu dia feature extraction
9eb506ab
vasqu docs
6d33db80
vasqu wip processor
af9b65fb
vasqu fix processor order
2cf7eda2
vasqu processing goes brrr
12bf32f5
vasqu transpose before
f8354bd5
vasqu small fix
57e687ba
vasqu fix major bug but needs now a closer look into the custom processors …
402f60f1
vasqu small thing on logits
737dcc9d
vasqu nits
7e81f453
vasqu simplify indices and shifts
9c692571
vasqu add simpler version of padding tests back (temporarily)
9937e329
vasqu add logit processor tests
d3e522e5
vasqu starting tests on processor
fc96004e
vasqu fix mask application during generation
0d5a6836
vasqu some fixes on the weights conversion
15ab87f6
vasqu style + fixup logits order
889e323f
vasqu simplify conversion
2a8d0d57
vasqu nit
0ccfea8e
vasqu remove padding tests
368d6b36
vasqu nits on modeling
53409795
vasqu hmm
e5a5dc33
vasqu fix tests
584cde26
vasqu trigger
f53f43cf
vasqu probably gonna be reverted, just a quick design around audio tokenizer
5beae320
vasqu fixup typing
1c90b378
vasqu Merge branch 'main' into add-dia
adc6e6c7
vasqu post merge + more typing
2acbe81c
vasqu initial design for audio tokenizer
c35bc88d
vasqu more design changes
31dea2a6
vasqu nit
3572cad5
vasqu more processor tests and style related things
1003a52e
vasqu add to init
6a61da20
vasqu protect import
c95defd2
vasqu not sure why tbh
b647afad
vasqu add another protect
ce98e6d0
vasqu more fixes
980fa377
vasqu wow
ac080630
vasqu it aint stopping :D
b291f253
vasqu another missed type issue
1e198b14
vasqu ...
135ed158
ArthurZucker
ArthurZucker commented on 2025-06-19
vasqu change design around audio tokenizer to prioritize init and go for au…
caac9e75
vasqu change to new causal mask function + docstrings
06a30c83
vasqu Merge branch 'main' into add-dia
623547a1
vasqu change ternary
16add9bb
vasqu docs
828c55ad
vasqu remove todo, i dont think its essential tbh
0f114083
vasqu remove pipeline as current pipelines do not fit in the current scheme…
1895c418
vasqu closer to wrapping up the processor
7598dbde
vasqu text to audio, just for demo purposes (will likely be reverted)
148f1fd1
vasqu vasqu marked this pull request as ready for review 1 year ago
vasqu
vasqu commented on 2025-06-20
vasqu check if it's this
aa684ddc
vasqu save audio function
9ec42248
vasqu ensure no grad
aab87b05
vasqu fixes on prefixed audio, hop length is used via preprocess dac, devic…
32237e3a
vasqu integration tests (tested locally on a100) + some processor utils / f…
27057101
vasqu style
7ca3d9b0
vasqu
github-actions
vasqu nits
005224bb
vasqu another round of smaller things
756b4087
vasqu Merge branch 'main' into add-dia
6afb932a
vasqu docs + some fixes (generate one might be big)
a144382c
vasqu msytery solved
34278249
vasqu small fix on conversion
8e9daf6f
vasqu add abstract audio tokenizer, change init check to abstract class
d55130be
vasqu nits
d2597ae9
ArthurZucker
ArthurZucker approved these changes on 2025-06-24
vasqu update docs + fix some processing :D
75ed1aca
vasqu change inheritance scheme for audio tokenizer
4d87181a
vasqu delete dead / unnecessary code in copied generate loop
96ca4e23
vasqu last nits on new pipeline behavior (+ todo on tests) + style
5828d1b1
vasqu Merge branch 'main' into add-dia
279944d2
vasqu
github-actions
vasqu
vasqu trigger
798330e8
vasqu
github-actions
vasqu
github-actions
vasqu vasqu enabled auto-merge (squash) 1 year ago
vasqu Merge branch 'main' into add-dia
9d1ea004
vasqu fixup loss
fa59c1ed
vasqu vasqu merged 583db52b into main 1 year ago
HuggingFaceDocBuilderDev

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone