1. 18 Aug, 2023 2 commits
    • Arthur's avatar
      [`split_special_tokens`] Add support for `split_special_tokens` argument to encode (#25081) · 30b3c46f
      Arthur authored
      * draft changes
      
      * update and add tests
      
      * styling for no
      
      * move test
      
      * path to usable model
      
      * update test
      
      * small update
      
      * update bertbased tokenizers
      
      * don'tuse kwargs for _tokenize
      
      * don'tuse kwargs for _tokenize
      
      * fix copies
      
      * update
      
      * update test for special tokenizers
      
      * fixup
      
      * skip two tests
      
      * remove pdb breakpiont()
      
      * wowo
      
      * rewrite custom tests
      
      * nits
      
      * revert chang in target keys
      
      * fix markup lm
      
      * update documentation of the argument
      30b3c46f
    • Alex McKinney's avatar
      Replaces calls to `.cuda` with `.to(torch_device)` in tests (#25571) · 9d7afd25
      Alex McKinney authored
      
      
      * Replaces calls to `.cuda` with `.to(torch_device)` in tests
      `torch.Tensor.cuda()` is a pre-0.4 solution to changing a tensor's device. It is recommended to prefer `.to(...)` for greater flexibility and error handling. Furthermore, this makes it more consistent with other tests (that tend to use `.to(torch_device)`) and ensures the correct device backend is used (if `torch_device` is neither `cpu` or `cuda`).
      
      * addressing review comments
      
      * more formatting changes in Bloom test
      
      * `make style`
      
      * Update tests/models/bloom/test_modeling_bloom.py
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      
      * fixes style failures
      
      ---------
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      9d7afd25
  2. 17 Aug, 2023 9 commits
  3. 16 Aug, 2023 6 commits
  4. 15 Aug, 2023 1 commit
    • Zach Mueller's avatar
      Make training args fully immutable (#25435) · ca514992
      Zach Mueller authored
      * Make training args fully immutable
      
      * Working tests, PyTorch
      
      * In test_trainer
      
      * during testing
      
      * Use proper dataclass way
      
      * Fix test
      
      * Another one
      
      * Fix tf
      
      * Lingering slow
      
      * Exception
      
      * Clean
      ca514992
  5. 14 Aug, 2023 1 commit
  6. 11 Aug, 2023 4 commits
  7. 10 Aug, 2023 3 commits
  8. 09 Aug, 2023 3 commits
  9. 08 Aug, 2023 4 commits
  10. 07 Aug, 2023 3 commits
    • Pedro Lira's avatar
      Add mask2former fp16 support (#25093) · 080a9711
      Pedro Lira authored
      * Add mask2former fp16 support
      
      * Clear consistency/quality issues
      
      * Fix consistency/quality (2)
      
      * Add integration test for mask2former (fp16 case)
      
      * Fix code quality
      
      * Add integration test for maskformer (fp16 case)
      
      * Add integration test for oneformer (fp16 case)
      
      * Remove slow decorator from fp16 tests
      
      * Fix lint
      
      * Remove usage of full inference and value checks for fp16
      
      * Temporarily comment slow for {mask, mask2, one}former
      
      * Add fp16 support to oneformer
      
      * Revert "Temporarily comment slow for {mask, mask2, one}former"
      
      This reverts commit e5371edabd301cf56079def0421a0a87df307cb0.
      
      * Remove dtype conversion noop
      080a9711
    • Sylvain Gugger's avatar
      Migrate Trainer from `Repository` to `upload_folder` (#25095) · baf1daa5
      Sylvain Gugger authored
      
      
      * First draft
      
      * Deal with progress bars
      
      * Update src/transformers/utils/hub.py
      Co-authored-by: default avatarLucain <lucainp@gmail.com>
      
      * Address review comments
      
      * Forgot one
      
      * Pin hf_hub
      
      * Add argument for push all and fix tests
      
      * Fix tests
      
      * Address review comments
      
      ---------
      Co-authored-by: default avatarLucain <lucainp@gmail.com>
      baf1daa5
    • Yih-Dar's avatar
      Fix more offload edge cases (#25342) · c177606f
      Yih-Dar authored
      
      
      * fix
      
      * fix
      
      * fix
      
      ---------
      Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
      c177606f
  11. 06 Aug, 2023 1 commit
  12. 04 Aug, 2023 3 commits