mmclassification/configs/mae/benchmarks/vit-huge-p14_8xb128-fsdp-coslr-50e_in1k.py
Mashiro 8afad77a35
[Enhance] Update fsdp vit-huge and vit-large config (#1675)
* Update fsdp vit-huge and vit-large config

* Update fsdp vit-huge and vit-large config

* rename
2023-06-30 11:15:18 +08:00

14 lines
374 B
Python

_base_ = ['./vit-huge-p14_8xb128-coslr-50e_in1k.py']
strategy = dict(
type='FSDPStrategy',
model_wrapper=dict(
auto_wrap_policy=dict(
type='torch.distributed.fsdp.wrap.size_based_auto_wrap_policy',
min_num_params=1e7)))
optim_wrapper = dict(type='AmpOptimWrapper')
# runner which supports strategies
runner_type = 'FlexibleRunner'