optimum
71ed6465 - `vit` + `wav2vec2` support (#470)

Commit
2 years ago
`vit` + `wav2vec2` support (#470) * `vit` support - refactor tests * add `wav2vec2` * add `hubert` * fix tests - fix docstring + refactor tests * Update optimum/bettertransformer/transformation.py Co-authored-by: fxmarty <9808326+fxmarty@users.noreply.github.com> * remove duplicate tests * add `hubert` on doc * add all supported models * add last model * fix `hubert` test * Update tests/bettertransformer/test_bettertransformer_vision.py Co-authored-by: fxmarty <9808326+fxmarty@users.noreply.github.com> * fix tests add docstring Co-authored-by: fxmarty <9808326+fxmarty@users.noreply.github.com>
Author
Parents
  • docs/source/bettertransformer
    • File
      overview.mdx
  • optimum/bettertransformer
    • models
      • File
        __init__.py
      • File
        encoder_models.py
    • File
      transformation.py
  • tests
    • benchmark
      • File
        benchmark_bettertransformer_vit.py
    • bettertransformer
      • File
        test_bettertransformer_audio.py
      • File
        test_bettertransformer_encoder.py
      • File
        test_bettertransformer_vision.py
      • File
        testing_bettertransformer_utils.py