1. 17 Mar, 2023 1 commit
    • Ali Hassani's avatar
      Fix natten (#22229) · 3028b20a
      Ali Hassani authored
      * Add kernel size to NATTEN's QK arguments.
      
      The new NATTEN 0.14.5 supports PyTorch 2.0, but also adds an additional
      argument to the QK operation to allow optional RPBs.
      
      This ends up failing NATTEN tests.
      
      This commit adds NATTEN back to circleci and adds the arguments to get
      it working again.
      
      * Force NATTEN >= 0.14.5
      3028b20a
  2. 16 Mar, 2023 2 commits
  3. 14 Mar, 2023 1 commit
  4. 03 Mar, 2023 1 commit
  5. 02 Mar, 2023 1 commit
  6. 01 Mar, 2023 1 commit
  7. 07 Feb, 2023 1 commit
  8. 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
  9. 31 Jan, 2023 1 commit
    • NielsRogge's avatar
      Add DETA (#20983) · 5451f889
      NielsRogge authored
      * First draft
      
      * Add initial draft of conversion script
      
      * Convert all weights
      
      * Fix config
      
      * Add image processor
      
      * Fix DetaImageProcessor
      
      * Run make fix copies
      
      * Remove timm dependency
      
      * Fix dummy objects
      
      * Improve loss function
      
      * Remove conv_encoder attribute
      
      * Update conversion scripts
      
      * Improve postprocessing + docs
      
      * Fix copied from statements
      
      * Add tests
      
      * Improve postprocessing
      
      * Improve postprocessing
      
      * Update READMEs
      
      * More improvements
      
      * Fix rebase
      
      * Add is_torchvision_available
      
      * Add torchvision dependency
      
      * Fix typo and README
      
      * Fix bug
      
      * Add copied from
      
      * Fix style
      
      * Apply suggestions
      
      * Fix thanks to @ydshieh
      
      * Fix another dependency check
      
      * Simplify image processor
      
      * Add scipy
      
      * Improve code
      
      * Add threshold argument
      
      * Fix bug
      
      * Set default threshold
      
      * Improve integration test
      
      * Add another integration test
      
      * Update setup.py
      
      * Address review
      
      * Improve deformable attention function
      
      * Improve copied from
      
      * Use relative imports
      
      * Address review
      
      * Replace assertions
      
      * Address review
      
      * Update dummies
      
      * Remove dummies
      
      * Address comments, update READMEs
      
      * Remove custom kernel code
      
      * Add image processor tests
      
      * Add requires_backends
      
      * Add minor comment
      
      * Update scripts
      
      * Update organization name
      
      * Fix defaults, add doc tests
      
      * Add id2label for object 365
      
      * Fix tests
      
      * Update task guide
      5451f889
  10. 30 Jan, 2023 1 commit
  11. 27 Jan, 2023 1 commit
    • Maria Khalusova's avatar
      Automated compatible models list for task guides (#21338) · 73a2ff69
      Maria Khalusova authored
      * initial commit. added tip placeholders and a script
      
      * removed unused imports, fixed paths
      
      * fixed generated links
      
      * make style
      
      * split language modeling doc into two: causal language modeling and masked language modeling
      
      * added check_task_guides.py to make fix-copies
      
      * review feedback addressed
      73a2ff69
  12. 26 Jan, 2023 1 commit
  13. 20 Jan, 2023 1 commit
  14. 03 Jan, 2023 1 commit
  15. 15 Dec, 2022 1 commit
  16. 12 Dec, 2022 1 commit
  17. 08 Dec, 2022 1 commit
    • Nathan Raw's avatar
      Add video classification pipeline (#20151) · 9e56aff5
      Nathan Raw authored
      * 🚧 wip video classification pipeline
      
      * 🚧 wip - add is_decord_available check
      
      * 🐛 add missing import
      
      *  add tests
      
      * 🔧 add decord to setup extras
      
      * 🚧 add is_decord_available
      
      *  add video-classification pipeline
      
      * 📝 add video classification pipe to docs
      
      * 🐛 add missing VideoClassificationPipeline import
      
      * 📌 add decord install in test runner
      
      *  fix url inputs to video-classification pipeline
      
      *  updates from review
      
      * 📝 add video cls pipeline to docs
      
      * 📝 add docstring
      
      * 🔥 remove unused import
      
      * 🔥 remove some code
      
      * 📝 docfix
      9e56aff5
  18. 22 Nov, 2022 1 commit
  19. 18 Nov, 2022 1 commit
    • Ali Hassani's avatar
      Add Neighborhood Attention Transformer (NAT) and Dilated NAT (DiNAT) models (#20219) · fc4a993e
      Ali Hassani authored
      * Add DiNAT
      
      * Adds DiNAT + tests
      
      * Minor fixes
      
      * Added HF model
      
      * Add natten to dependencies.
      
      * Cleanup
      
      * Minor fixup
      
      * Reformat
      
      * Optional NATTEN import.
      
      * Reformat & add doc to _toctree
      
      * Reformat (finally)
      
      * Dummy objects for DiNAT
      
      * Add NAT + minor changes
      
      Adds NAT as its own independent model + docs, tests
      Adds NATTEN to ext deps to ensure ci picks it up.
      
      * Remove natten from `all` and `dev-torch` deps, add manual pip install to ci tests
      
      * Minor fixes.
      
      * Fix READMEs.
      
      * Requested changes to docs + minor fixes.
      
      * Requested changes.
      
      * Add NAT/DiNAT tests to layoutlm_job
      
      * Correction to Dinat doc.
      
      * Requested changes.
      fc4a993e
  20. 15 Nov, 2022 1 commit
    • Sylvain Gugger's avatar
      Enable PyTorch 1.13 (#20168) · 9643ecf8
      Sylvain Gugger authored
      * Try PT1.13 by removing torch scatter
      
      * Skip failing tests
      
      * Style
      
      * Remvoe testing extras for repo utils
      
      * Try with all decorators
      
      * Try to wipe the cache
      
      * Fix all tests?
      
      * Try this way
      
      * Fix comma
      
      * Update to main
      
      * Try with less deps
      
      * Quality
      9643ecf8
  21. 02 Nov, 2022 1 commit
  22. 26 Oct, 2022 1 commit
    • raghavanone's avatar
      Change the import of kenlm from github to pypi (#19770) · 7829c890
      raghavanone authored
      * Change the import of kenlm from github to pypi
      
      * Change the import of kenlm from github to pypi in circleci config
      
      * Fix code quality issues
      
      * Fix isort issue, add kenlm in extras for audio
      
      * Add kenlm to deps
      
      * Add kenlm to deps
      
      * Commit 'make fixup' changes
      
      * Remove version from kenlm deps
      
      * commit make fixup changes
      
      * Remove manual installation of kenlm
      
      * Remove manual installation of kenlm
      
      * Remove manual installation of kenlm
      7829c890
  23. 24 Oct, 2022 2 commits
  24. 21 Oct, 2022 1 commit
  25. 18 Oct, 2022 1 commit
    • Sylvain Gugger's avatar
      Repo utils test (#19696) · a929f81e
      Sylvain Gugger authored
      * Create repo utils test job
      
      * Last occurence
      
      * Add tests for tests_fetcher
      
      * Better filtering
      
      * Let's learn more
      
      * Should fix
      
      * Should fix
      
      * Remove debug
      
      * Style
      
      * WiP
      
      WiP
      
      WiP
      
      WiP
      
      WiP
      
      WiP
      
      WiP
      
      WiP
      
      WiP
      
      * Quality
      
      * address review comments
      
      * Fix link
      a929f81e
  26. 11 Oct, 2022 1 commit
    • Sylvain Gugger's avatar
      Use a dynamic configuration for circleCI tests (#19325) · 69b81c0a
      Sylvain Gugger authored
      * Generate config on the file
      
      * Fake modif for all test launch
      
      * Upload more artifacts
      
      * Typo and quality
      
      * Try converting th yml to txt
      
      * Leave my long lines alone yaml
      
      * Debug prints
      
      * Debug prints v2
      
      * Try without sorting
      
      * Was it really working before?
      
      * Typo
      
      * Use a parameter
      
      * Use a parameter?
      
      * Typo
      
      * Here is some JSON
      
      * Another try
      
      * Learning to read...
      
      * Check default is used
      
      * Does this work?
      
      * With continuation
      
      * WiP
      
      * Use a parameter for test list
      
      * Other fake modif
      
      * With the comma
      
      * Name the test step so it doesn't blow up
      
      * Just one example modification
      
      * Final steps
      
      * Add nightlies
      
      * Move config generator
      
      * Add trigger for nightlies
      
      * Better workflow
      
      * Rebase on recent changes
      
      * Fix config creation
      
      * Fake modif in an example
      
      * Now fake modif in one config file
      
      * Fix install step in custom tokenizers test
      
      * Fix generated config
      
      * Better fix hopefully
      
      * Finally test modif in setup
      
      * final cleanup
      69b81c0a
  27. 07 Oct, 2022 1 commit
    • Sylvain Gugger's avatar
      Rework pipeline tests (#19366) · 9ac586b3
      Sylvain Gugger authored
      * Rework pipeline tests
      
      * Try to fix Flax tests
      
      * Try to put it before
      
      * Use a new decorator instead
      
      * Remove ignore marker since it doesn't work
      
      * Filter pipeline tests
      
      * Woopsie
      
      * Use the fitlered list
      
      * Clean up and fake modif
      
      * Remove init
      
      * Revert fake modif
      9ac586b3
  28. 05 Oct, 2022 1 commit
    • r-terada's avatar
      Add sudachi and jumanpp tokenizers for bert_japanese (#19043) · 2f53ab57
      r-terada authored
      * add sudachipy and jumanpp tokenizers for bert_japanese
      
      * use ImportError instead of ModuleNotFoundError in SudachiTokenizer and JumanppTokenizer
      
      * put test cases of test_tokenization_bert_japanese in one line
      
      * add require_sudachi and require_jumanpp decorator for testing
      
      * add sudachi and pyknp(jumanpp) to dependencies
      
      * remove sudachi_dict_small and sudachi_dict_full from dependencies
      
      * empty commit for ci
      2f53ab57
  29. 29 Sep, 2022 1 commit
    • Sylvain Gugger's avatar
      Fix test fetching for examples (#19237) · 655f72a6
      Sylvain Gugger authored
      * Fix test fetching for examples
      
      * Fake example modif
      
      * Debug statements
      
      * Typo
      
      * You need to persist the file...
      
      * Revert change in example
      
      * Remove debug statements
      655f72a6
  30. 28 Sep, 2022 1 commit
  31. 16 Sep, 2022 1 commit
    • Sylvain Gugger's avatar
      Organize test jobs (#19058) · 820cb97a
      Sylvain Gugger authored
      * Tests conditional run
      
      * Syntax
      
      * Deps
      
      * Try early exit
      
      * Another way
      
      * Test with no tests to run
      
      * Test all
      
      * Typo
      
      * Try this way
      
      * With tests to run
      
      * Mostly finished
      
      * Typo
      
      * With a modification in one file only
      
      * No change, no tests
      
      * Final cleanup
      
      * Address review comments
      820cb97a
  32. 15 Sep, 2022 1 commit
  33. 14 Sep, 2022 1 commit
  34. 25 Aug, 2022 1 commit
    • 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
  35. 23 Aug, 2022 1 commit
  36. 18 Aug, 2022 1 commit
  37. 10 Aug, 2022 1 commit
    • Matt's avatar
      TF Examples Rewrite (#18451) · 6eb51450
      Matt authored
      
      
      * Finished QA example
      
      * Dodge a merge conflict
      
      * Update text classification and LM examples
      
      * Update NER example
      
      * New Keras metrics WIP, fix NER example
      
      * Update NER example
      
      * Update MC, summarization and translation examples
      
      * Add XLA warnings when shapes are variable
      
      * Make sure batch_size is consistently scaled by num_replicas
      
      * Add PushToHubCallback to all models
      
      * Add docs links for KerasMetricCallback
      
      * Add docs links for prepare_tf_dataset and jit_compile
      
      * Correct inferred model names
      
      * Don't assume the dataset has 'lang'
      
      * Don't assume the dataset has 'lang'
      
      * Write metrics in text classification
      
      * Add 'framework' to TrainingArguments and TFTrainingArguments
      
      * Export metrics in all examples and add tests
      
      * Fix training args for Flax
      
      * Update command line args for translation test
      
      * make fixup
      
      * Fix accidentally running other tests in fp16
      
      * Remove do_train/do_eval from run_clm.py
      
      * Remove do_train/do_eval from run_mlm.py
      
      * Add tensorflow tests to circleci
      
      * Fix circleci
      
      * Update examples/tensorflow/language-modeling/run_mlm.py
      Co-authored-by: default avatarJoao Gante <joaofranciscocardosogante@gmail.com>
      
      * Update examples/tensorflow/test_tensorflow_examples.py
      Co-authored-by: default avatarJoao Gante <joaofranciscocardosogante@gmail.com>
      
      * Update examples/tensorflow/translation/run_translation.py
      Co-authored-by: default avatarJoao Gante <joaofranciscocardosogante@gmail.com>
      
      * Update examples/tensorflow/token-classification/run_ner.py
      Co-authored-by: default avatarJoao Gante <joaofranciscocardosogante@gmail.com>
      
      * Fix save path for tests
      
      * Fix some model card kwargs
      
      * Explain the magical -1000
      
      * Actually enable tests this time
      
      * Skip text classification PR until we fix shape inference
      
      * make fixup
      Co-authored-by: default avatarJoao Gante <joaofranciscocardosogante@gmail.com>
      6eb51450
  38. 08 Aug, 2022 1 commit