1. 27 Mar, 2024 1 commit
    • huismiling's avatar
      add Cambricon MLUs support (#29627) · 75769744
      huismiling authored
      * add Cambricon MLUs support
      
      * fix mlu device rng state
      
      * up for quality check
      
      * up mlu to support fp16
      
      * fix mlu device dependency error
      
      * fix mlu device dependency error
      
      * enable mlu device for bf16
      
      * fix mlu device memory tracker
      75769744
  2. 25 Mar, 2024 1 commit
  3. 22 Mar, 2024 1 commit
  4. 19 Mar, 2024 1 commit
  5. 15 Mar, 2024 1 commit
  6. 19 Feb, 2024 1 commit
  7. 07 Feb, 2024 1 commit
  8. 30 Jan, 2024 1 commit
  9. 15 Jan, 2024 1 commit
  10. 31 Oct, 2023 1 commit
  11. 04 Oct, 2023 1 commit
  12. 01 Sep, 2023 1 commit
  13. 31 Aug, 2023 1 commit
  14. 31 Jul, 2023 1 commit
  15. 28 Jul, 2023 1 commit
  16. 21 Jul, 2023 1 commit
  17. 26 Jun, 2023 1 commit
  18. 20 Jun, 2023 1 commit
  19. 09 Jun, 2023 1 commit
  20. 05 Jun, 2023 1 commit
  21. 23 May, 2023 2 commits
  22. 03 May, 2023 1 commit
  23. 20 Apr, 2023 1 commit
  24. 15 Mar, 2023 1 commit
  25. 27 Feb, 2023 2 commits
  26. 22 Feb, 2023 1 commit
  27. 10 Feb, 2023 1 commit
  28. 02 Feb, 2023 1 commit
  29. 25 Jan, 2023 1 commit
  30. 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
  31. 07 Jan, 2023 1 commit
  32. 29 Dec, 2022 1 commit
  33. 17 Oct, 2022 1 commit
    • Sivaudha's avatar
      Fix pipeline predict transform methods (#19657) · 8aad4363
      Sivaudha authored
      * Remove key word argument X from pipeline predict and transform methods
      
      As __call__ of pipeline clasees require one positional argument, passing
      the input as a keyword argument inside predict, transform methods, causing
      __call__ to fail. Hence in this commit the keyword argument is modified
      into positional argument.
      
      * Implement basic tests for scikitcompat pipeline interface
      
      * Seperate tests instead of running with parameterized based on framework as both frameworks will not be active at the same time
      8aad4363
  34. 07 Sep, 2022 1 commit
    • Ankur Goyal's avatar
      Add DocumentQuestionAnswering pipeline (#18414) · 2ef77421
      Ankur Goyal authored
      
      
      * [WIP] Skeleton of VisualQuestionAnweringPipeline extended to support LayoutLM-like models
      
      * Fixup
      
      * Use the full encoding
      
      * Basic refactoring to DocumentQuestionAnsweringPipeline
      
      * Cleanup
      
      * Improve args, docs, and implement preprocessing
      
      * Integrate OCR
      
      * Refactor question_answering pipeline
      
      * Use refactored QA code in the document qa pipeline
      
      * Fix tests
      
      * Some small cleanups
      
      * Use a string type annotation for Image.Image
      
      * Update encoding with image features
      
      * Wire through the basic docs
      
      * Handle invalid response
      
      * Handle empty word_boxes properly
      
      * Docstring fix
      
      * Integrate Donut model
      
      * Fixup
      
      * Incorporate comments
      
      * Address comments
      
      * Initial incorporation of tests
      
      * Address Comments
      
      * Change assert to ValueError
      
      * Comments
      
      * Wrap `score` in float to make it JSON serializable
      
      * Incorporate AutoModeLForDocumentQuestionAnswering changes
      
      * Fixup
      
      * Rename postprocess function
      
      * Fix auto import
      
      * Applying comments
      
      * Improve docs
      
      * Remove extra assets and add copyright
      
      * Address comments
      Co-authored-by: default avatarAnkur Goyal <ankur@impira.com>
      2ef77421
  35. 10 Aug, 2022 2 commits
  36. 05 Aug, 2022 1 commit
    • Nicolas Patry's avatar
      Fixing issue where generic model types wouldn't load properly with the pipeline (#18392) · 586dcf6b
      Nicolas Patry authored
      * Adding a better error message when the model is improperly configured
      
      within transformers.
      
      * Update src/transformers/pipelines/__init__.py
      
      * Black version.
      
      * Overriding task aliases so that tokenizer+feature_extractor
      
      values are correct.
      
      * Fixing task aliases by overriding their names early
      
      * X.
      
      * Fixing feature-extraction.
      
      * black again.
      
      * Normalizing `translation` too.
      
      * Fixing last few corner cases.
      
      translation need to use its non normalized name (translation_XX_to_YY,
      so that the task_specific_params are correctly overloaded).
      This can be removed and cleaned up in a later PR.
      
      `speech-encode-decoder` actually REQUIRES to pass a `tokenizer` manually
      so the error needs to be discarded when the `tokenizer` is already
      there.
      
      * doc-builder fix.
      
      * Fixing the real issue.
      
      * Removing dead code.
      
      * Do not import the actual config classes.
      586dcf6b
  37. 03 Aug, 2022 1 commit
    • LSinev's avatar
      Fix torch version comparisons (#18460) · 02b176c4
      LSinev authored
      Comparisons like
      version.parse(torch.__version__) > version.parse("1.6")
      are True for torch==1.6.0+cu101 or torch==1.6.0+cpu
      
      version.parse(version.parse(torch.__version__).base_version) are preferred (and available in pytorch_utils.py
      02b176c4