ColossalAI/tests/test_zero_data_parallel
Jiarui Fang c9e7d9582d [zero] polish shard strategy (#310)
* init shard param from shape tuple

* add more unitest for shard param

* add set_payload method for ShardedParam

* [zero] add shareded tensor class

* polish code

* add shard stratgy

* move shard and gather logic to shard strategy from shard tensor.

* polish code
2022-03-11 15:50:28 +08:00
..
common.py fix sharded param hook and unit test 2022-03-11 15:50:28 +08:00
test_shard_model_v2.py [zero] add sharded grad and refactor grad hooks for ShardedModel (#287) 2022-03-11 15:50:28 +08:00
test_shard_param.py [zero] polish shard strategy (#310) 2022-03-11 15:50:28 +08:00
test_sharded_optim.py added unit test for sharded optimizer (#293) 2022-03-11 15:50:28 +08:00
test_sharded_optim_v2.py fix sharded param hook and unit test 2022-03-11 15:50:28 +08:00
test_sharded_optim_with_sync_bn.py added buffer sync to naive amp model wrapper (#291) 2022-03-11 15:50:28 +08:00
test_zero_dev_3.py Feature/zero (#279) 2022-03-11 15:50:28 +08:00
test_zero_dev_3_mp4.py [zero] add sharded grad and refactor grad hooks for ShardedModel (#287) 2022-03-11 15:50:28 +08:00
test_zero_param_mgr.py Feature/zero (#279) 2022-03-11 15:50:28 +08:00