{
  "scope": "Two and three CPU/Gloo processes; three steps on tiny signed rank-one coordinate observations. Natural completion is separate from explicitly waited-before-return scheduling. Original and explicitly modified in-memory private-zero variant. No model, multi-GPU execution or performance benchmark.",
  "reports": [
    {
      "source_commit": "87965014b360bde604632cba0aa12e423c6c63c6",
      "source_sha256": "8e7ca8d6f40ebc4fb066acb15387e618d515896cca5d1eb0ad234e5310e9157e",
      "source_file_modified": false,
      "world_size": 2,
      "backend": "gloo",
      "device": "cpu",
      "parameter_dtype": "float64",
      "internal_dtype": "bfloat16",
      "variants": {
        "original": {
          "in_memory_class_modified": false
        },
        "private_zero": {
          "in_memory_class_modified": true,
          "patch_lines": [
            286,
            299
          ],
          "change": "Wrap the receive-buffer input view in torch.zeros_like at both missing-gradient and padding sites"
        }
      },
      "completion_schedules": {
        "natural": "Original asynchronous Gloo return",
        "complete_before_return": "Wrapper waits for Gloo completion before returning its handle; forces a valid completed-before-next-iteration ordering"
      },
      "settings": {
        "lr": 0.01,
        "weight_decay": 0.1,
        "momentum": 0.5,
        "nesterov": false,
        "promotion_steps": 1,
        "ns_steps": 5,
        "scale_factor": 0.2
      },
      "steps": [
        "configured gradient observations",
        "zero gradients with historical momentum",
        "missing gradients, decay only"
      ],
      "momentum_checks": "Each step independently checks state ownership, initialization and EMA values; a missing observation must preserve existing state.",
      "ranks": [
        {
          "torch": "2.8.0+cu128",
          "patched_zero_assignments": [
            286,
            299
          ],
          "cases": [
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.002828427124746291
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.9941715728752536,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0028255986976213343
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9911774013023784,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0028227730989236477
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.988186223901076,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.00282842712474618,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.999,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0028255986976214453,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9951725728752538,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0028227730989237587,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9941774003023786,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            }
          ]
        },
        {
          "torch": "2.8.0+cu128",
          "patched_zero_assignments": [
            286,
            299
          ],
          "cases": [
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.002828427124746291
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.9941715728752536,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0028255986976213343
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9911774013023784,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0028227730989236477
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.988186223901076,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "original",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "natural",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.002828427124746069,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        1.998
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005654025822367403,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        1.996002
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005648371796544982,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.994005998
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.002828427124746291,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0056540258223680695,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.005648371796545426,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.002828427124746069,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        1.998
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005654025822367403,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        1.996002
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005648371796544982,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.994005998
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.002828427124746069,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        1.998
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005654025822367403,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        1.996002
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005648371796544982,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.994005998
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 2,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 5,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 3,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 3,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 2,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 3,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997,
                        2.997
                      ],
                      [
                        2.993535898384862,
                        2.997,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9870782608713395,
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9840911826104684,
                        2.991008997,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            }
          ]
        }
      ],
      "summary": [
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "original",
          "name": "one_full_batch",
          "count": 2,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "original",
          "name": "padding_all_gradients",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "original",
          "name": "two_batches_then_padding",
          "count": 5,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "original",
          "name": "missing_gradient_and_padding",
          "count": 3,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                0,
                1
              ],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.002828427124746291
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                0,
                1
              ],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0028255986976213343
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                0,
                1
              ],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0028227730989236477
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "original",
          "name": "zero_gradient_and_padding",
          "count": 3,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "original",
          "name": "different_numel_group",
          "count": 3,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "private_zero",
          "name": "one_full_batch",
          "count": 2,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "private_zero",
          "name": "padding_all_gradients",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "private_zero",
          "name": "two_batches_then_padding",
          "count": 5,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "private_zero",
          "name": "missing_gradient_and_padding",
          "count": 3,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "private_zero",
          "name": "zero_gradient_and_padding",
          "count": 3,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "natural",
          "variant": "private_zero",
          "name": "different_numel_group",
          "count": 3,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "one_full_batch",
          "count": 2,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "padding_all_gradients",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.002828427124746069,
              "maximum_weight_error": 0.002828427124746069
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.005654025822367403,
              "maximum_weight_error": 0.005654025822367403
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.005648371796544982,
              "maximum_weight_error": 0.005648371796544982
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "two_batches_then_padding",
          "count": 5,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.002828427124746291,
              "maximum_weight_error": 0.002828427124746291
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.0056540258223680695,
              "maximum_weight_error": 0.0056540258223680695
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.005648371796545426,
              "maximum_weight_error": 0.005648371796545426
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "missing_gradient_and_padding",
          "count": 3,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                0,
                1
              ],
              "rank_weight_disagreement": 0.00282842712474618,
              "maximum_weight_error": 0.00282842712474618
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                0,
                1
              ],
              "rank_weight_disagreement": 0.005654025822367403,
              "maximum_weight_error": 0.005654025822367403
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                0,
                1
              ],
              "rank_weight_disagreement": 0.005648371796544982,
              "maximum_weight_error": 0.005648371796544982
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "zero_gradient_and_padding",
          "count": 3,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.002828427124746069,
              "maximum_weight_error": 0.002828427124746069
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.005654025822367403,
              "maximum_weight_error": 0.005654025822367403
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                1
              ],
              "rank_weight_disagreement": 0.005648371796544982,
              "maximum_weight_error": 0.005648371796544982
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "different_numel_group",
          "count": 3,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "one_full_batch",
          "count": 2,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "padding_all_gradients",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "two_batches_then_padding",
          "count": 5,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "missing_gradient_and_padding",
          "count": 3,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "zero_gradient_and_padding",
          "count": 3,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 2,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "different_numel_group",
          "count": 3,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        }
      ],
      "scope": "Original and candidate classes use CPU allocation plus a storage-sharing flat Gloo output view. Completion is natural or explicitly completed before wrapper return. Tiny signed rank-one coordinate observations; no model, CUDA/NCCL multi-rank execution or performance benchmark."
    },
    {
      "source_commit": "87965014b360bde604632cba0aa12e423c6c63c6",
      "source_sha256": "8e7ca8d6f40ebc4fb066acb15387e618d515896cca5d1eb0ad234e5310e9157e",
      "source_file_modified": false,
      "world_size": 3,
      "backend": "gloo",
      "device": "cpu",
      "parameter_dtype": "float64",
      "internal_dtype": "bfloat16",
      "variants": {
        "original": {
          "in_memory_class_modified": false
        },
        "private_zero": {
          "in_memory_class_modified": true,
          "patch_lines": [
            286,
            299
          ],
          "change": "Wrap the receive-buffer input view in torch.zeros_like at both missing-gradient and padding sites"
        }
      },
      "completion_schedules": {
        "natural": "Original asynchronous Gloo return",
        "complete_before_return": "Wrapper waits for Gloo completion before returning its handle; forces a valid completed-before-next-iteration ordering"
      },
      "settings": {
        "lr": 0.01,
        "weight_decay": 0.1,
        "momentum": 0.5,
        "nesterov": false,
        "promotion_steps": 1,
        "ns_steps": 5,
        "scale_factor": 0.2
      },
      "steps": [
        "configured gradient observations",
        "zero gradients with historical momentum",
        "missing gradients, decay only"
      ],
      "momentum_checks": "Each step independently checks state ownership, initialization and EMA values; a missing observation must preserve existing state.",
      "ranks": [
        {
          "torch": "2.8.0+cu128",
          "patched_zero_assignments": [
            286,
            299
          ],
          "cases": [
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.002828427124746291
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.9931715728752537,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0028255986976217784
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.9891784013023783,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.002822773098924092
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.985189222901076,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.00282842712474618,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.999,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0028255986976214453,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9951725728752538,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0028227730989237587,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9941774003023786,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3,
                    6
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 0,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    0,
                    3
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            }
          ]
        },
        {
          "torch": "2.8.0+cu128",
          "patched_zero_assignments": [
            286,
            299
          ],
          "cases": [
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.002828427124746291
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.9931715728752537,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0028255986976217784
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.9891784013023783,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.002822773098924092
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.985189222901076,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.002828427124746069,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        1.998
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005654025822367403,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        1.996002
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005648371796544982,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.994005998
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.002828427124746291,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.995,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0056540258223680695,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.990005,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.005648371796545426,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.985014995,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.002828427124746069,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        1.998
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005654025822367403,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        1.996002
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005648371796544982,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.994005998
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.002828427124746069,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        1.998
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005654025822367403,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        1.996002
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.005648371796544982,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.994005998
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1,
                    4
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 1,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    1
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            }
          ]
        },
        {
          "torch": "2.8.0+cu128",
          "patched_zero_assignments": [
            286,
            299
          ],
          "cases": [
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.002828427124746291
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.9931715728752537,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0028255986976217784
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.9891784013023783,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.002822773098924092
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.985189222901076,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "original",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "natural",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.002828427124746291,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.005654025822367625,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.005648371796545426,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.002828427124746291,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.994
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.005654025822367181,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.005648371796544538,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.982017994
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.002828427124746291,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.005654025822367625,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.005648371796545426,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.002828427124746291,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.997,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.005654025822367625,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.005648371796545426,
                    0.0
                  ],
                  "matches_independent_updates": false,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.991008997,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "original",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "one_full_batch",
              "count": 3,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "padding_all_gradients",
              "count": 4,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "two_batches_then_padding",
              "count": 7,
              "tail": "nonzero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9931715728752537
                      ]
                    ],
                    [
                      [
                        4.997828427124746,
                        4.995
                      ],
                      [
                        4.995,
                        4.995
                      ]
                    ],
                    [
                      [
                        5.994,
                        5.9911715728752535
                      ],
                      [
                        5.994,
                        5.994
                      ]
                    ],
                    [
                      [
                        6.993,
                        6.993
                      ],
                      [
                        6.990171572875254,
                        6.993
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.986349974177632
                      ]
                    ],
                    [
                      [
                        4.995659025822368,
                        4.990005
                      ],
                      [
                        4.990005,
                        4.990005
                      ]
                    ],
                    [
                      [
                        5.9880059999999995,
                        5.982351974177632
                      ],
                      [
                        5.9880059999999995,
                        5.9880059999999995
                      ]
                    ],
                    [
                      [
                        6.986007000000001,
                        6.986007000000001
                      ],
                      [
                        6.980352974177633,
                        6.986007000000001
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2,
                    5
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.9823636242034546
                      ]
                    ],
                    [
                      [
                        4.990663366796546,
                        4.985014995
                      ],
                      [
                        4.985014995,
                        4.985014995
                      ]
                    ],
                    [
                      [
                        5.982017994,
                        5.976369622203455
                      ],
                      [
                        5.982017994,
                        5.982017994
                      ]
                    ],
                    [
                      [
                        6.979020993000001,
                        6.979020993000001
                      ],
                      [
                        6.973372621203455,
                        6.979020993000001
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "missing_gradient_and_padding",
              "count": 4,
              "tail": "none",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "zero_gradient_and_padding",
              "count": 4,
              "tail": "zero",
              "separate_last": false,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            },
            {
              "rank": 2,
              "world_size": 3,
              "completion": "complete_before_return",
              "variant": "private_zero",
              "name": "different_numel_group",
              "count": 4,
              "tail": "nonzero",
              "separate_last": true,
              "steps": [
                {
                  "step": 1,
                  "gradient_kinds": [
                    "nonzero",
                    "nonzero",
                    "nonzero",
                    "nonzero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9961715728752538,
                        0.999
                      ],
                      [
                        0.999,
                        0.999
                      ]
                    ],
                    [
                      [
                        1.998,
                        2.000828427124746
                      ],
                      [
                        1.998,
                        1.998
                      ]
                    ],
                    [
                      [
                        2.997,
                        2.997
                      ],
                      [
                        2.9941715728752536,
                        2.997
                      ]
                    ],
                    [
                      [
                        3.996,
                        3.996,
                        3.996
                      ],
                      [
                        3.996,
                        3.9925358983848622,
                        3.996
                      ]
                    ]
                  ]
                },
                {
                  "step": 2,
                  "gradient_kinds": [
                    "zero",
                    "zero",
                    "zero",
                    "zero"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9923469741776324,
                        0.998001
                      ],
                      [
                        0.998001,
                        0.998001
                      ]
                    ],
                    [
                      [
                        1.996002,
                        2.0016560258223675
                      ],
                      [
                        1.996002,
                        1.996002
                      ]
                    ],
                    [
                      [
                        2.9940029999999997,
                        2.9940029999999997
                      ],
                      [
                        2.988348974177632,
                        2.9940029999999997
                      ]
                    ],
                    [
                      [
                        3.992004,
                        3.992004,
                        3.992004
                      ],
                      [
                        3.992004,
                        3.9850792608713395,
                        3.992004
                      ]
                    ]
                  ]
                },
                {
                  "step": 3,
                  "gradient_kinds": [
                    "none",
                    "none",
                    "none",
                    "none"
                  ],
                  "max_weight_differences": [
                    0.0,
                    0.0,
                    0.0,
                    0.0
                  ],
                  "matches_independent_updates": true,
                  "owned_momentum_indices": [
                    2
                  ],
                  "max_momentum_error": 0.0,
                  "actual_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ],
                  "expected_weights": [
                    [
                      [
                        0.9913546272034548,
                        0.997002999
                      ],
                      [
                        0.997002999,
                        0.997002999
                      ]
                    ],
                    [
                      [
                        1.994005998,
                        1.999654369796545
                      ],
                      [
                        1.994005998,
                        1.994005998
                      ]
                    ],
                    [
                      [
                        2.991008997,
                        2.991008997
                      ],
                      [
                        2.9853606252034544,
                        2.991008997
                      ]
                    ],
                    [
                      [
                        3.988011996,
                        3.988011996,
                        3.988011996
                      ],
                      [
                        3.988011996,
                        3.981094181610468,
                        3.988011996
                      ]
                    ]
                  ]
                }
              ]
            }
          ]
        }
      ],
      "summary": [
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "original",
          "name": "one_full_batch",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "original",
          "name": "padding_all_gradients",
          "count": 4,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "original",
          "name": "two_batches_then_padding",
          "count": 7,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "original",
          "name": "missing_gradient_and_padding",
          "count": 4,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                0,
                1,
                2
              ],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.002828427124746291
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                0,
                1,
                2
              ],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0028255986976217784
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                0,
                1,
                2
              ],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.002822773098924092
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "original",
          "name": "zero_gradient_and_padding",
          "count": 4,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "original",
          "name": "different_numel_group",
          "count": 4,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "private_zero",
          "name": "one_full_batch",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "private_zero",
          "name": "padding_all_gradients",
          "count": 4,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "private_zero",
          "name": "two_batches_then_padding",
          "count": 7,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "private_zero",
          "name": "missing_gradient_and_padding",
          "count": 4,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "private_zero",
          "name": "zero_gradient_and_padding",
          "count": 4,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "natural",
          "variant": "private_zero",
          "name": "different_numel_group",
          "count": 4,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "one_full_batch",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "padding_all_gradients",
          "count": 4,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.002828427124746291,
              "maximum_weight_error": 0.002828427124746291
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.005654025822367625,
              "maximum_weight_error": 0.005654025822367625
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.005648371796545426,
              "maximum_weight_error": 0.005648371796545426
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "two_batches_then_padding",
          "count": 7,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.002828427124746291,
              "maximum_weight_error": 0.002828427124746291
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.0056540258223680695,
              "maximum_weight_error": 0.0056540258223680695
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.005648371796545426,
              "maximum_weight_error": 0.005648371796545426
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "missing_gradient_and_padding",
          "count": 4,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                0,
                1,
                2
              ],
              "rank_weight_disagreement": 0.002828427124746291,
              "maximum_weight_error": 0.002828427124746291
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                0,
                1,
                2
              ],
              "rank_weight_disagreement": 0.005654025822367625,
              "maximum_weight_error": 0.005654025822367625
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                0,
                1,
                2
              ],
              "rank_weight_disagreement": 0.005648371796545426,
              "maximum_weight_error": 0.005648371796545426
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "zero_gradient_and_padding",
          "count": 4,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.002828427124746291,
              "maximum_weight_error": 0.002828427124746291
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.005654025822367625,
              "maximum_weight_error": 0.005654025822367625
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [
                1,
                2
              ],
              "rank_weight_disagreement": 0.005648371796545426,
              "maximum_weight_error": 0.005648371796545426
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "original",
          "name": "different_numel_group",
          "count": 4,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "one_full_batch",
          "count": 3,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "padding_all_gradients",
          "count": 4,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "two_batches_then_padding",
          "count": 7,
          "tail": "nonzero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "missing_gradient_and_padding",
          "count": 4,
          "tail": "none",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "zero_gradient_and_padding",
          "count": 4,
          "tail": "zero",
          "separate_last": false,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        },
        {
          "world_size": 3,
          "completion": "complete_before_return",
          "variant": "private_zero",
          "name": "different_numel_group",
          "count": 4,
          "tail": "nonzero",
          "separate_last": true,
          "steps": [
            {
              "step": 1,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 2,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            },
            {
              "step": 3,
              "ranks_with_wrong_updates": [],
              "rank_weight_disagreement": 0.0,
              "maximum_weight_error": 0.0
            }
          ]
        }
      ],
      "scope": "Original and candidate classes use CPU allocation plus a storage-sharing flat Gloo output view. Completion is natural or explicitly completed before wrapper return. Tiny signed rank-one coordinate observations; no model, CUDA/NCCL multi-rank execution or performance benchmark."
    }
  ],
  "summary": {
    "world_sizes": [
      2,
      3
    ],
    "configuration_cases": 48,
    "optimizer_step_calls": 360,
    "candidate_cases_with_wrong_updates": 0,
    "original_cases_with_wrong_updates": 10,
    "momentum_states_checked_each_step": true
  }
}
