1. 12 Jan, 2024 1 commit
  2. 11 Jan, 2024 1 commit
    • Alex Hedges's avatar
      Set `cache_dir` for `evaluate.load()` in example scripts (#28422) · 95091e15
      Alex Hedges authored
      While using `run_clm.py`,[^1] I noticed that some files were being added
      to my global cache, not the local cache. I set the `cache_dir` parameter
      for the one call to `evaluate.load()`, which partially solved the
      problem. I figured that while I was fixing the one script upstream, I
      might as well fix the problem in all other example scripts that I could.
      
      There are still some files being added to my global cache, but this
      appears to be a bug in `evaluate` itself. This commit at least moves
      some of the files into the local cache, which is better than before.
      
      To create this PR, I made the following regex-based transformation:
      `evaluate\.load\((.*?)\)` -> `evaluate\.load\($1,
      cache_dir=model_args.cache_dir\)`. After using that, I manually fixed
      all modified files with `ruff` serving as useful guidance. During the
      process, I removed one existing usage of the `cache_dir` parameter in a
      script that did not have a corresponding `--cache-dir` argument
      declared.
      
      [^1]: I specifically used `pytorch/language-modeling/run_clm.py` from
      v4.34.1 of the library. For the original code, see the following URL:
      https://github.com/huggingface/transformers/tree/acc394c4f5e1283c19783581790b3dc3105a3697/examples/pytorch/language-modeling/run_clm.py.
      95091e15
  3. 10 Jan, 2024 1 commit
  4. 13 Dec, 2023 1 commit
  5. 12 Dec, 2023 1 commit
  6. 11 Dec, 2023 1 commit
    • Adam Louly's avatar
      fix no sequence length models error (#27522) · 4850aaba
      Adam Louly authored
      * fix no sequence length models error
      
      * block size check
      
      ---------
      
      Co-authored-by: Adam Louly <adamlouly@microsoft.com@orttrainingdev9.d32nl1ml4oruzj4qz3bqlggovf.px.internal.cloudapp.net>
      4850aaba
  7. 07 Dec, 2023 1 commit
  8. 30 Nov, 2023 1 commit
  9. 27 Nov, 2023 1 commit
  10. 20 Nov, 2023 1 commit
  11. 17 Nov, 2023 1 commit
  12. 16 Nov, 2023 4 commits
    • Arthur's avatar
      [`Styling`] stylify using ruff (#27144) · 651408a0
      Arthur authored
      
      
      * try to stylify using ruff
      
      * might need to remove these changes?
      
      * use ruf format andruff check
      
      * use isinstance instead of type comparision
      
      * use # fmt: skip
      
      * use # fmt: skip
      
      * nits
      
      * soem styling changes
      
      * update ci job
      
      * nits isinstance
      
      * more files update
      
      * nits
      
      * more nits
      
      * small nits
      
      * check and format
      
      * revert wrong changes
      
      * actually use formatter instead of checker
      
      * nits
      
      * well docbuilder is overwriting this commit
      
      * revert notebook changes
      
      * try to nuke docbuilder
      
      * style
      
      * fix feature exrtaction test
      
      * remve `indent-width = 4`
      
      * fixup
      
      * more nits
      
      * update the ruff version that we use
      
      * style
      
      * nuke docbuilder styling
      
      * leve the print for detected changes
      
      * nits
      
      * Remove file I/O
      Co-authored-by: default avatarcharliermarsh <charlie.r.marsh@gmail.com>
      
      * style
      
      * nits
      
      * revert notebook changes
      
      * Add # fmt skip when possible
      
      * Add # fmt skip when possible
      
      * Fix
      
      * More `  # fmt: skip` usage
      
      * More `  # fmt: skip` usage
      
      * More `  # fmt: skip` usage
      
      * NIts
      
      * more fixes
      
      * fix tapas
      
      * Another way to skip
      
      * Recommended way
      
      * Fix two more fiels
      
      * Remove asynch
      Remove asynch
      
      ---------
      Co-authored-by: default avatarcharliermarsh <charlie.r.marsh@gmail.com>
      651408a0
    • Lucain's avatar
      Set `usedforsecurity=False` in hashlib methods (FIPS compliance) (#27483) · fd65aa98
      Lucain authored
      * Set usedforsecurity=False in hashlib methods (FIPS compliance)
      
      * trigger ci
      
      * tokenizers version
      
      * deps
      
      * bump hfh version
      
      * let's try this
      fd65aa98
    • Matt's avatar
      Update the TF pin for 2.15 (#27375) · 4989e73e
      Matt authored
      * Move the TF pin for 2.15
      
      * make fixup
      4989e73e
    • Phuc Van Phan's avatar
  13. 15 Nov, 2023 3 commits
  14. 13 Nov, 2023 1 commit
  15. 09 Nov, 2023 3 commits
  16. 08 Nov, 2023 3 commits
  17. 02 Nov, 2023 1 commit
  18. 31 Oct, 2023 1 commit
  19. 30 Oct, 2023 1 commit
  20. 29 Oct, 2023 1 commit
  21. 27 Oct, 2023 1 commit
  22. 26 Oct, 2023 2 commits
  23. 24 Oct, 2023 1 commit
  24. 23 Oct, 2023 1 commit
  25. 19 Oct, 2023 1 commit
    • Matt's avatar
      Pin Keras for now (#26904) · cbd278f0
      Matt authored
      * Pin Keras for now out of paranoia
      
      * Add the keras pin to _tests_requirements.txt too
      
      * Make sure the Keras version matches the TF one
      
      * make fixup
      cbd278f0
  26. 18 Oct, 2023 2 commits
  27. 12 Oct, 2023 1 commit
  28. 11 Oct, 2023 1 commit
  29. 10 Oct, 2023 1 commit