Skip to content

Commit

Permalink
assert is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jan 16, 2024
1 parent 7288741 commit 39bc4de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CALM_pytorch/CALM.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ def forward(
else:
prompts = prompt

assert len(prompts) == len(self.augment_llms)

prompt_masks = [p != self.pad_id for p in prompt]

# invoke the augment llm, gathering up the hidden states with the forward hook
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 = 'CALM-Pytorch',
packages = find_packages(exclude=[]),
version = '0.0.23',
version = '0.0.24',
license='MIT',
description = 'CALM - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit 39bc4de

Please sign in to comment.