Commit 41091ec
authored
FIX Bug when dequantizing 4bit bnb weights (#2847)
Fixes some failing GPU tests in CI.
A bug was introduced in #2797 where state.SCB was accessed while
dequantizing 4bit bnb weights even though state is None. This would
occur, for instance, when using DoRA, which needs to dequantize the
weight. The attribute access is now restricted to 8bit bnb weights.1 parent 6bf24ac commit 41091ec
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 91 | | |
95 | 92 | | |
96 | 93 | | |
97 | 94 | | |
98 | 95 | | |
99 | 96 | | |
100 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
| |||
0 commit comments