Skip to content

Commit d621e44

Browse files
committed
attempt
1 parent 4b5a6db commit d621e44

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

torchtitan/models/common/moe/moe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
from collections.abc import Callable
78
from dataclasses import dataclass
8-
from typing import Callable, Literal
9+
from typing import Literal
910

1011
import torch
1112
import torch.nn.functional as F

torchtitan/models/common/moe/moe_deepep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
"""MoE with DeepEP backend for efficient expert-parallel communication."""
88

9+
from collections.abc import Callable
910
from dataclasses import dataclass
10-
from typing import Callable
1111

1212
import torch
1313
from torch.distributed.tensor import DTensor, Partial

0 commit comments

Comments
 (0)