Commit 49a768a
Remove deprecated APIs: research module, non-blockwise optimizers, and legacy quantization functions
Remove all remaining deprecated code that has been emitting FutureWarning
since v0.45.0 (December 2024). Two prior cleanup rounds (v0.47.0, v0.49.0)
already removed the easier items; this finishes the job.
- Delete quantize(), dequantize(), quantize_no_absmax(),
dequantize_no_absmax(), optimizer_update_8bit(), percentile_clipping(),
and the str2optimizer8bit dispatch table from functional.py
- Remove the non-blockwise 8-bit optimizer path from Optimizer2State and
Optimizer1State; LAMB/LARS now use blockwise quantization
- Remove percentile_clipping and block_wise parameters from all ~33
optimizer class constructors
- Delete bitsandbytes/research/ (FP8 matmul, SwitchBack)
- Delete bitsandbytes/nn/triton_based_modules.py, SwitchBackLinearBnb,
and the orphaned bitsandbytes/triton/ kernel directory
- Remove dead MatmulLtState fields (CxB, CxBt, formatB, _tile_indices)
- Delete test_deprecated.py, test_triton.py; clean test_autograd.py,
test_optim.py, test_functional.py
- Remove benchmarking/switchback/ and update docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent a2c92f7 commit 49a768a
File tree
43 files changed
+32
-3191
lines changed- benchmarking/switchback
- bitsandbytes
- autograd
- backends
- nn
- optim
- research
- autograd
- nn
- triton
- docs/source
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+32
-3191
lines changedThis file was deleted.
This file was deleted.
This file was deleted.
Binary file not shown.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
65 | | - | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
| |||
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
78 | | - | |
79 | 74 | | |
80 | 75 | | |
81 | 76 | | |
82 | | - | |
83 | 77 | | |
84 | 78 | | |
85 | 79 | | |
86 | | - | |
87 | 80 | | |
88 | 81 | | |
89 | 82 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 83 | | |
95 | 84 | | |
96 | 85 | | |
| |||
293 | 282 | | |
294 | 283 | | |
295 | 284 | | |
296 | | - | |
297 | 285 | | |
298 | 286 | | |
299 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
0 commit comments