Skip to content

Commit

Permalink
hot fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFrederik committed Mar 16, 2022
1 parent 20a8070 commit 0a12287
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unseal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from . import *

__version__ = '0.1.6'
__version__ = '0.1.7'
4 changes: 3 additions & 1 deletion unseal/visuals/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def wrap_gpt_attn(
attn_suffix: Optional[str] = None,
layer_key_prefix: Optional[str] = None,
out_proj_name: Optional[str] = 'out_proj',
batch_size: Optional[int] = None,
) -> Callable:
# parse inputs
if layer_key_prefix is None:
Expand All @@ -132,7 +133,8 @@ def wrap_gpt_attn(
model.save_ctx[f'logit_layer_{layer}'],
model.layers[out_proj_name].weight,
model.layers[unembedding_key].weight.T,
target_ids
target_ids,
batch_size,
)

return old_fn
Expand Down

0 comments on commit 0a12287

Please sign in to comment.