1. 30 Mar, 2021 1 commit
  2. 29 Mar, 2021 1 commit
  3. 28 Mar, 2021 1 commit
  4. 26 Mar, 2021 1 commit
  5. 25 Mar, 2021 2 commits
  6. 22 Mar, 2021 1 commit
  7. 20 Mar, 2021 1 commit
  8. 19 Mar, 2021 3 commits
  9. 18 Mar, 2021 5 commits
  10. 17 Mar, 2021 2 commits
  11. 15 Mar, 2021 1 commit
  12. 12 Mar, 2021 2 commits
  13. 11 Mar, 2021 1 commit
  14. 09 Mar, 2021 3 commits
  15. 08 Mar, 2021 2 commits
  16. 06 Mar, 2021 1 commit
  17. 05 Mar, 2021 3 commits
  18. 04 Mar, 2021 5 commits
  19. 03 Mar, 2021 2 commits
  20. 02 Mar, 2021 2 commits
    • Myle Ott's avatar
      d2924670
    • Sean Naren's avatar
      [feat] Add context manager to FSDP for easier child module wrapping (#446) · f3359550
      Sean Naren authored
      This adds a context manager that assists in making child modules with similar defaults.
      Usage:
      ```
      from fairscale.nn.misc import enable_wrap, wrap
      
      with enable_wrap(**handleful_of_important_params):
          layer_1 = wrap(torch.nn.Linear(5, 5))
          layer_2 = wrap(torch.nn.Linear(5, 5), flatten_parameters=True) # Override parameters if you'd like
      
      # without the context manager, creates Linear layer
      layer_1 = wrap(torch.nn.Linear(5, 5))
      ```
      If not within the FSDP context, this would be a no-op. This makes it easier to annotate layers without having to copy any changes in parameters.
      f3359550