1. 20 Apr, 2021 1 commit
    • rajvi-k's avatar
      Added translation example script (#11196) · bfd83c17
      rajvi-k authored
      * initial changes
      
      * modified evaluation
      
      * updated evaluation
      
      * updated evaluation on text translation example script
      
      * added translation example script
      
      * Formatted translation example script
      
      * Reformatted translation example
      
      * Fixed evaluation bug and added support for other tokenisers
      
      * Fixed evaluation bug and added support for other tokenisers
      
      * Added translation example script
      
      * Formatted summarization example script
      
      * Removed typos from summarization example script
      bfd83c17
  2. 29 Mar, 2021 3 commits
    • Daniel Stancl's avatar
      Add `examples/multiple-choice/run_swag_no_trainer.py` (#10934) · 5057213b
      Daniel Stancl authored
      * Initial commit
      
      * Another bunch of updates
      
      * make style quliaty + delete debug arg from bash script
      
      * Use compue_metrics func
      
      * Do a few fixes
      
      * Add copyright
      
      * Fix typos
      5057213b
    • Sylvain Gugger's avatar
      Remove duplicate code · 4002f95e
      Sylvain Gugger authored
      4002f95e
    • Daniel Stancl's avatar
      Add `examples/run_ner_no_trainer.py` (#10902) · d7b50ce4
      Daniel Stancl authored
      * Add NER example with accelerate library
      
      * This commit contains the first (yet really unfinished)
      version of a script for showing how to train HuggingFace model
      with their new accelerate library.
      
      * Fix metric calculation
      
      * make style quality
      
      * mv ner_no_trainer to token-classification dir
      
      * Delete --debug flag from running script
      
      * hf_datasets -> raw_datasets
      
      * Make a few slight adjustments
      
      * Add an informative comment + rewrite a help comment
      
      * Change header
      
      * Fix a few things
      
      * Enforce to use fast tokenizers only
      
      * DataCollatorWithPadding -> DataCollatorForTokenClassification
      
      * Change bash script: python3 -> accelerate launch
      
      * make style
      
      * Add a few missing things (see below)
      
      * Add a max-lenghth padding to predictions and labels to
      enable accelerate gather functionality
      
      * Add PyTorch no trainer example to the example README.md
      
      * Remove --do-train from args as being redundant for now
      
      * DataCollatorWithPadding -> DataCollatorForTokenClassification
      
      * Remove some obsolete args.do_train conditions from the script
      
      * Delete --do_train from bash running script
      
      * Delete use_slow_tokenizer from args
      
      * Add unintentionally removed flag --label_all_tokens
      
      * Delete --debug flag from running script
      d7b50ce4
  3. 25 Mar, 2021 1 commit
  4. 10 Mar, 2021 1 commit