1. 14 Nov, 2022 12 commits
    • Yih-Dar's avatar
    • Sanchit Gandhi's avatar
      [Examples] Generalise Seq2Seq ASR to handle Whisper (#19519) · af1a7c8c
      Sanchit Gandhi authored
      * merge conflicts
      
      * bos and eos in datacollator
      
      * (temp) hardcode removal of attention mask
      
      * freeze encoder
      
      * actually freeze encoder
      
      * set max length / num beams according to gen kwargs
      
      * (temp) fix tests
      
      * don't pop attn mask
      
      * override return attention mask config from Hub
      
      * Hub configs updated 馃
      
      * final fixes
      
      * update type annotations
      
      * backward comp
      af1a7c8c
    • Wonhyeong Seo's avatar
      feat: add i18n issue template (#20199) · 7ecb0391
      Wonhyeong Seo authored
      Part of #20183
      docs: add relevant labels to i18n issue template
      fix: typo on completion count
      7ecb0391
    • Wonhyeong Seo's avatar
      docs: translated index page to korean (#20180) · 07d8d6e2
      Wonhyeong Seo authored
      docs: i18n: first draft of index page
      docs: fix: first revision of index page
      docs: i18n: missed section - supported frameworks
      docs: fix: second revision of index page
      review by @ArthurZucker
      
      refactor: remove untranslated files from korean
      docs: fix: remove untranslated references from toctree.yml
      feat: enable korean docs in gh actions
      docs: feat: add in_translation page as placeholder
      docs: bug: testing if internal toc need alphabet chars
      docs: fix: custom english anchor for non-alphanumeric headings
      review by @sgugger
      
      docs: i18n: translate comments on install methods in _config.py
      docs: refactor: more concise wording for translations
      07d8d6e2
    • Arthur's avatar
      c149d366
    • Younes Belkada's avatar
      [ROC_BERT] Make CI happy (#20175) · 8dcf494e
      Younes Belkada authored
      * fix slow test
      
      * Update tests/models/roc_bert/test_modeling_roc_bert.py
      8dcf494e
    • Joao Gante's avatar
      7b55bb45
    • IMvision12's avatar
      Pytorch type hints (#20112) · d24e84d9
      IMvision12 authored
      * initial commit
      
      * Update modeling_whisper.py
      
      * Fixing Tests
      
      * modeling_vision_text_dual_encoder
      
      * modeling_vision_encoder_decoder
      
      * Update modeling_vit.py
      
      * Update modeling_vit_msn.py
      
      * Update modeling_trajectory_transformer.py
      
      * style
      
      * Update modeling_time_series_transformer.py
      
      * Update modeling_time_series_transformer.py
      
      * Update modeling_segformer.py
      
      * Update modeling_plbart.py
      
      * Update modeling_dpt.py
      
      * Update modeling_deit.py
      
      * Update modeling_dpt.py
      
      * Update modeling_esm.py
      
      * Update modeling_fnet.py
      
      * Update modeling_fnet.py
      
      * Update modeling_fnet.py
      
      * Update modeling_flava.py
      
      * Update modeling_flava.py
      
      * Update modeling_layoutlmv3.py
      
      * Update modeling_levit.py
      d24e84d9
    • Nicolas Patry's avatar
      Proposal Remove the weird `inspect` in ASR pipeline and make WhisperEncoder... · 03bc6ece
      Nicolas Patry authored
      
      Proposal Remove the weird `inspect` in ASR pipeline and make WhisperEncoder just nice to use. (#19571)
      
      * Proposal Remove the weird `inspect` in ASR pipeline and make
      WhisperEncoder just nice to use.
      
      It seems that accepting `attention_mask` is kind of an invariant of our
      models. For Seq2Seq ASR models, we had a special comment on how it
      actually was important to send it.
      
      `inspecting` seems pretty brittle way to handle this case.
      My suggestion is to simply add it as an kwarg that and just ignoring
      it with the docstring explaining why it's ignored.
      
      * Fixup.
      
      * Update src/transformers/models/whisper/modeling_whisper.py
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      
      * Doc fixing .
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      03bc6ece
    • code-with-rajeev's avatar
      Update README.md (#19530) · 2308f3d4
      code-with-rajeev authored
      Fixed a grammatical error.
      2308f3d4
    • Bartosz Szmelczynski's avatar
      Fix tapas scatter (#20149) · 78a471ff
      Bartosz Szmelczynski authored
      
      
      * First draft
      
      * Remove scatter dependency
      
      * Add require_torch
      
      * update vectorized sum test, add clone call
      
      * remove artifacts
      
      * fix style
      
      * fix style v2
      
      * remove "scatter" mentions from the code base
      
      * fix isort error
      Co-authored-by: default avatarNiels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
      Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
      78a471ff
    • Matthijs Hollemans's avatar
      add MobileNetV2 model (#17845) · f711d683
      Matthijs Hollemans authored
      * add model files etc for MobileNetV2
      
      * rename files for MobileNetV1
      
      * initial implementation of MobileNetV1
      
      * fix conversion script
      
      * cleanup
      
      * write docs
      
      * tweaks
      
      * fix conversion script
      
      * extract hidden states
      
      * fix test cases
      
      * make fixup
      
      * fixup it all
      
      * rename V1 to V2
      
      * fix checkpoints
      
      * fixup
      
      * implement first block + weight conversion
      
      * add remaining layers
      
      * add output stride and dilation
      
      * fixup
      
      * add tests
      
      * add deeplabv3+ head
      
      * a bit of fixup
      
      * finish deeplab conversion
      
      * add link to doc
      
      * fix issue with JIT trace
      
      in_height and in_width would be Tensor objects during JIT trace, which caused Core ML conversion to fail on the remainder op. By making them ints, the result of the padding calculation becomes a constant value.
      
      * cleanup
      
      * fix order of models
      
      * fix rebase error
      
      * remove main from doc link
      
      * add image processor
      
      * remove old feature extractor
      
      * fix converter + other issues
      
      * fixup
      
      * fix unit test
      
      * add to onnx tests (but these appear broken now)
      
      * add post_process_semantic_segmentation
      
      * use google org
      
      * remove unused imports
      
      * move args
      
      * replace weird assert
      f711d683
  2. 11 Nov, 2022 3 commits
  3. 10 Nov, 2022 9 commits
  4. 09 Nov, 2022 11 commits
  5. 08 Nov, 2022 5 commits
    • amyeroberts's avatar
      AutoImageProcessor (#20111) · 4eb918e6
      amyeroberts authored
      * AutoImageProcessor skeleton
      
      * Update references
      
      * Add mapping in init
      
      * Add model image processors to __init__ for importing
      
      * Add AutoImageProcessor tests
      
      * Fix up
      
      * Image Processor documentation
      
      * Remove pdb
      
      * Update docs/source/en/model_doc/mobilevit.mdx
      
      * Update docs
      
      * Don't add whitespace on json files
      
      * Remove fixtures
      
      * Move checking model config down
      
      * Fix up
      
      * Add check for image processor
      
      * Remove FeatureExtractorMixin in docstrings
      
      * Rename model_tmpfile to config_tmpfile
      
      * Don't make None if not in image processor map
      4eb918e6
    • Sylvain Gugger's avatar
      Adapt has_labels test when no labels were found (#20113) · c08a1e26
      Sylvain Gugger authored
      * Make default labels for non-pretrained models
      
      * Fix the has_labels test instead
      c08a1e26
    • Mishig's avatar
      Update github pr docs actions (#20125) · e2a23b6c
      Mishig authored
      e2a23b6c
    • Sylvain Gugger's avatar
      Fix repo consistency · 2d6a92f2
      Sylvain Gugger authored
      2d6a92f2
    • Weiwe Shi's avatar
      Add RocBert (#20013) · efa889d2
      Weiwe Shi authored
      
      
      * add roc_bert
      
      * update roc_bert readme
      
      * code style
      
      * change name and delete unuse file
      
      * udpate model file
      
      * delete unuse log file
      
      * delete tokenizer fast
      
      * reformat code and change model file path
      
      * add RocBertForPreTraining
      
      * update docs
      
      * delete wrong notes
      
      * fix copies
      
      * fix make repo-consistency error
      
      * fix files are not present in the table of contents error
      
      * change RocBert -> RoCBert
      
      * add doc, add detail test
      Co-authored-by: default avatarweiweishi <weiweishi@tencent.com>
      efa889d2