diff options
author | justheuristic <justheuristic@gmail.com> | 2022-09-18 00:57:26 +0300 |
---|---|---|
committer | justheuristic <justheuristic@gmail.com> | 2022-09-18 00:57:26 +0300 |
commit | 7906dc4c9a6d741699a561e03956f1f7ee4b8abc (patch) | |
tree | 6e7955ef98b4bb09dcea2e6a3277fd9e5f4618fe /bitsandbytes | |
parent | 2cd047e35da3a421c4b491ff1a137e19b9c6c919 (diff) |
debugpritn
Diffstat (limited to 'bitsandbytes')
-rw-r--r-- | bitsandbytes/autograd/_functions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitsandbytes/autograd/_functions.py b/bitsandbytes/autograd/_functions.py index daf9ba0..88a33a5 100644 --- a/bitsandbytes/autograd/_functions.py +++ b/bitsandbytes/autograd/_functions.py @@ -368,6 +368,7 @@ class MatMul8bitLt(torch.autograd.Function): gradB32, SgradB32 = F.igemmlt(C32grad, CxAt, Sgrad, SAt) grad_B = F.mm_dequant(gradB32, SgradB32, SCgradt, SCAt).to(ctx.dtype_B) if state.threshold > 0.0 and subA is not None: + assert False, idx grad_B[:, idx] += torch.matmul(grad_output.t(), subA) if req_gradA: |