Commit f758d08
Validate sharding plan correctness: Shard to rank assignment (#3495)
Summary:
Pull Request resolved: #3495
- validate correct rank assignment
- checks for None ranks
- checks for ranks in correct rank range
- check consistency in Manifold planner sharding plan rank assignment
Reviewed By: aporialiao
Differential Revision: D85878244
fbshipit-source-id: 09847323717609ece5d6480c5cf595f8a5fc42601 parent f7c74e4 commit f758d08
File tree
3 files changed
+67
-1
lines changed- torchrec/distributed/planner
- tests
3 files changed
+67
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 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 | + | |
121 | 160 | | |
122 | 161 | | |
123 | 162 | | |
| |||
634 | 673 | | |
635 | 674 | | |
636 | 675 | | |
| 676 | + | |
| 677 | + | |
637 | 678 | | |
638 | 679 | | |
639 | 680 | | |
| |||
997 | 1038 | | |
998 | 1039 | | |
999 | 1040 | | |
| 1041 | + | |
1000 | 1042 | | |
1001 | 1043 | | |
1002 | 1044 | | |
| |||
1090 | 1132 | | |
1091 | 1133 | | |
1092 | 1134 | | |
1093 | | - | |
| 1135 | + | |
| 1136 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
81 | 103 | | |
82 | 104 | | |
83 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
802 | 803 | | |
803 | 804 | | |
804 | 805 | | |
| |||
0 commit comments