1. 29 Mar, 2019 3 commits
    • Stefan Schweter's avatar
      Documentation: fix link to language model readme (#600) · 8ab27e6e
      Stefan Schweter authored
      Summary:
      Hi,
      
      currently, the link to the language model readme is broken on the `examples/language_model/transformer_lm` page.
      
      This PR fixes the link :)
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/600
      
      Differential Revision: D14680985
      
      Pulled By: myleott
      
      fbshipit-source-id: 62291efbf4ece2af54fae45c408c2759863f9847
      8ab27e6e
    • Facebook Community Bot's avatar
      Adding Code of Conduct file (#603) · c7e9e458
      Facebook Community Bot authored
      Summary:
      This is pull request was created automatically because we noticed your project was missing a Code of Conduct file.
      
      Code of Conduct files facilitate respectful and constructive communities by establishing expected behaviors for project contributors.
      
      This PR was crafted with love by Facebook's Open Source Team.
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/603
      
      Differential Revision: D14680981
      
      Pulled By: myleott
      
      fbshipit-source-id: 653262641554735d89f96c392c72fb311e53a451
      c7e9e458
    • Felix Wu's avatar
      Fixing a bug of DynamicConv in the unfolding mode (#593) · 34c9ebf0
      Felix Wu authored
      Summary:
      The unfold1d.py has the same name as the function `unfold1d` function, which will cause an error when using DynamicConv1dTBC with `unfold=True`.
      This doesn't affect the NMT models which don't use the unfolding mode though.
      
      I rename `unfold1d.py` as `unfold.py` to fix this bug.
      
      Originally we would get `TypeError` when running this code:
      ```
      import torch
      from fairseq.modules import LightweightConv1dTBC, DynamicConv1dTBC
      
      x = torch.rand(4, 10, 8)
      m = LightweightConv1dTBC(8, 4, 3)
      o = m(x, unfold=True)
      
      m = DynamicConv1dTBC(8, 4, 3)
      o = m(x, unfold=True)
      ```
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/593
      
      Differential Revision: D14597117
      
      Pulled By: myleott
      
      fbshipit-source-id: 59752fd7ff62c53a4aba8b56b83155291e5f5792
      34c9ebf0
  2. 26 Mar, 2019 1 commit
  3. 19 Mar, 2019 2 commits
  4. 16 Mar, 2019 1 commit
  5. 15 Mar, 2019 1 commit
    • Myle Ott's avatar
      0.6.1 -> 0.6.2 (#577) · e6422528
      Myle Ott authored
      Summary:
      Changelog:
      - 998ba4f: Add language models from Baevski & Auli (2018)
      - 4294c4f6: Add mixture of experts code from Shen et al. (2019)
      - 00493490: Add example for multilingual training
      - 48d9afbe: Speed improvements, including fused operators from apex
      - 44d27e64: Add Tensorboard support
      - d17fa851: Add Adadelta optimizer
      - 9e1c880f: Add `FairseqEncoderModel`
      - b65c579b: Add `FairseqTask.inference_step` to modularize generate.py
      - 2ad1178e: Add back `--curriculum`
      - Misc bug fixes and other features
      
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/577
      
      Differential Revision: D14481233
      
      Pulled By: myleott
      
      fbshipit-source-id: 4ff8625ef1c0b24273fc65df7c5658e3c932e8b7
      e6422528
  6. 14 Mar, 2019 2 commits
  7. 13 Mar, 2019 1 commit
  8. 12 Mar, 2019 3 commits
    • Dmytro Okhonko's avatar
      Handle 3+ dimensional input in sequence_generator + nits · 860010e9
      Dmytro Okhonko authored
      Summary: sequence_generator assumes that model input is 2d tensor of longs. But it can be something like 3d tensor of floats and we should be able to handle this as long as first dimension is batch size followed by source lengths.
      
      Reviewed By: myleott
      
      Differential Revision: D14420044
      
      fbshipit-source-id: bf8b1e42ad1873f7b803c1a377b0af21648db015
      860010e9
    • Dmytro Okhonko's avatar
      Adadelta optimizer · d17fa851
      Dmytro Okhonko authored
      Summary: Adding Adadelta optimizer to fairseq as wrapper around torch.optim.Adadelta
      
      Reviewed By: myleott
      
      Differential Revision: D14418635
      
      fbshipit-source-id: 6bf5ec008e905a4a2cbf7415e9492f5eea3ff07f
      d17fa851
    • Dmytro Okhonko's avatar
      FairseqEncoderModel · 9e1c880f
      Dmytro Okhonko authored
      Summary: Base class for encoder-only models. Some models doesn't have decoder part.
      
      Reviewed By: myleott
      
      Differential Revision: D14413406
      
      fbshipit-source-id: f36473b91dcf3c835fd6d50e2eb6002afa75f11a
      9e1c880f
  9. 11 Mar, 2019 2 commits
    • Matt Le's avatar
      Create fairseq_cli_lib · 7fc9a3be
      Matt Le authored
      Summary: This allows one to call fairseq_cli functions from within python without dispatching to bash.
      
      Reviewed By: myleott
      
      Differential Revision: D14404719
      
      fbshipit-source-id: 044eb652045bb15fc40e72ecbaf6fb10df9f8c61
      7fc9a3be
    • Jose Fonollosa's avatar
      Add missing parentheses in regex expression (#567) · fef4e002
      Jose Fonollosa authored
      Summary:
      The regex pattern without parentheses is not correct. The checkpoints are not sorted in descending order
      Pull Request resolved: https://github.com/pytorch/fairseq/pull/567
      
      Differential Revision: D14404380
      
      Pulled By: myleott
      
      fbshipit-source-id: 98cd0cfa8c92b78a03ffbb94840bc0f7a118eca1
      fef4e002
  10. 04 Mar, 2019 2 commits
  11. 02 Mar, 2019 1 commit
  12. 01 Mar, 2019 4 commits
  13. 28 Feb, 2019 5 commits
  14. 26 Feb, 2019 4 commits
  15. 24 Feb, 2019 1 commit
  16. 23 Feb, 2019 1 commit
  17. 22 Feb, 2019 2 commits
  18. 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
  19. 16 Feb, 2019 1 commit
  20. 12 Feb, 2019 1 commit
  21. 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