Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
plutonium-239 committed Apr 1, 2024
1 parent ce73898 commit 1911520
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ruff:
.PHONY: test test-full

test:
@pytest -vx --cov=memsave_torch test -m quick
@pytest -vx --cov=memsave_torch/nn test -m quick

test-full:
@pytest -vx --cov=memsave_torch test
2 changes: 2 additions & 0 deletions memsave_torch/nn/LayerNorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def from_nn_LayerNorm(cls, ln: nn.LayerNorm):
f"Trying to load a model saved in torch>=2.1, but system version is {torch_version}. \n"
+ "This is problematic because torch 2.1 changed how LayerNorm bias works."
)
else:
obj.bias = ln.bias
return obj


Expand Down

0 comments on commit 1911520

Please sign in to comment.