1. 20 Jul, 2023 1 commit
    • ranchlai's avatar
      Add multi-label text classification support to pytorch example (#24770) · 8fd8c8e4
      ranchlai authored
      * Add text classification example
      
      * set the problem type and finetuning task
      
      * ruff reformated
      
      * fix bug for unseting label_to_id for regression
      
      * update README.md
      
      * fixed finetuning task
      
      * update comment
      
      * check if label exists in feature before removing
      
      * add useful logging
      8fd8c8e4
  2. 08 Feb, 2023 1 commit
  3. 17 May, 2022 1 commit
  4. 09 May, 2022 1 commit
  5. 23 Mar, 2022 1 commit
  6. 18 Nov, 2021 1 commit
  7. 02 Aug, 2021 1 commit
  8. 25 May, 2021 1 commit
  9. 18 May, 2021 1 commit
  10. 10 May, 2021 1 commit
  11. 23 Apr, 2021 1 commit
  12. 21 Apr, 2021 1 commit
  13. 10 Mar, 2021 1 commit
  14. 11 Feb, 2021 1 commit
    • Qbiwan's avatar
      Update run_xnli.py to use Datasets library (#9829) · 8dcfaea0
      Qbiwan authored
      * remove xnli_compute_metrics, add load_dataset, load_metric, set_seed,metric.compute,load_metric
      
      * fix
      
      * fix
      
      * fix
      
      * push
      
      * fix
      
      * everything works
      
      * fix init
      
      * fix
      
      * special treatment for sepconv1d
      
      * style
      
      * 馃檹馃徑
      
      * add doc and cleanup
      
      
      * fix doc
      
      * fix doc again
      
      * fix doc again
      
      * Apply suggestions from code review
      
      * make style
      
      * Proposal that should work
      
      * Remove needless code
      
      * Fix test
      
      * Apply suggestions from code review
      
      * remove xnli_compute_metrics, add load_dataset, load_metric, set_seed,metric.compute,load_metric
      
      * amend README
      
      * removed data_args.task_name and replaced with task_name = "xnli"; use split function to load train and validation dataset separately; remove __post_init__; remove flag --task_name from README.
      
      * removed dict task_to_keys, use str "xnli" instead of variable task_name, change preprocess_function to use examples["premise"], examples["hypothesis"] directly, remove sentence1_key and sentence2_key, change compute_metrics function to cater only to accuracy metric, add condition for train_langauge is None when using dataset.load_dataset()
      
      * removed `torch.distributed.barrier()` and `import torch` as `from_pretrained` is able to do the work; amend README
      8dcfaea0
  15. 22 Jan, 2021 1 commit
  16. 21 Dec, 2020 1 commit
  17. 11 Dec, 2020 1 commit
  18. 22 Oct, 2020 1 commit
  19. 14 Oct, 2020 1 commit
  20. 22 Sep, 2020 1 commit
  21. 18 Aug, 2020 1 commit
  22. 07 Aug, 2020 1 commit
  23. 24 Jun, 2020 1 commit
  24. 04 Jun, 2020 1 commit
  25. 02 Jun, 2020 1 commit
    • Julien Chaumond's avatar
      Kill model archive maps (#4636) · d4c2cb40
      Julien Chaumond authored
      * Kill model archive maps
      
      * Fixup
      
      * Also kill model_archive_map for MaskedBertPreTrainedModel
      
      * Unhook config_archive_map
      
      * Tokenizers: align with model id changes
      
      * make style && make quality
      
      * Fix CI
      d4c2cb40
  26. 27 May, 2020 1 commit
  27. 08 May, 2020 1 commit
  28. 07 May, 2020 2 commits