summaryrefslogtreecommitdiff
path: root/configs/deepspeed_zero2.json
diff options
context:
space:
mode:
Diffstat (limited to 'configs/deepspeed_zero2.json')
-rw-r--r--configs/deepspeed_zero2.json31
1 files changed, 31 insertions, 0 deletions
diff --git a/configs/deepspeed_zero2.json b/configs/deepspeed_zero2.json
new file mode 100644
index 0000000..bb7f7aa
--- /dev/null
+++ b/configs/deepspeed_zero2.json
@@ -0,0 +1,31 @@
+{
+ "train_batch_size": "auto",
+ "train_micro_batch_size_per_gpu": "auto",
+ "gradient_accumulation_steps": "auto",
+
+ "zero_optimization": {
+ "stage": 2,
+ "offload_optimizer": {
+ "device": "none"
+ },
+ "contiguous_gradients": true,
+ "overlap_comm": true,
+ "reduce_scatter": true,
+ "reduce_bucket_size": 5e8,
+ "allgather_bucket_size": 5e8
+ },
+
+ "bf16": {
+ "enabled": false
+ },
+
+ "fp16": {
+ "enabled": false
+ },
+
+ "gradient_clipping": 1.0,
+
+ "zero_allow_untested_optimizer": true,
+
+ "wall_clock_breakdown": false
+}