• Min Xu's avatar
    [chore] [cleanup]: pytest, pytorch new versions, fix tests (#933) · fae29959
    Min Xu authored
    
    
    * update pytest versions
    
    * [test] test related changes
    
    - upgrade to newer pytorch versions
    - added function to make test more deterministic on A100 and TF32
    - fixed some tests so that they are correctly skipped on a single GPU system
    
    * more fixes
    
    * formatting overly long lines
    
    * format
    
    * better test without trigger a warning
    
    * fix an optim state bug with newer pytorch
    
    - adam optimizer seems to return "step" as a singleton tensor now in the
    nightly build
    - this fixes it assumeing non-tensor value can still be loaded back by
    the optimizer
    
    * improve oss.py
    
    - use min_loss for regression checking is a bit more reliable
    - also increased the num epochs from 10 to 12
    
    * small oss.py fix
    
    * Update fairscale/nn/data_parallel/fully_sharded_data_parallel.py
    Co-authored-by: default avatarMin Xu <min.xu.public@gmail.com>
    fae29959
test_layerwise_gradient_scaler.py 7.48 KB