1. 07 Jun, 2024 1 commit
  2. 22 May, 2024 1 commit
  3. 13 May, 2024 1 commit
  4. 30 Apr, 2024 1 commit
  5. 16 Apr, 2024 1 commit
  6. 25 Mar, 2024 1 commit
  7. 12 Mar, 2024 1 commit
  8. 07 Mar, 2024 1 commit
  9. 05 Feb, 2024 1 commit
  10. 30 Jan, 2024 1 commit
    • Matt's avatar
      Add tf_keras imports to prepare for Keras 3 (#28588) · 415e9a09
      Matt authored
      * Port core files + ESM (because ESM code is odd)
      
      * Search-replace in modelling code
      
      * Fix up transfo_xl as well
      
      * Fix other core files + tests (still need to add correct import to tests)
      
      * Fix cookiecutter
      
      * make fixup, fix imports in some more core files
      
      * Auto-add imports to tests
      
      * Cleanup, add imports to sagemaker tests
      
      * Use correct exception for importing tf_keras
      
      * Fixes in modeling_tf_utils
      
      * make fixup
      
      * Correct version parsing code
      
      * Ensure the pipeline tests correctly revert to float32 after each test
      
      * Ensure the pipeline tests correctly revert to float32 after each test
      
      * More tf.keras -> keras
      
      * Add dtype cast
      
      * Better imports of tf_keras
      
      * Add a cast for tf.assign, just in case
      
      * Fix callback imports
      415e9a09
  11. 31 Oct, 2023 1 commit
    • Hz, Ji's avatar
      device agnostic models testing (#27146) · 50378cbf
      Hz, Ji authored
      * device agnostic models testing
      
      * add decorator `require_torch_fp16`
      
      * make style
      
      * apply review suggestion
      
      * Oops, the fp16 decorator was misused
      50378cbf
  12. 30 Oct, 2023 1 commit
  13. 16 Aug, 2023 1 commit
    • amyeroberts's avatar
      Input data format (#25464) · 6bca43bb
      amyeroberts authored
      * Add copied from statements for image processors
      
      * Move out rescale and normalize to base image processor
      
      * Remove rescale and normalize from vit (post rebase)
      
      * Update docstrings and tidy up
      
      * PR comments
      
      * Add input_data_format as preprocess argument
      
      * Resolve tests and tidy up
      
      * Remove num_channels argument
      
      * Update doc strings -> default ints not in code formatting
      6bca43bb
  14. 11 Aug, 2023 1 commit
    • amyeroberts's avatar
      Refactor image processor testers (#25450) · 41d56ea6
      amyeroberts authored
      * Refactor image processor test mixin
      
      - Move test_call_numpy, test_call_pytorch, test_call_pil to mixin
      - Rename mixin to reflect handling of logic more than saving
      - Add prepare_image_inputs, expected_image_outputs for tests
      
      * Fix for oneformer
      41d56ea6
  15. 02 Aug, 2023 1 commit
  16. 30 Jun, 2023 1 commit
    • Matt's avatar
      Speed up TF tests by reducing hidden layer counts (#24595) · 134caef3
      Matt authored
      * hidden layers, huh, what are they good for (absolutely nothing)
      
      * Some tests break with 1 hidden layer, use 2
      
      * Use 1 hidden layer in a few slow models
      
      * Use num_hidden_layers=2 everywhere
      
      * Slightly higher tol for groupvit
      
      * Slightly higher tol for groupvit
      134caef3
  17. 29 Jun, 2023 1 commit
  18. 22 Jun, 2023 1 commit
  19. 21 Jun, 2023 1 commit
  20. 20 Jun, 2023 1 commit
    • Matt's avatar
      TensorFlow CI fixes (#24360) · 56efbf43
      Matt authored
      * Fix saved_model_creation_extended
      
      * Skip the BLIP model creation test for now
      
      * Fix TF SAM test
      
      * Fix longformer tests
      
      * Fix Wav2Vec2
      
      * Add a skip for XLNet
      
      * make fixup
      
      * make fix-copies
      
      * Add comments
      56efbf43
  21. 24 May, 2023 1 commit
    • Matt's avatar
      Better TF docstring types (#23477) · f8b25744
      Matt authored
      * Rework TF type hints to use | None instead of Optional[] for tf.Tensor
      
      * Rework TF type hints to use | None instead of Optional[] for tf.Tensor
      
      * Don't forget the imports
      
      * Add the imports to tests too
      
      * make fixup
      
      * Refactor tests that depended on get_type_hints
      
      * Better test refactor
      
      * Fix an old hidden bug in the test_keras_fit input creation code
      
      * Fix for the Deit tests
      f8b25744
  22. 19 May, 2023 1 commit
  23. 12 Apr, 2023 1 commit
    • Matt's avatar
      Fix docstrings for TF BLIP (#22618) · 50f82e12
      Matt authored
      * Fix docstrings for TFBLIP
      
      * Fix missing line in TF port!
      
      * Use values from torch tests now other bugs fixed
      
      * Use values from torch tests now other bugs fixed
      
      * Fix doctest string
      50f82e12
  24. 06 Apr, 2023 1 commit
  25. 05 Apr, 2023 1 commit
  26. 04 Apr, 2023 1 commit
  27. 02 Mar, 2023 1 commit
  28. 28 Feb, 2023 2 commits
    • Yih-Dar's avatar
      馃敟Rework pipeline testing by removing `PipelineTestCaseMeta` 馃殌 (#21516) · 871c31a6
      Yih-Dar authored
      
      
      * Add PipelineTesterMixin
      
      * remove class PipelineTestCaseMeta
      
      * move validate_test_components
      
      * Add for ViT
      
      * Add to SPECIAL_MODULE_TO_TEST_MAP
      
      * style and quality
      
      * Add feature-extraction
      
      * update
      
      * raise instead of skip
      
      * add tiny_model_summary.json
      
      * more explicit
      
      * skip tasks not in mapping
      
      * add availability check
      
      * Add Copyright
      
      * A way to diable irrelevant tests
      
      * update with main
      
      * remove disable_irrelevant_tests
      
      * skip tests
      
      * better skip message
      
      * better skip message
      
      * Add all pipeline task tests
      
      * revert
      
      * Import PipelineTesterMixin
      
      * subclass test classes with PipelineTesterMixin
      
      * Add pipieline_model_mapping
      
      * Fix import after adding pipieline_model_mapping
      
      * Fix style and quality after adding pipieline_model_mapping
      
      * Fix one more import after adding pipieline_model_mapping
      
      * Fix style and quality after adding pipieline_model_mapping
      
      * Fix test issues
      
      * Fix import requirements
      
      * Fix mapping for MobileViTModelTest
      
      * Update
      
      * Better skip message
      
      * pipieline_model_mapping could not be None
      
      * Remove some PipelineTesterMixin
      
      * Fix typo
      
      * revert tests_fetcher.py
      
      * update
      
      * rename
      
      * revert
      
      * Remove PipelineTestCaseMeta from ZeroShotAudioClassificationPipelineTests
      
      * style and quality
      
      * test fetcher for all pipeline/model tests
      
      ---------
      Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
      871c31a6
    • raghavanone's avatar
      Fix the issue of blip model returning loss even when the label is not provided. (#21811) · eec76042
      raghavanone authored
      * Fix the issue of blip model returning loss even when the label is not provoided
      
      * Fix ruff failure
      
      * Incorporate PR feedbacks
      
      * Incorporate PR feedbacks
      
      * Incorporate PR feedbacks
      
      * Incorporate PR feedbacks
      eec76042
  29. 17 Feb, 2023 1 commit
  30. 06 Feb, 2023 1 commit
    • Sylvain Gugger's avatar
      Update quality tooling for formatting (#21480) · 6f79d264
      Sylvain Gugger authored
      * Result of black 23.1
      
      * Update target to Python 3.7
      
      * Switch flake8 to ruff
      
      * Configure isort
      
      * Configure isort
      
      * Apply isort with line limit
      
      * Put the right black version
      
      * adapt black in check copies
      
      * Fix copies
      6f79d264
  31. 23 Jan, 2023 1 commit
    • amyeroberts's avatar
      Update tests: replace feature extractor tests with image processor (#20768) · e2bd7f80
      amyeroberts authored
      
      
      * Update imports and test fetcher
      
      * Revert but keep test fetcher update
      
      * Fix imports
      
      * Fix all imports
      
      * Replace fe with ip names
      
      * Add generate kwargs to `AutomaticSpeechRecognitionPipeline` (#20952)
      
      * Add generate kwargs to AutomaticSpeechRecognitionPipeline
      
      * Add test for generation kwargs
      
      * Update image processor parameters if creating with kwargs (#20866)
      
      * Update parameters if creating with kwargs
      
      * Shallow copy to prevent mutating input
      
      * Pass all args in constructor dict - warnings in init
      
      * Fix typo
      
      * Rename tester class
      
      * Rebase and tidy up
      
      * Fixup
      
      * Use ImageProcessingSavingTestMixin
      
      * Update property ref in tests
      
      * Update property ref in tests
      
      * Update recently merged in models
      
      * Small fix
      Co-authored-by: default avatarbofeng huang <bofenghuang7@gmail.com>
      e2bd7f80
  32. 18 Jan, 2023 1 commit
    • Younes Belkada's avatar
      `blip` support for training (#21021) · 023f51fe
      Younes Belkada authored
      * `blip` support for training
      
      * remove labels creation
      
      * remove unneeded `decoder_input_ids` creation
      
      * final changes
      
      - add colab link to documentation
      - reduction = mean for loss
      
      * fix nits
      
      * update link
      
      * clearer error message
      023f51fe
  33. 05 Jan, 2023 1 commit
  34. 21 Dec, 2022 1 commit