[test] add allreduce test on npu (#9619)

Co-authored-by: frozenleaves <frozen@Mac.local>
This commit is contained in:
浮梦
2025-12-16 21:33:30 +08:00
committed by GitHub
parent a0179772ab
commit 18c21bce5a
20 changed files with 419 additions and 70 deletions

View File

@@ -44,7 +44,7 @@ INFER_ARGS = {
}
@pytest.mark.runs_on(["cpu", "npu"])
@pytest.mark.runs_on(["cpu", "npu", "cuda"])
def test_full_train():
model = load_train_model(**TRAIN_ARGS)
for param in model.parameters():
@@ -52,7 +52,7 @@ def test_full_train():
assert param.dtype == torch.float32
@pytest.mark.runs_on(["cpu", "npu"])
@pytest.mark.runs_on(["cpu", "npu", "cuda"])
def test_full_inference():
model = load_infer_model(**INFER_ARGS)
for param in model.parameters():