We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b5a6db commit d621e44Copy full SHA for d621e44
torchtitan/models/common/moe/moe.py
@@ -4,8 +4,9 @@
4
# This source code is licensed under the BSD-style license found in the
5
# LICENSE file in the root directory of this source tree.
6
7
+from collections.abc import Callable
8
from dataclasses import dataclass
-from typing import Callable, Literal
9
+from typing import Literal
10
11
import torch
12
import torch.nn.functional as F
torchtitan/models/common/moe/moe_deepep.py
@@ -6,8 +6,8 @@
"""MoE with DeepEP backend for efficient expert-parallel communication."""
-from typing import Callable
13
from torch.distributed.tensor import DTensor, Partial
0 commit comments