Skip to content

Commit

Permalink
oops, got it backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 2, 2024
1 parent fcc4b16 commit 899b414
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nGPT_pytorch/nGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def forward(
mask = rearrange(mask, 'b j -> b 1 1 j')

if exists(self.mask_value):
mask = mask * self.mask_value
mask = ~mask * self.mask_value

# scale is sqrt(dk)

Expand Down
2 changes: 1 addition & 1 deletion nGPT_pytorch/nGPTExperimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def forward(
mask = rearrange(mask, 'b j -> b 1 1 j')

if exists(self.mask_value):
mask = mask * self.mask_value
mask = ~mask * self.mask_value

# scale is sqrt(dk)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nGPT-pytorch"
version = "0.2.3"
version = "0.2.4"
description = "nGPT"
authors = [
{ name = "Phil Wang", email = "[email protected]" }
Expand Down

0 comments on commit 899b414

Please sign in to comment.