Yoach Lacombe
9ba021ea75
Moshi integration (#33624)
* clean mimi commit
* some nits suggestions from Arthur
* make fixup
* first moshi WIP
* converting weights working + configuration + generation configuration
* finalize converting script - still missing tokenizer and FE and processor
* fix saving model w/o default config
* working generation
* use GenerationMixin instead of inheriting
* add delay pattern mask
* fix right order: moshi codes then user codes
* unconditional inputs + generation config
* get rid of MoshiGenerationConfig
* blank user inputs
* update convert script:fix conversion, add tokenizer, feature extractor and bf16
* add and correct Auto classes
* update modeling code, configuration and tests
* make fixup
* fix some copies
* WIP: add integration tests
* add dummy objects
* propose better readiblity and code organisation
* update tokenization tests
* update docstrigns, eval and modeling
* add .md
* make fixup
* add MoshiForConditionalGeneration to ignore Auto
* revert mimi changes
* re
* further fix
* Update moshi.md
* correct md formating
* move prepare causal mask to class
* fix copies
* fix depth decoder causal
* fix and correct some tests
* make style and update .md
* correct config checkpoitn
* Update tests/models/moshi/test_tokenization_moshi.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* Update tests/models/moshi/test_tokenization_moshi.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* make style
* Update src/transformers/models/moshi/__init__.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* fixup
* change firm in copyrights
* udpate config with nested dict
* replace einsum
* make style
* change split to True
* add back splt=False
* remove tests in convert
* Update tests/models/moshi/test_modeling_moshi.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* add default config repo + add model to FA2 docstrings
* remove logits float
* fix some tokenization tests and ignore some others
* make style tokenization tests
* update modeling with sliding window + update modeling tests
* [run-slow] moshi
* remove prepare for generation frol CausalLM
* isort
* remove copied from
* ignore offload tests
* update causal mask and prepare 4D mask aligned with recent changes
* further test refine + add back prepare_inputs_for_generation for depth decoder
* correct conditional use of prepare mask
* update slow integration tests
* fix multi-device forward
* remove previous solution to device_map
* save_load is flaky
* fix generate multi-devices
* fix device
* move tensor to int
---------
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
Co-authored-by: Marc Sun <marc@huggingface.co>
2024-10-16 11:21:49 +02:00
..
2024-08-29 11:51:09 +02:00
2024-10-11 14:38:35 +02:00
2024-10-16 11:21:49 +02:00
2024-10-10 15:22:41 +02:00
2024-10-08 14:26:43 +02:00
2024-10-04 11:20:56 +02:00
2024-05-28 18:29:22 +02:00
2024-10-16 11:21:49 +02:00
2024-09-09 10:47:24 +02:00
2024-09-27 17:15:13 +02:00
2024-04-16 15:34:04 +01:00
2024-09-18 11:07:51 +02:00
2024-09-18 11:07:51 +02:00
2024-02-08 14:13:35 -08:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-04-01 18:47:32 -07:00
2024-10-04 14:40:44 +01:00
2024-09-09 10:47:24 +02:00
2022-04-04 10:25:46 -04:00
2024-07-23 17:47:51 +01:00
2024-06-06 22:02:38 +01:00
2024-08-26 13:15:43 +02:00
2024-09-09 10:47:24 +02:00
2024-07-08 11:52:47 +01:00
2023-06-20 18:07:47 -04:00
2023-12-20 10:37:23 -08:00
2024-10-10 14:41:53 +02:00
2024-10-14 10:22:49 +02:00
2024-07-08 11:52:47 +01:00
2024-10-07 10:08:20 +02:00
2024-10-02 14:08:46 +01:00
2024-10-16 11:21:49 +02:00
2024-09-09 10:47:24 +02:00
2024-09-19 12:02:46 +01:00
2024-09-06 10:22:00 +01:00
2024-09-24 03:40:56 -06:00
2024-10-02 09:12:21 +01:00
2024-09-24 03:40:56 -06:00
2024-09-09 10:47:24 +02:00
2024-03-23 18:29:39 -07:00
2024-10-08 14:53:58 +02:00
2024-02-16 08:16:58 +01:00
2022-04-04 10:25:46 -04:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-02-02 08:45:00 +01:00
2024-10-16 11:21:49 +02:00
2024-07-29 10:50:43 +01:00
2024-10-04 11:20:56 +02:00
2024-02-16 08:16:58 +01:00
2024-06-18 11:00:26 -07:00
2024-09-25 19:20:51 +02:00
2024-02-16 08:16:58 +01:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-02-16 08:16:58 +01:00
2023-11-06 19:45:03 +00:00
2024-08-19 09:50:35 -07:00
2024-02-16 08:16:58 +01:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-10-02 14:08:46 +01:00
2024-09-12 10:16:12 -07:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-04-16 11:58:55 +02:00
2024-09-09 10:47:24 +02:00
2024-09-09 10:47:24 +02:00
2024-07-29 10:50:43 +01:00
2024-02-16 08:16:58 +01:00
2024-09-06 14:24:02 +02:00
2024-06-03 16:52:23 -07:00
2024-09-09 10:47:24 +02:00
2024-10-02 14:08:46 +01:00
2024-05-14 18:45:06 +01:00
2024-02-16 08:16:58 +01:00