transformers
3c3ff8c1 - 🚨 Move processing defaults to class (#49089)

Commit
6 hours ago
🚨 Move processing defaults to class (#49089) * move processing defaults to class * update * more updates * remove do_convert_rgb overrides where possible * update docs * remove redundant padding=False in _defaults * remove redundant return_mm_token_type_ids=False * remove redundant return_text_replacement_offsets=False * drop empty defaults * update kimi * handle return_text_replacement_offsets * update costrings * update * fix tests * init with **kwargs * cleanup some common_kwargs * remove common_kwargs where possible * cleanup * move defaults to class * shorten comment * cleanup return_mm_token_type_ids * remove redundant default text_kwargs * more cleanup * update sam * update docstring * revert processor class attribute defaults saving * simplify _merge_kwargs calls * cleanup * fix modular * update test * add deprecation note * move emu3 defaults * update sam * cleanup * revert muse glimmer audio backend workaround * handle suffix * update got ocr2 * update janus * update kosmos2 * update more processors * update unpack import * fix torch type * update shieldgemma * update docs * add test * update * cleanup and add tests * fix repo * fix repo * fix test * fix test leaking * add version to deprecation notice * add version to deprecation notice * fix repo * fix chameleon * update * fix qianfan * update got ocr2 * deprecate more text kwargs * update molmo2 * update molmo2 * fix molmo * fix name * fix * simplify * add deprecate_attr * deprecate_attr examples * fix typo * update deprecate_attr * the great deprecation * more deprecations * add more tests * deprecate last textkwargs class * add missing Total=False * deprecate last videoskwargs * add stricter tests * update docs * amend * deprecate last _defaults * skip test correctly * fix regression * cleanup * clarify * revert test_pil_can_load_without_torchvision changes * fix olw models * fix regressions * cleanup * update minicpm ocr * update models * make check more robust * review * update nemotron3_5_transcribe * add comment * disallow inheriting from deprecated classes * update * raise if argument passed twice * add OmniModalProcessorMixin * fix return types * handle suffix * typos * update omni processor * update docs * update comment * unified skip list * update description * update tests * spacing * handle OmniModalProcessorMixin * update copali * make text kwargs deprecations less breaking * update docs * move skip to shared tests
Author
Parents
Loading