已合并
skip test_schedule_multiproc #40664
我应该是一阵风创建于 7月10日
skip test_schedule_multiproc #40664
已合并
我应该是一阵风创建于 7月10日
1 个文件变更+2-3
@@ -5,7 +5,7 @@ import logging
5import os5import os
6import sys6import sys
7import tempfile7import tempfile
8- 8+import unittest
9from model_registry import ModelWithKwargs, MultiMLP, MultiMLPWithDw9from model_registry import ModelWithKwargs, MultiMLP, MultiMLPWithDw
10from schedule_registry import (10from schedule_registry import (
11 ScheduleUnbalanced,11 ScheduleUnbalanced,
@@ -49,7 +49,7 @@ device_type = "npu"
49 49 
50torch.manual_seed(0)50torch.manual_seed(0)
51 51 
52- 52+@unittest.skip("Skip: test not adapted")
53class ScheduleTest(MultiProcContinuousTest):53class ScheduleTest(MultiProcContinuousTest):
54 world_size = int(os.getenv("WORLD_SIZE", 2))54 world_size = int(os.getenv("WORLD_SIZE", 2))
55 55 
@@ -67,7 +67,6 @@ class ScheduleTest(MultiProcContinuousTest):
67 super().setUpClass()67 super().setUpClass()
68 dev_id = cls.rank % torch.npu.device_count()68 dev_id = cls.rank % torch.npu.device_count()
69 cls.device = torch.device(f"npu:{dev_id}")69 cls.device = torch.device(f"npu:{dev_id}")
70-
71 @property70 @property
72 def device(self) -> torch.device:71 def device(self) -> torch.device:
73 return torch.device(device_type, self.rank)72 return torch.device(device_type, self.rank)