Adopt Fairseq MemoryEfficientFP16Optimizer in PyText (#910)
Summary: Pull Request resolved: https://github.com/fairinternal/fairseq-py/pull/910 Pull Request resolved: https://github.com/facebookresearch/pytext/pull/1124 Pull Request resolved: https://github.com/pytorch/fairseq/pull/1362 Split the Fariseq MemoryEfficientFP16Optimizer class into 2 classes so that it can be easily imported in pytext through a wrapper class. Iter 2 - fixed some issues to ensure code runs correctly on fblearner. Iter 3 - fixed review comments, incorrect import and lints. Iter 4 - fixed pytext test breaks. Iter 5 - fix pytext test breaks. Iter 6 - fix comments and refactor based on conversation with chenyang. Reviewed By: chenyangyu1988 Differential Revision: D18410916 fbshipit-source-id: 5238ee553cd2811ed0573825e1c29000980cc489
Showing
Please register or sign in to comment