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
c00402f1
"docs/vscode:/vscode.git/clone" did not exist on "445a176bdea9111bf725719b5eeb1abef8f9d3ad"
Commit
c00402f1
authored
Jul 13, 2023
by
Tim Dettmers
Browse files
Fixed a bug in absmax float conversion.
parent
67475257
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
CHANGELOG.md
+1
-0
bitsandbytes/functional.py
bitsandbytes/functional.py
+1
-1
No files found.
CHANGELOG.md
View file @
c00402f1
...
...
@@ -268,6 +268,7 @@ Features:
Bug fixes:
-
Fixed a bug where the default type of absmax was undefined which leads to errors if the default type is different than torch.float32. # 553
-
Fixed a missing scipy dependency in requirements.txt. #544
-
Fixed a bug, where a view operation could cause an error in 8-bit layers.
Documentation:
-
Improved documentation for GPUs that do not support 8-bit matmul. #529
...
...
bitsandbytes/functional.py
View file @
c00402f1
...
...
@@ -685,10 +685,10 @@ def dequantize_blockwise(
absmax
,
code
,
blocksize
,
nested
,
dtype
,
offset
,
state2
=
quant_state
if
absmax
.
dtype
!=
torch
.
float32
:
absmax
=
absmax
.
float
()
if
nested
:
absmax
=
dequantize_blockwise
(
absmax
,
state2
)
absmax
+=
offset
if
absmax
.
dtype
!=
torch
.
float32
:
absmax
=
absmax
.
float
()
if
out
is
None
:
out
=
torch
.
empty
(
A
.
shape
,
dtype
=
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