1. 30 Jan, 2023 1 commit
  2. 25 Jan, 2023 1 commit
  3. 16 Jan, 2023 1 commit
    • Nicolas Patry's avatar
      Fixing batching pipelines on single items for ChunkPipeline (#21132) · 488a179c
      Nicolas Patry authored
      * Fixing #20783
      
      * Update src/transformers/pipelines/base.py
      
      * Fixing some tests.
      
      * Fixup.
      
      * Remove ffmpeg dep + a bit more relaxed for bigbird QA precision.
      
      * Better dataset.
      
      * Prevent failing on TF.
      
      * Better condition. We can't use `can_use_iterator` since we cannot use it
      directly.
      488a179c
  4. 18 Oct, 2022 1 commit
    • David Yang's avatar
      Clean up deprecation warnings (#19654) · a23819ed
      David Yang authored
      * Clean up deprecation warnings
      
      Notes:
      Changed some strings in tests to raw strings, which will change the literal content of the strings as they are fed into whatever machine handles them.
      Test cases for past in the past/past_key_values switch changed/removed due to warning of impending removal
      
      * Add PILImageResampling abstraction for PIL.Image.Resampling
      a23819ed
  5. 07 Oct, 2022 1 commit
    • Sylvain Gugger's avatar
      Rework pipeline tests (#19366) · 9ac586b3
      Sylvain Gugger authored
      * Rework pipeline tests
      
      * Try to fix Flax tests
      
      * Try to put it before
      
      * Use a new decorator instead
      
      * Remove ignore marker since it doesn't work
      
      * Filter pipeline tests
      
      * Woopsie
      
      * Use the fitlered list
      
      * Clean up and fake modif
      
      * Remove init
      
      * Revert fake modif
      9ac586b3
  6. 09 Aug, 2022 1 commit
  7. 08 Aug, 2022 1 commit
    • Nicolas Patry's avatar
      [DX fix] Fixing QA pipeline streaming a dataset. (#18516) · a4562552
      Nicolas Patry authored
      * [DX fix] Fixing QA pipeline streaming a dataset.
      
      QuestionAnsweringArgumentHandler would iterate over the whole dataset
      effectively killing all properties of the pipeline.
      This restores nice properties when using `Dataset` or `Generator` since
      those are meant to be consumed lazily.
      
      * Handling TF better.
      a4562552
  8. 19 May, 2022 1 commit
  9. 12 May, 2022 1 commit
  10. 10 May, 2022 1 commit
  11. 21 Apr, 2022 1 commit
  12. 23 Feb, 2022 1 commit
  13. 06 Nov, 2021 1 commit
  14. 29 Oct, 2021 1 commit
  15. 05 Oct, 2021 1 commit
  16. 26 Aug, 2021 1 commit
  17. 12 Jul, 2021 1 commit
  18. 18 May, 2021 1 commit
  19. 10 May, 2021 1 commit
  20. 07 Dec, 2020 1 commit
  21. 25 Nov, 2020 1 commit
  22. 15 Nov, 2020 1 commit
    • Thomas Wolf's avatar
      [breaking|pipelines|tokenizers] Adding slow-fast tokenizers equivalence tests... · f4e04cd2
      Thomas Wolf authored
      
      [breaking|pipelines|tokenizers] Adding slow-fast tokenizers equivalence tests pipelines - Removing sentencepiece as a required dependency (#8073)
      
      * Fixing roberta for slow-fast tests
      
      * WIP getting equivalence on pipelines
      
      * slow-to-fast equivalence - working on question-answering pipeline
      
      * optional FAISS tests
      
      * Pipeline Q&A
      
      * Move pipeline tests to their own test job again
      
      * update tokenizer to add sequence id methods
      
      * update to tokenizers 0.9.4
      
      * set sentencepiecce as optional
      
      * clean up squad
      
      * clean up pipelines to use sequence_ids
      
      * style/quality
      
      * wording
      
      * Switch to use_fast = True by default
      
      * update tests for use_fast at True by default
      
      * fix rag tokenizer test
      
      * removing protobuf from required dependencies
      
      * fix NER test for use_fast = True by default
      
      * fixing example tests (Q&A examples use slow tokenizers for now)
      
      * protobuf in main deps extras["sentencepiece"] and example deps
      
      * fix protobug install test
      
      * try to fix seq2seq by switching to slow tokenizers for now
      
      * Update src/transformers/tokenization_utils_base.py
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      
      * Update src/transformers/tokenization_utils_base.py
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      Co-authored-by: default avatarLysandre Debut <lysandre@huggingface.co>
      f4e04cd2
  23. 04 Nov, 2020 1 commit
    • Nicolas Patry's avatar
      Improve QA pipeline error handling (#8286) · 7342d9a5
      Nicolas Patry authored
      - The issue is that with previous code we would have the following:
      
      ```python
      qa_pipeline = (...)
      qa_pipeline(question="Where was he born ?", context="")
      -> IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
      ```
      
      The goal here is to improve this to actually return a ValueError
      wherever possible.
      
      While at it, I tried to simplify QuestionArgumentHandler's code to
      make it smaller and more compat while keeping backward compat.
      7342d9a5
  24. 23 Oct, 2020 1 commit