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
463630dc
"...text-generation-inference.git" did not exist on "97444f9367a3394396cda0b80098e67f6711bd34"
Unverified
Commit
463630dc
authored
Jul 06, 2023
by
Alessandro Pietro Bardelli
Committed by
GitHub
Jul 06, 2023
Browse files
[BugFix] replace view+continuous with reshape
parent
4395d68c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bitsandbytes/autograd/_functions.py
bitsandbytes/autograd/_functions.py
+1
-1
No files found.
bitsandbytes/autograd/_functions.py
View file @
463630dc
...
@@ -322,7 +322,7 @@ class MatMul8bitLt(torch.autograd.Function):
...
@@ -322,7 +322,7 @@ class MatMul8bitLt(torch.autograd.Function):
# 1. Quantize A
# 1. Quantize A
if
len
(
A
.
shape
)
==
3
:
if
len
(
A
.
shape
)
==
3
:
A
=
A
.
view
(
-
1
,
A
.
shape
[
-
1
])
.
contiguous
()
A
=
A
.
reshape
(
-
1
,
A
.
shape
[
-
1
])
CA
,
CAt
,
SCA
,
SCAt
,
coo_tensorA
=
F
.
double_quant
(
A
.
to
(
torch
.
float16
),
threshold
=
state
.
threshold
)
CA
,
CAt
,
SCA
,
SCAt
,
coo_tensorA
=
F
.
double_quant
(
A
.
to
(
torch
.
float16
),
threshold
=
state
.
threshold
)
if
state
.
threshold
>
0.0
and
coo_tensorA
is
not
None
:
if
state
.
threshold
>
0.0
and
coo_tensorA
is
not
None
:
...
...
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