1. 25 Aug, 2022 2 commits
    • Craig Chan's avatar
      Determine framework automatically before ONNX export (#18615) · fbf382c8
      Craig Chan authored
      
      
      * Automatic detection for framework to use when exporting to ONNX
      
      * Log message change
      
      * Incorporating PR comments, adding unit test
      
      * Adding tf for pip install for run_tests_onnxruntime CI
      
      * Restoring past changes to circleci yaml and test_onnx_v2.py, tests moved to tests/onnx/test_features.py
      
      * Fixup
      
      * Adding test to fetcher
      
      * Updating circleci config to log more
      
      * Changing test class name
      
      * Comment typo fix in tests/onnx/test_features.py
      Co-authored-by: default avatarlewtun <lewis.c.tunstall@gmail.com>
      
      * Moving torch_str/tf_str to self.framework_pt/tf
      
      * Remove -rA flag in circleci config
      Co-authored-by: default avatarlewtun <lewis.c.tunstall@gmail.com>
      fbf382c8
    • Patrick Deutschmann's avatar
      Add ONNX support for Longformer (#17176) · 3223d493
      Patrick Deutschmann authored
      * Implement ONNX support for Longformer
      
      Fix repo consistency check complaints
      
      Fix value mismatches
      
      Add pooler output for default model
      
      Increase validation atol to accommodate multiple-choice error
      
      Fix copies
      
      Fix chunking for longer sequence lengths
      
      Add future comment
      
      * Fix issue in mask_invalid_locations
      
      * Remove torch imports in configuration_longformer
      
      * Change config access to fix LED
      
      * Push opset version to support tril
      
      * Work in review comments (mostly style)
      
      * Add Longformer to ONNX tests
      3223d493
  2. 24 Aug, 2022 9 commits
  3. 23 Aug, 2022 4 commits
  4. 22 Aug, 2022 3 commits
  5. 19 Aug, 2022 3 commits
  6. 18 Aug, 2022 12 commits
  7. 17 Aug, 2022 4 commits
    • amyeroberts's avatar
      Update feature extractor methods to enable type cast before normalize (#18499) · 49e44b21
      amyeroberts authored
      * Update methods to optionally rescale
      This is necessary to allow for casting our images / videos to numpy arrays within the feature extractors' call. We want to do this to make sure the behaviour is as expected when flags like  are False. If some transformations aren't applied, then the output type can't be unexpected e.g. a list of PIL images instead of numpy arrays.
      
      * Cast images to numpy arrays in call to enable consistent behaviour with different configs
      
      * Remove accidental clip changes
      
      * Update tests to reflect the scaling logic
      We write a generic  function to handle rescaling of our arrays. In order for the API to be intuitive, we take some factor c and rescale the image values by that. This means, the rescaling done in normalize and to_numpy_array are now done with array * (1/255) instead of array / 255. This leads to small differences in the resulting image. When testing, this was in the order of 1e-8, and ...
      49e44b21
    • Jingya HUANG's avatar
      Fix matmul inputs dtype (#18585) · 86d0b26d
      Jingya HUANG authored
      86d0b26d
    • Yih-Dar's avatar
      Fix Yolos ONNX export test (#18606) · c99e9846
      Yih-Dar authored
      
      Co-authored-by: default avatarlewtun <lewis.c.tunstall@gmail.com>
      Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
      c99e9846
    • Stefan Schweter's avatar
      Examples: add Bloom support for token classification (#18632) · 358478e7
      Stefan Schweter authored
      * examples: add Bloom support for token classification (FLAX, PyTorch and TensorFlow)
      
      * examples: remove support for Bloom in token classication (FLAX and TensorFlow currently have no support for it)
      358478e7
  8. 16 Aug, 2022 3 commits
    • Younes Belkada's avatar
      [bnb] Minor modifications (#18631) · 6d175c11
      Younes Belkada authored
      
      
      * bnb minor modifications
      
      - refactor documentation
      - add troubleshooting README
      - add PyPi library on DockerFile
      
      * Apply suggestions from code review
      Co-authored-by: default avatarStas Bekman <stas00@users.noreply.github.com>
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      * put in one block
      
      - put bash instructions in one block
      
      * update readme
      
      - refactor a bit hardware requirements
      
      * change text a bit
      
      * Apply suggestions from code review
      Co-authored-by: default avatarYih-Dar <2521628+ydshieh@users.noreply.github.com>
      
      * apply suggestions
      Co-authored-by: default avatarYih-Dar <2521628+ydshieh@users.noreply.github.com>
      
      * add link to paper
      
      * Apply suggestions from code review
      Co-authored-by: default avatarStas Bekman <stas00@users.noreply.github.com>
      
      * Update tests/mixed_int8/README.md
      
      * Apply suggestions from code review
      
      * refactor a bit
      
      * add instructions Turing & Amperer
      
      Co-authored-by: Stas Bek...
      6d175c11
    • zhoutang776's avatar
      Update run_translation_no_trainer.py (#18637) · 25e651a2
      zhoutang776 authored
      * Update run_translation_no_trainer.py
      
      found an error in selecting `no_decay` parameters and some small modifications when the user continues to train from a checkpoint
      
      * fixs `no_decay` and `resume_step` issue
      
      1. change `no_decay` list
      2. if use continue to train their model from provided checkpoint, the `resume_step` will not be initialized properly if `args.gradient_accumulation_steps != 1`
      25e651a2
    • flozi00's avatar
      Update longt5.mdx (#18634) · a27195b1
      flozi00 authored
      a27195b1