Skip to content

Commit

Permalink
fix alibi in palm lite
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jun 20, 2022
1 parent 428c1e5 commit d78cd03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion palm_pytorch/palm_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def forward(self, qk_sim):
h, i, j, device = *qk_sim.shape[-3:], qk_sim.device

if exists(self.bias) and self.bias.shape[-1] >= j:
return qk_sim + self.bias[..., :i, :j]
return self.bias[..., :i, :j]

bias = self.get_bias(i, j, device)
bias = bias * self.slopes
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name="PaLM-pytorch",
packages=find_packages(exclude=[]),
version="0.2.0",
version="0.2.1",
license="MIT",
description="PaLM: Scaling Language Modeling with Pathways - Pytorch",
author="Phil Wang",
Expand Down

0 comments on commit d78cd03

Please sign in to comment.