Skip to content

Commit

Permalink
make TransformForColumnWiseParallel frozen
Browse files Browse the repository at this point in the history
Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
  • Loading branch information
crcrpar committed May 17, 2024
1 parent 5b2f2b9 commit c1e398d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions thunder/distributed/tensor_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __call__(self, bsym: BoundSymbol) -> VISIT_TYPE:
return VISIT_TYPE.REPLACE


@dataclass
@dataclass(frozen=True)
class TransformForColumnWiseParallel:
rank: int
world_size: int
Expand All @@ -69,8 +69,6 @@ def __post_init__(self):
if getattr(self.compile_data, "use_fsdp", False) or getattr(self.compile_data.fn, "use_fsdp", False):
raise NotImplementedError("Currently thunder does not support the combination of fsdp and tensor parallel")

self.swap_map: dict[VariableInterface, ProxyInterface] = {}

def __call__(
self,
prologue_trace: TraceCtx,
Expand Down

0 comments on commit c1e398d

Please sign in to comment.