Skip to content

Commit 2e61613

Browse files
committed
add test
1 parent a465298 commit 2e61613

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_intranode.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def test_loop(local_rank: int, num_local_ranks: int, args: argparse.Namespace):
275275
num_rdma_bytes,
276276
low_latency_mode=test_ll_compatibility,
277277
num_qps_per_rank=(ll_num_experts // num_ranks if test_ll_compatibility else 1),
278-
explicitly_destroy=True)
278+
explicitly_destroy=True,
279+
use_fabric=args.use_fabric)
279280
torch.manual_seed(rank)
280281

281282
for i in (24, ):
@@ -301,6 +302,7 @@ def test_loop(local_rank: int, num_local_ranks: int, args: argparse.Namespace):
301302
parser.add_argument('--hidden', type=int, default=7168, help='Hidden dimension size (default: 7168)')
302303
parser.add_argument('--num-topk', type=int, default=8, help='Number of top-k experts (default: 8)')
303304
parser.add_argument('--num-experts', type=int, default=256, help='Number of experts (default: 256)')
305+
parser.add_argument('--use-fabric', action="store_true", help='Enable fabric mode')
304306
args = parser.parse_args()
305307

306308
num_processes = args.num_processes

0 commit comments

Comments
 (0)