1. 28 Feb, 2019 4 commits
  2. 26 Feb, 2019 4 commits
  3. 24 Feb, 2019 1 commit
  4. 23 Feb, 2019 1 commit
  5. 22 Feb, 2019 2 commits
  6. 19 Feb, 2019 1 commit
    • Ruty Rinott's avatar
      moving masking logic to collate · 08e866f9
      Ruty Rinott authored
      Summary: Move masking logic to data_utils
      
      Reviewed By: kartikayk, jingfeidu
      
      Differential Revision: D14098403
      
      fbshipit-source-id: c7b7e811ab48b9c5a12662dc1e2f2ed694724176
      08e866f9
  7. 16 Feb, 2019 1 commit
  8. 12 Feb, 2019 1 commit
  9. 09 Feb, 2019 1 commit
    • Myle Ott's avatar
      Add fairseq to PyPI (#495) · fbd4cef9
      Myle Ott authored
      Summary:
      - fairseq can now be installed via pip: `pip install fairseq`
      - command-line tools are globally accessible: `fairseq-preprocess`, `fairseq-train`, `fairseq-generate`, etc.
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/495
      
      Differential Revision: D14017761
      
      Pulled By: myleott
      
      fbshipit-source-id: 10c9f6634a3056074eac2f33324b4f1f404d4235
      fbd4cef9
  10. 07 Feb, 2019 1 commit
    • Ruty Rinott's avatar
      stitch preprocessing pipeline · cea0e4b9
      Ruty Rinott authored
      Summary:
      1. add call to binarization to complete preprocessing pipeline
      2. add ability to specify task to select the dictionary, and add a bert task
      3. Get rid of function calls that are no longer needed after moving functions from fairseq here
      
      Reviewed By: jingfeidu
      
      Differential Revision: D13977842
      
      fbshipit-source-id: ec9bbb4e98e62e12c20ba68bb52b8bcc94aee91d
      cea0e4b9
  11. 06 Feb, 2019 1 commit
  12. 05 Feb, 2019 1 commit
  13. 01 Feb, 2019 1 commit
    • Davide Caroselli's avatar
      Support custom Dictionary implementations in 'preprocess.py' (#448) · bbb4120b
      Davide Caroselli authored
      Summary:
      The `preprocess.py` script has been refactored in order to:
      
      1. Use the `options` module for command line arguments  parsing. This will give to `preprocess.py` the ability to load custom modules with `--user-dir` flag (already implemented to all other binaries)
      2. Dictionary loading and building code has moved to Task implementation. This allows custom Dictionary classes to be used during the data generation step.
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/448
      
      Differential Revision: D13674819
      
      Pulled By: myleott
      
      fbshipit-source-id: b40648a98ed6c08284577e5ec25876e018d8c822
      bbb4120b
  14. 30 Jan, 2019 3 commits
    • Myle Ott's avatar
      Do distributed init after data loading · ec6f8ef9
      Myle Ott authored
      Summary:
      FACEBOOK
      
      This switches back to torch.multiprocessing.spawn, instead of directly calling fb_train.par using a subprocess.Process. This has the advantage that exceptions are propagated properly. It also moves the distributed_init part to happen after data loading, which gets around the timeout issue.
      
      The downside of this approach is that it's not so easy to pipe stdout to multiple places, which was nice when using the sweep.py scripts. I'm still working on a fix for that.
      
      Reviewed By: rutyrinott, ngoyal2707
      
      Differential Revision: D13873224
      
      fbshipit-source-id: 08d593233b8d23590c01c723363630a79804a8b0
      ec6f8ef9
    • Myle Ott's avatar
      Add --input option to interactive.py to support reading from file · 3dce7c9f
      Myle Ott authored
      Summary: Pull Request resolved: https://github.com/pytorch/fairseq/pull/484
      
      Differential Revision: D13880636
      
      Pulled By: myleott
      
      fbshipit-source-id: 984b2e1c3b281c28243102eb971ea45ec891d94e
      3dce7c9f
    • Myle Ott's avatar
      Merge internal changes (#483) · 42be3ebd
      Myle Ott authored
      Summary:
      Changelog:
      - `4889802`: can now remove detokenize sentencepiece output with `--remove-bpe=sentencepiece` (fixes #331). Also added `--sacrebleu` for computing detokenized BLEU.
      - `0d76427`: fix assertion error when training language model with dataset containing empty sentences
      - minor bug and style fixes
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/483
      
      Differential Revision: D13867899
      
      Pulled By: myleott
      
      fbshipit-source-id: 25c940b847fe270262ac8f5ac838407b3977fdda
      42be3ebd
  15. 29 Jan, 2019 1 commit
  16. 25 Jan, 2019 4 commits
  17. 24 Jan, 2019 6 commits
  18. 17 Jan, 2019 2 commits
  19. 16 Jan, 2019 3 commits
    • Davide Caroselli's avatar
      FIX: '--user-dir' on multi-gpu (#449) · 7853818c
      Davide Caroselli authored
      Summary:
      On a multi-gpu training scenario, the `train.py` script spawns new processes with `torch.multiprocessing.spawn`. Unfortunately those child processes don't inherit the modules imported with `--user-dir`.
      
      This pull request fixes this problem: custom module import in now explicit on every `main()` function.
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/449
      
      Differential Revision: D13676922
      
      Pulled By: myleott
      
      fbshipit-source-id: 520358d66155697885b878a37e7d0484bddbc1c6
      7853818c
    • Myle Ott's avatar
      Add --checkpoint-upper-bound to average_checkpoints.py (#452) · bdec179b
      Myle Ott authored
      Summary:
      This is useful for averaging the last N checkpoints, ending at some "best" checkpoint.
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/452
      
      Differential Revision: D13695407
      
      Pulled By: myleott
      
      fbshipit-source-id: 5d9d2bff3706834f01501e9259834c77fb335817
      bdec179b
    • Ruty Rinott's avatar
      optimizations for token_block_dataset · d1dc66d9
      Ruty Rinott authored
      Summary:
      optimizing memory use of token_block_dataset by replacing python data structures with numpy arrays.
      applying needed parts from D13498973, instead of rebasing it on changes
      
      Reviewed By: edunov
      
      Differential Revision: D13678485
      
      fbshipit-source-id: c0c827a8b95834a6a5456476040ebdc8e42136d4
      d1dc66d9
  20. 15 Jan, 2019 1 commit