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
bitsandbytes
Commits
6a905be5
Commit
6a905be5
authored
Jul 09, 2023
by
Tim Dettmers
Browse files
Fixed a bug where gemv_4bit would return a wrongly sized tensor.
parent
0f0390ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
bitsandbytes/functional.py
bitsandbytes/functional.py
+4
-1
No files found.
bitsandbytes/functional.py
View file @
6a905be5
...
@@ -1475,7 +1475,10 @@ def gemv_4bit(
...
@@ -1475,7 +1475,10 @@ def gemv_4bit(
absmax
+=
offset
absmax
+=
offset
if
out
is
None
:
if
out
is
None
:
out
=
torch
.
zeros
(
size
=
(
A
.
shape
[
0
],
bout
),
dtype
=
A
.
dtype
,
device
=
A
.
device
)
if
len
(
A
.
shape
)
==
3
:
out
=
torch
.
zeros
(
size
=
(
A
.
shape
[
0
],
A
.
shape
[
1
],
bout
),
dtype
=
A
.
dtype
,
device
=
A
.
device
)
else
:
out
=
torch
.
zeros
(
size
=
(
A
.
shape
[
0
],
bout
),
dtype
=
A
.
dtype
,
device
=
A
.
device
)
...
...
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