Commit a26786b
Add a test to validate that
Summary: Add a test to validate that `_local_masked_blocked_params` total elements match the original tensor when `param_assignment_strategy=FSDPParamAssignmentStrategy.REPLICATE` in `FullyShardLosslessDistributor` since we are replicating the sharded tensor into a replicate tensor onto each rank.
Reviewed By: hjmshi
Differential Revision: D86479219
fbshipit-source-id: a4530afb6c21c766485768523430a81ab9e9c383_local_masked_blocked_params total elements match the original tensor when param_assignment_strategy=FSDPParamAssignmentStrategy.REPLICATE in FullyShardLosslessDistributor
1 parent 36df9ff commit a26786b
File tree
1 file changed
+39
-0
lines changed- distributed_shampoo/distributor/gpu_tests
1 file changed
+39
-0
lines changedLines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
127 | 166 | | |
128 | 167 | | |
129 | 168 | | |
| |||
0 commit comments