feat: use DeepSpeed ZeRO-3 for proper model sharding across GPUs
This commit is contained in:
1 parent
9d8c2b6cf0
commit
a655040db2
3 files changed
+31
-10
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"bf16": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"zero_optimization": {
|
||||
"stage": 3,
|
||||
|
||||
"overlap_comm": true,
|
||||
"contiguous_gradients": true,
|
||||
|
||||
"reduce_bucket_size": 50000000,
|
||||
"stage3_prefetch_bucket_size": 50000000,
|
||||
"stage3_param_persistence_threshold": 100000
|
||||
},
|
||||
|
||||
"gradient_clipping": 1.0,
|
||||
|
||||
"train_micro_batch_size_per_gpu": 1,
|
||||
|
||||
"steps_per_print": 100
|
||||
}
|
||||
Reference in new issue
Block a user