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
f8353793
Unverified
Commit
f8353793
authored
Apr 06, 2024
by
Casper
Committed by
GitHub
Apr 06, 2024
Browse files
Workaround: illegal memory access (#421)
parent
b5db7fcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
awq/modules/linear/gemv_fast.py
awq/modules/linear/gemv_fast.py
+2
-1
No files found.
awq/modules/linear/gemv_fast.py
View file @
f8353793
...
...
@@ -189,7 +189,8 @@ class WQLinear_GEMVFast(torch.nn.Module):
@
torch
.
no_grad
()
def
forward
(
self
,
x
):
inputs
=
x
if
inputs
.
numel
()
/
inputs
.
shape
[
-
1
]
<
8
:
batch_size
,
n_tokens
,
_
=
inputs
.
shape
if
batch_size
<
8
and
n_tokens
==
1
:
out
=
awq_v2_ext
.
gemv_forward_cuda_decode
(
inputs
,
self
.
qweight
,
...
...
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