Skip to content

Commit c36c206

Browse files
judyzhaoxinwucamiloCienet
authored andcommitted
chore: revert accidental changes to attention.py and layers.py during rebase
1 parent 68f4ff6 commit c36c206

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

axlearn/common/attention.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2993,7 +2993,6 @@ def attention_thunk(target: Tensor) -> tuple[Optional[NestedTensor], Tensor]:
29932993
assert cached_states is not None
29942994
assert segment_ids is None
29952995
assert target_positions is None
2996-
29972996
atten_state, atten_output = self.attention.init_states(
29982997
time_step=cached_states["attention"],
29992998
query=target,
@@ -3004,7 +3003,6 @@ def attention_thunk(target: Tensor) -> tuple[Optional[NestedTensor], Tensor]:
30043003
assert cached_states is not None
30053004
assert segment_ids is None
30063005
assert target_positions is None
3007-
30083006
atten_state, atten_output = self.attention.extend_step(
30093007
cached_states["attention"],
30103008
target,

axlearn/common/layers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,9 +882,7 @@ class Config(BaseLayer.Config):
882882
@classmethod
883883
def default_config(cls):
884884
cfg = super().default_config()
885-
# Prevent OOM on 405b
886-
# cfg.param_partition_spec = (None, "model")
887-
cfg.param_partition_spec = ("fsdp", "model")
885+
cfg.param_partition_spec = (None, "model")
888886
# By default, initialize to Gaussian with std=1/sqrt(dim), e.g., 0.036 when dim=768.
889887
#
890888
# This is the same as:

0 commit comments

Comments
 (0)