justheuristic 5 жил өмнө
parent
commit
13234a2db1
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      tests/test_moe.py

+ 5 - 0
tests/test_moe.py

@@ -66,3 +66,8 @@ def test_compute_expert_scores():
                     assert torch.allclose(logits[b, e], gx[b, ii[b][e]] + gy[b, jj[b][e]]), "compute_expert_scores returned incorrect score"
         finally:
             dht.shutdown()
+
+
+if __name__ == '__main__':
+    test_remote_module_call()
+    test_compute_expert_scores()