Skip to content

Commit fedb2d2

Browse files
committed
wip. add pplx unit test
Signed-off-by: Bill Nell <[email protected]>
1 parent 4971b43 commit fedb2d2

File tree

8 files changed

+550
-22
lines changed

8 files changed

+550
-22
lines changed

examples/offline_inference/data_parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def main(model, dp_size, local_dp_rank, global_dp_rank, dp_master_ip,
160160
procs.append(proc)
161161
exit_code = 0
162162
for proc in procs:
163-
proc.join(timeout=300)
163+
proc.join(timeout=3000)
164164
if proc.exitcode is None:
165165
print(f"Killing process {proc.pid} that "
166166
f"didn't stop within 5 minutes.")

tests/kernels/moe/test_moe.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ def torch_dispatch(
140140

141141
def torch_combine(b_out, topk_weight, topk_ids):
142142
num_tokens, topk = topk_ids.shape
143-
144143
num_experts = b_out.shape[0]
145-
topk = topk_ids.shape[1]
146144
K = b_out.shape[-1]
147145
out = torch.zeros((num_tokens, K), dtype=b_out.dtype, device=b_out.device)
148146
expert_counts = torch.zeros(num_experts, dtype=torch.int, device=b_out.device)

0 commit comments

Comments
 (0)