1. 13 Jun, 2024 3 commits
    • Pablo Montalvo's avatar
      add initial design for uniform processors + align model (#31197) · c624d5ba
      Pablo Montalvo authored
      * add initial design for uniform processors + align model
      
      * fix mutable default 👀
      
      * add configuration test
      
      * handle structured kwargs w defaults + add test
      
      * protect torch-specific test
      
      * fix style
      
      * fix
      
      * fix assertEqual
      
      * move kwargs merging to processing common
      
      * rework kwargs for type hinting
      
      * just get Unpack from extensions
      
      * run-slow[align]
      
      * handle kwargs passed as nested dict
      
      * add from_pretrained test for nested kwargs handling
      
      * [run-slow]align
      
      * update documentation + imports
      
      * update audio inputs
      
      * protect audio types, silly
      
      * try removing imports
      
      * make things simpler
      
      * simplerer
      
      * move out kwargs test to common mixin
      
      * [run-slow]align
      
      * skip tests for old processors
      
      * [run-slow]align, clip
      
      * !$#@!! protect imports, darn it
      
      * [run-slow]align, clip
      
      * [run-slow]align, clip
      
      * update doc
      
      * improve documentation for default values
      
      * add model_max_length testing
      
      This parameter depends on tokenizers received.
      
      * Raise if kwargs are specified in two places
      
      * fix
      
      * expand VideoInput
      
      * fix
      
      * fix style
      
      * remove defaults values
      
      * add comment to indicate documentation on adding kwargs
      
      * protect imports
      
      * [run-slow]align
      
      * fix
      
      * remove set() that breaks ordering
      
      * test more
      
      * removed unused func
      
      * [run-slow]align
      c624d5ba
    • Matt's avatar
      Make chat templates part of ProcessorMixin (#30744) · 15b3923d
      Matt authored
      * Let's try moving chat templates out of IDEFICS and into the generic ProcessorMixin
      
      * Chat templates should not be mandatory
      
      * Chat templates should not be mandatory
      
      * Not all classes will have default chat templates
      
      * stash commit
      
      * Add chat template docstring
      
      * Clean up docstring
      
      * Add chat templates to LLaVA/LLaVA-next
      
      * Docstring fixup
      
      * Quick IDEFICS2 fixup
      
      * Remove some old references to the Conversation class
      
      * make fixup
      15b3923d
    • Billy Cao's avatar
      [QoL fix] [Image processing] Add warning on assumption of channel dim and... · 3c4a8dca
      Billy Cao authored
      
      [QoL fix] [Image processing] Add warning on assumption of channel dim and avoid infering when inputs are PIL.Image (#31364)
      
      * Add warning on assumption of channel dim
      Use PIL info whenever possible to decide channel axis
      
      * Fix ruff format
      
      * Remove type checking
      Improve warning message
      
      * Update src/transformers/models/siglip/image_processing_siglip.py
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      
      * Update src/transformers/image_utils.py
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      
      * Update src/transformers/image_utils.py
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      
      ---------
      Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
      3c4a8dca
  2. 12 Jun, 2024 11 commits
  3. 11 Jun, 2024 5 commits
  4. 10 Jun, 2024 10 commits
  5. 07 Jun, 2024 11 commits