Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
AutoAWQ
Commits
d016c513
Commit
d016c513
authored
Oct 02, 2023
by
Casper Hansen
Browse files
Fix unexpected keyword
parent
3fa74007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
awq/modules/fused/attn.py
awq/modules/fused/attn.py
+2
-1
No files found.
awq/modules/fused/attn.py
View file @
d016c513
...
@@ -146,7 +146,8 @@ class QuantAttentionFused(nn.Module):
...
@@ -146,7 +146,8 @@ class QuantAttentionFused(nn.Module):
def
forward
(
def
forward
(
self
,
self
,
hidden_states
:
torch
.
Tensor
,
past_key_value
=
None
,
attention_mask
=
None
,
position_ids
=
None
,
output_attentions
=
False
,
use_cache
=
False
hidden_states
:
torch
.
Tensor
,
past_key_value
=
None
,
attention_mask
=
None
,
position_ids
=
None
,
output_attentions
=
False
,
use_cache
=
False
,
*
args
,
**
kwargs
):
):
bsz
,
seqlen
,
_
=
hidden_states
.
shape
bsz
,
seqlen
,
_
=
hidden_states
.
shape
if
bsz
!=
self
.
cache_batch_size
:
if
bsz
!=
self
.
cache_batch_size
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment