"examples/vscode:/vscode.git/clone" did not exist on "a4f97e6ce0137b1474e101508dc5aaa5bcf812a7"
  1. 08 May, 2023 1 commit
  2. 20 Apr, 2023 1 commit
  3. 17 Apr, 2023 2 commits
  4. 14 Apr, 2023 1 commit
    • Sayak Paul's avatar
      [Examples] TPU-based training of a language model using TensorFlow (#21657) · 390e121f
      Sayak Paul authored
      
      
      * add: tokenizer training script for TF TPU LM training.
      
      * add: script for preparing the TFRecord shards.
      
      * add: sequence of execution to readme.
      
      * remove limit from the tfrecord shard name.
      
      * Add initial train_model.py
      
      * Add basic training arguments and model init
      
      * Get up to the point of writing the data collator
      
      * Pushing progress so far!
      
      * Complete first draft of model training code
      
      * feat: grouping of texts efficiently.
      Co-authored-by: default avatarMatt <rocketknight1@gmail.com>
      
      * Add proper masking collator and get training loop working
      
      * fix: things.
      
      * Read sample counts from filenames
      
      * Read sample counts from filenames
      
      * Draft README
      
      * Improve TPU warning
      
      * Use distribute instead of distribute.experimental
      
      * Apply suggestions from code review
      Co-authored-by: default avatarMatt <Rocketknight1@users.noreply.github.com>
      
      * Modularize loading and add MLM probability as arg
      
      * minor refactoring to better use the cli args.
      
      * readme fillup.
      
      * include tpu and inference sections in the readme.
      
      * table of contents.
      
      * parallelize maps.
      
      * polish readme.
      
      * change script name to run_mlm.py
      
      * address PR feedback (round I).
      
      ---------
      Co-authored-by: default avatarMatt <rocketknight1@gmail.com>
      Co-authored-by: default avatarMatt <Rocketknight1@users.noreply.github.com>
      390e121f
  5. 13 Apr, 2023 1 commit
  6. 24 Mar, 2023 2 commits
  7. 14 Mar, 2023 1 commit
  8. 07 Mar, 2023 1 commit
  9. 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
  10. 01 Mar, 2023 1 commit
  11. 22 Feb, 2023 1 commit
  12. 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
  13. 01 Feb, 2023 1 commit
  14. 24 Jan, 2023 1 commit
  15. 23 Jan, 2023 1 commit
  16. 05 Jan, 2023 1 commit
  17. 01 Dec, 2022 1 commit
  18. 18 Nov, 2022 1 commit
  19. 03 Nov, 2022 1 commit
  20. 01 Nov, 2022 1 commit
  21. 10 Oct, 2022 1 commit
  22. 22 Sep, 2022 1 commit
  23. 14 Sep, 2022 1 commit
  24. 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
  25. 06 Aug, 2022 2 commits
  26. 01 Aug, 2022 1 commit
  27. 29 Jul, 2022 1 commit
  28. 28 Jul, 2022 1 commit
    • Vijay S Kalmath's avatar
      Migrate metric to Evaluate library for tensorflow examples (#18327) · a2586795
      Vijay S Kalmath authored
      * Migrate metric to Evaluate library in tf examples
      
      Currently tensorflow examples use `load_metric` function from Datasets
      library , commit migrates function call to `load` function to
      Evaluate library.
      
      Fix for #18306
      
      * Migrate metric to Evaluate library in tf examples
      
      Currently tensorflow examples use `load_metric` function from Datasets
      library , commit migrates function call to `load` function to
      Evaluate library.
      
      Fix for #18306
      
      * Migrate `metric` to Evaluate for all tf examples
      
      Currently tensorflow examples use `load_metric` function from Datasets
      library , commit migrates function call to `load` function to
      Evaluate library.
      a2586795
  29. 27 Jul, 2022 1 commit
  30. 13 Jul, 2022 1 commit
  31. 16 Jun, 2022 1 commit
  32. 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
  33. 12 May, 2022 2 commits
  34. 27 Apr, 2022 1 commit
    • Leonid Boytsov's avatar
      Misc. fixes for Pytorch QA examples: (#16958) · c82e017a
      Leonid Boytsov authored
      1. Fixes evaluation errors popping up when you train/eval on squad v2 (one was newly encountered and one that was previously reported Running SQuAD 1.0 sample command raises IndexError #15401 but not completely fixed).
      2. Removes boolean arguments that don't use store_true. Please, don't use these: *ANY non-empty string is being converted to True in this case and this clearly is not the desired behavior (and it creates a LOT of confusion).
      3. All no-trainer test scripts are now saving metric values in the same way (with the right prefix eval_), which is consistent with the trainer-based versions.
      4. Adds forgotten model.eval() in the no-trainer versions. This improved some results, but not everything (see the discussion in the end). Please, see the F1 scores and the discussion below.
      c82e017a
  35. 19 Apr, 2022 1 commit
  36. 06 Apr, 2022 1 commit