1. 25 Apr, 2024 9 commits
    • Yoach Lacombe's avatar
      馃毃 Add training compatibility for Musicgen-like models (#29802) · 90cb55bf
      Yoach Lacombe authored
      
      
      * first modeling code
      
      * make repository
      
      * still WIP
      
      * update model
      
      * add tests
      
      * add latest change
      
      * clean docstrings and copied from
      
      * update docstrings md and readme
      
      * correct chroma function
      
      * correct copied from and remove unreleated test
      
      * add doc to toctree
      
      * correct imports
      
      * add convert script to notdoctested
      
      * Add suggestion from Sanchit
      Co-authored-by: default avatarSanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
      
      * correct get_uncoditional_inputs docstrings
      
      * modify README according to SANCHIT feedback
      
      * add chroma to audio utils
      
      * clean librosa and torchaudio hard dependencies
      
      * fix FE
      
      * refactor audio decoder -> audio encoder for consistency with previous musicgen
      
      * refactor conditional -> encoder
      
      * modify sampling rate logics
      
      * modify license at the beginning
      
      * refactor all_self_attns->all_attentions
      
      * remove ignore copy from causallm generate
      
      * add copied from for from_sub_models
      
      * fix make copies
      
      * add warning if audio is truncated
      
      * add copied from where relevant
      
      * remove artefact
      
      * fix convert script
      
      * fix torchaudio and FE
      
      * modify chroma method according to feedback-> better naming
      
      * refactor input_values->input_features
      
      * refactor input_values->input_features and fix import fe
      
      * add input_features to docstrigs
      
      * correct inputs_embeds logics
      
      * remove dtype conversion
      
      * refactor _prepare_conditional_hidden_states_kwargs_for_generation ->_prepare_encoder_hidden_states_kwargs_for_generation
      
      * change warning for chroma length
      
      * Update src/transformers/models/musicgen_melody/convert_musicgen_melody_transformers.py
      Co-authored-by: default avatarSanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
      
      * change way to save wav, using soundfile
      
      * correct docs and change to soundfile
      
      * fix import
      
      * fix init proj layers
      
      * add draft training
      
      * fix cross entropy
      
      * clean loss computation
      
      * fix labels
      
      * remove line breaks from md
      
      * fix issue with docstrings
      
      * add FE suggestions
      
      * improve is in logics and remove useless imports
      
      * remove custom from_pretrained
      
      * simplify docstring code
      
      * add suggestions for modeling tests
      
      * make style
      
      * update converting script with sanity check
      
      * remove encoder attention mask from conditional generation
      
      * replace musicgen melody checkpoints with official orga
      
      * rename ylacombe->facebook in checkpoints
      
      * fix copies
      
      * remove unecessary warning
      
      * add shape in code docstrings
      
      * add files to slow doc tests
      
      * fix md bug and add md to not_tested
      
      * make fix-copies
      
      * fix hidden states test and batching
      
      * update training code
      
      * add training tests for melody
      
      * add training for o.g musicgen
      
      * fix copied from
      
      * remove final todos
      
      * make style
      
      * fix style
      
      * add suggestions from review
      
      * add ref to the original loss computation code
      
      * rename method + fix labels in tests
      
      * make style
      
      ---------
      Co-authored-by: default avatarSanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
      90cb55bf
    • Tom Aarsen's avatar
      Prevent crash with `WandbCallback` with third parties (#30477) · ce5ae5a4
      Tom Aarsen authored
      * Use EAFP principle to prevent crash with third parties
      
      * Remove leftover debugging code
      
      * Add info-level logger message
      ce5ae5a4
    • amyeroberts's avatar
      aca4a103
    • amyeroberts's avatar
      Fix SigLip classification doctest (#30475) · 4fed29e3
      amyeroberts authored
      * Fix SigLip classification doctest
      
      * Remove extra line
      
      * Update src/transformers/models/siglip/modeling_siglip.py
      4fed29e3
    • amyeroberts's avatar
      Script for finding candidate models for deprecation (#29686) · 30ee508c
      amyeroberts authored
      * Add utility for finding candidate models for deprecation
      
      * Better model filtering
      
      * Update
      
      * Add warning tip
      
      * Fix up
      
      * Review comments
      
      * Filter requests based on tags
      
      * Add copyright header
      30ee508c
    • Arthur's avatar
      [fix codellama conversion] (#30472) · c60749d6
      Arthur authored
      * fix codellama conversion
      
      * nit
      c60749d6
    • Younes Belkada's avatar
      FIX / Workflow: Fix SSH workflow bug (#30474) · e9b16354
      Younes Belkada authored
      Update ssh-runner.yml
      e9b16354
    • Younes Belkada's avatar
      FIX / Workflow: Change tailscale trigger condition (#30471) · cd0cd12a
      Younes Belkada authored
      Update push-important-models.yml
      cd0cd12a
    • Younes Belkada's avatar
      Workflow / ENH: Add SSH into our runners workflow (#30425) · cebb0726
      Younes Belkada authored
      
      
      * add SSH into our runners workflow
      
      * fix
      
      * fix
      
      * fix
      
      * use our previous approaches
      
      * forward contrib credits from discussions
      
      ---------
      Co-authored-by: default avatarYih-Dar <ydshieh@users.noreply.github.com>
      cebb0726
  2. 24 Apr, 2024 19 commits
  3. 23 Apr, 2024 12 commits