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
b7e60cac
"git@developer.sourcefind.cn:OpenDAS/bitsandbytes.git" did not exist on "869b7e83b506cdb7e342e4939580104b486ed9ba"
Unverified
Commit
b7e60cac
authored
Apr 28, 2025
by
Matthew Douglas
Committed by
GitHub
Apr 28, 2025
Browse files
Improve torch.compile support for int8 with torch>=2.8 nightly (#1617)
parent
46442b03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bitsandbytes/autograd/_functions.py
bitsandbytes/autograd/_functions.py
+2
-1
No files found.
bitsandbytes/autograd/_functions.py
View file @
b7e60cac
...
@@ -236,7 +236,8 @@ class MatMul8bitLt(torch.autograd.Function):
...
@@ -236,7 +236,8 @@ class MatMul8bitLt(torch.autograd.Function):
ctx
.
state
=
state
ctx
.
state
=
state
ctx
.
grad_shape
=
input_shape
ctx
.
grad_shape
=
input_shape
ctx
.
dtype_A
,
ctx
.
dtype_B
,
ctx
.
dtype_bias
=
A
.
dtype
,
B
.
dtype
,
None
if
bias
is
None
else
bias
.
dtype
ctx
.
dtype_A
=
A
.
dtype
ctx
.
dtype_bias
=
None
if
bias
is
None
else
bias
.
dtype
if
any
(
ctx
.
needs_input_grad
[:
2
]):
if
any
(
ctx
.
needs_input_grad
[:
2
]):
ctx
.
tensors
=
(
CAt
,
subA
,
A
)
ctx
.
tensors
=
(
CAt
,
subA
,
A
)
...
...
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