justheuristic пре 5 година
родитељ
комит
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()