1. 11 Sep, 2023 2 commits
  2. 01 Sep, 2023 1 commit
  3. 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
  4. 08 Aug, 2023 1 commit
  5. 07 Aug, 2023 1 commit
    • Jackmin801's avatar
      Allow `trust_remote_code` in example scripts (#25248) · 14510938
      Jackmin801 authored
      * pytorch examples
      
      * pytorch mim no trainer
      
      * cookiecutter
      
      * flax examples
      
      * missed line in pytorch run_glue
      
      * tensorflow examples
      
      * tensorflow run_clip
      
      * tensorflow run_mlm
      
      * tensorflow run_ner
      
      * tensorflow run_clm
      
      * pytorch example from_configs
      
      * pytorch no trainer examples
      
      * Revert "tensorflow run_clip"
      
      This reverts commit 261f86ac1f1c9e05dd3fd0291e1a1f8e573781d5.
      
      * fix: duplicated argument
      14510938
  6. 02 Aug, 2023 1 commit
  7. 02 Jun, 2023 1 commit
  8. 06 Mar, 2023 1 commit
    • Matt's avatar
      Add TF contrastive image text finetuning example (#21939) · 5d8efc79
      Matt authored
      * Initial commit
      
      * stash commit
      
      * Add model checkpointing and pushing
      
      * Fix model name inference
      
      * Update README
      
      * Update README
      
      * Remove a couple of Torch references
      
      * Update copyright date
      
      * make fixup
      
      * Update PushToHubCallback args!
      
      * Remove the torch summary
      
      * Add strategy.scope
      5d8efc79
  9. 01 Mar, 2023 1 commit
  10. 22 Feb, 2023 1 commit
  11. 24 Jan, 2023 1 commit
  12. 03 Nov, 2022 1 commit
  13. 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
  14. 06 Aug, 2022 1 commit
  15. 07 Jun, 2022 1 commit
    • Sylvain Gugger's avatar
      Add examples telemetry (#17552) · 3cab9027
      Sylvain Gugger authored
      * Add examples telemetry
      
      * Alternative approach
      
      * Add to all other examples
      
      * Add to templates as well
      
      * Put framework separately
      
      * Same for TensorFlow
      3cab9027
  16. 12 May, 2022 1 commit
  17. 04 Apr, 2022 1 commit
  18. 30 Mar, 2022 1 commit
  19. 01 Mar, 2022 1 commit
  20. 06 Dec, 2021 1 commit
  21. 22 Nov, 2021 1 commit
  22. 11 Nov, 2021 1 commit
  23. 28 Jul, 2021 1 commit
  24. 08 Jul, 2021 1 commit
  25. 01 Jul, 2021 1 commit
  26. 28 Jun, 2021 3 commits
    • Matt's avatar
      Tensorflow LM examples (#12358) · 7e22609e
      Matt authored
      * Tensorflow MLM example
      
      * Add CLM example
      
      * Style fixes, adding missing checkpoint code from the CLM example
      
      * Fix TPU training, avoid massive dataset warnings
      
      * Fix incorrect training length calculation for multi-GPU training
      
      * Fix incorrect training length calculation for multi-GPU training
      
      * Refactors and nitpicks from the review
      
      * Style pass
      
      * Adding README
      7e22609e
    • Bhadresh Savani's avatar
      [Examples] Added context manager to datasets map (#12367) · 04dbea31
      Bhadresh Savani authored
      * added cotext manager to datasets map
      
      * fixed style and spaces
      
      * fixed warning of deprecation
      
      * changed desc
      04dbea31
    • Taha ValizadehAslani's avatar
      Update run_mlm.py (#12344) · 9490d668
      Taha ValizadehAslani authored
      Before the code could not be used for validation only because of this line:
      extension = data_args.train_file.split(".")[-1]
      was assuming that extension must be extracted from the training dataset. This line would run regardless of the training or validation options of the user. This would lead to an error if the user only wants to run an evaluation only and does not want to do train (because the training file does not exist). I modified it to extract extension from the training file if the user wants to do train and extract it from the validation file if the user wants to run eval. This way the code can be used for both training and validation separately.
      9490d668
  27. 25 Jun, 2021 2 commits
  28. 23 Jun, 2021 2 commits
  29. 17 Jun, 2021 3 commits
  30. 15 Jun, 2021 1 commit
  31. 14 Jun, 2021 3 commits