Commit b2ac423
Enable XPU and optimize cpu/xpu op (#1418)
* enable new ipex API
ipex weight is 4D so we cannot transpose
fix dequant
check require grad
* use ipex op in backward
* enable backward
* Multi backend refactor (#8)
* AMD: Clarify diagnostic messages; free up disk space for CI build
* Add build job for rocm
* Add rocm build script
* Copy shared obj file into output_dir
* upload build artifacts and enable wheels build
* Remove cuda build temporarily
* Add ROCm version to .so filename
* Add rocm_version to whls build
* Revert "Remove cuda build temporarily"
This reverts commit 1413c5f.
* Add rocm_version env var
* Remove thrush header files
* Print node info
* print cuda node info
* Revert "print cuda node info"
This reverts commit cdb209a.
* Revert "Print node info"
This reverts commit 7e9a65c.
* Add rocm arch to compile command
* Rename .so files to rocm
* Update default gpu arch
* Skip cpu based igemmlt int tests on ROCm
* Update Documentation
* Update upstream repo name
* Update docs
* Update string format
Co-authored-by: Aarni Koskela <[email protected]>
* Remove pre-release option for torch install
* Update pytorch install path
Co-authored-by: Titus <[email protected]>
* Add messages for Heuristics error
* Remove toolcache for disk space
* print disk usage
* Clean disk space for linux
* Fix for ubuntu
* Add sudo for apt clean
* Update clean up disk list
* remove disk usage print
* Add BNB_BACKEND variable
* Update diagnostic functions for ROCm
* Fix tuple error
* Fix library detection bug for recursive and symlink cases
* fix pre-commit errors
* Remove recursive path lib search
* Create function for runtime lib patterns
* Update logger format
Co-authored-by: Aarni Koskela <[email protected]>
* Update error reporting
Co-authored-by: Aarni Koskela <[email protected]>
* Remove commented code
Co-authored-by: Aarni Koskela <[email protected]>
* Update error reporting
Co-authored-by: Aarni Koskela <[email protected]>
* Update error reporting
* Create hip diagnostics functions
* Fix Typo
* Fix pre-commit checks
---------
Co-authored-by: Aarni Koskela <[email protected]>
Co-authored-by: Titus <[email protected]>
* check grad before using ipex (#1358)
* Enable packaging for ROCm 6.2 (#1367)
* Enable 6.2 build
* Update documentation for 6.2.0 pip install
* Update for VS2022 17.11 compatibility with CUDA < 12.4 (#1341)
* Update for VS2022 17.11 compatibility with CUDA < 12.4
* Try again
* Enable continuous releases for multi-backend-refactor branch
* Update release workflow
* Publish continuous release for multi-backend
* continuous release: revert wheel renaming due to install err
* Revert "continuous release: revert wheel renaming due to install err"
This reverts commit 0a2b539.
* add dynamic tag-based versioning + git hash for dev vers
* docs: update w/ changes from `main`
* get tags for dynamic versioning
* fine-tune continuous release params
* reduce the pkg size + build times for the preview release
* refine docs for multi-backend alpha release (#1380)
* refine docs for multi-backend alpha release
* docs: further tweaks to multi-backend alpha docs
* docs: further tweaks to multi-backend alpha docs
* docs: further tweaks to multi-backend alpha docs
* docs: add multi-backend feedback links
* docs: add request for contributions
* docs: small fixes
* docs: small fixes
* docs: add info about `main` continuous build
* docs: further tweaks to multi-backend alpha docs
* docs: further tweaks to multi-backend alpha docs
* docs: remove 2 obsolete lines
---------
Co-authored-by: pnunna93 <[email protected]>
Co-authored-by: Aarni Koskela <[email protected]>
Co-authored-by: Titus <[email protected]>
Co-authored-by: Matthew Douglas <[email protected]>
* Revert "enable backward"
This reverts commit cd7bf21.
* Revert "use ipex op in backward"
This reverts commit b8df1aa.
* fix finetune
* check training
* fix gemv check
* reformat
* avoid double quant in backward if not needed
* Zh/xpu support (#9)
* Add xpu support
* Add xpu support for int8
* Add xpu dequant kernel support
* update code
* remove debug comments
* remove redundant comments
* Add xpu integration for woqlinear
* correct the comments
* Update cpu_xpu_common.py
---------
Co-authored-by: zhuhong61 <[email protected]>
Co-authored-by: zhuhong61 <[email protected]>
* avoid import triton if CPU and XPU backend
* fix setup in docker without git config
* xpu do not support compile for now
Signed-off-by: jiqing-feng <[email protected]>
* update xpu
Signed-off-by: jiqing-feng <[email protected]>
* update 4bit compute dtype
* fix xpu int8 path
Signed-off-by: jiqing-feng <[email protected]>
* optimize 4bit dequant
Signed-off-by: jiqing-feng <[email protected]>
* fix xpu dequant
Signed-off-by: jiqing-feng <[email protected]>
* add empty cache in each xpu op
* add nf4 dequant ipex kernel
* fix dequant 4bit op
* empty cache has negative effect on 4bit gemv
* fix xpu save
* fix save
* xpu use float16 default
Signed-off-by: jiqing-feng <[email protected]>
* rm empty cache as it cause slower perf
Signed-off-by: jiqing-feng <[email protected]>
* fix xpu save
Signed-off-by: jiqing-feng <[email protected]>
* fix 8bit int8 param device
Signed-off-by: jiqing-feng <[email protected]>
* fix 8bit int8 param device
Signed-off-by: jiqing-feng <[email protected]>
* fix 8bit int8 param device
Signed-off-by: jiqing-feng <[email protected]>
* fix 8bit int8 param device
Signed-off-by: jiqing-feng <[email protected]>
* fix format
* update readme for Intel CPU and XPU do not need make csrc codes
* fix format
* fix import
---------
Signed-off-by: jiqing-feng <[email protected]>
Co-authored-by: pnunna93 <[email protected]>
Co-authored-by: Aarni Koskela <[email protected]>
Co-authored-by: Titus <[email protected]>
Co-authored-by: Matthew Douglas <[email protected]>
Co-authored-by: zhuhong61 <[email protected]>
Co-authored-by: zhuhong61 <[email protected]>1 parent cd73601 commit b2ac423
File tree
10 files changed
+246
-101
lines changed- bitsandbytes
- autograd
- backends
- nn
- docs/source
10 files changed
+246
-101
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
467 | 469 | | |
468 | 470 | | |
469 | 471 | | |
| |||
575 | 577 | | |
576 | 578 | | |
577 | 579 | | |
578 | | - | |
579 | | - | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
580 | 589 | | |
581 | 590 | | |
582 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
236 | | - | |
237 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
| |||
342 | 345 | | |
343 | 346 | | |
344 | 347 | | |
345 | | - | |
| 348 | + | |
346 | 349 | | |
347 | 350 | | |
348 | 351 | | |
| |||
408 | 411 | | |
409 | 412 | | |
410 | 413 | | |
411 | | - | |
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
| |||
438 | 440 | | |
439 | 441 | | |
440 | 442 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
449 | 446 | | |
450 | | - | |
451 | 447 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
458 | 455 | | |
459 | 456 | | |
460 | 457 | | |
| |||
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
| 464 | + | |
471 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
473 | 475 | | |
474 | 476 | | |
475 | 477 | | |
| |||
510 | 512 | | |
511 | 513 | | |
512 | 514 | | |
513 | | - | |
514 | | - | |
515 | | - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
516 | 530 | | |
517 | 531 | | |
518 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
8 | 32 | | |
9 | 33 | | |
10 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
11 | 38 | | |
12 | 39 | | |
13 | 40 | | |
| |||
17 | 44 | | |
18 | 45 | | |
19 | 46 | | |
20 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
21 | 50 | | |
22 | 51 | | |
23 | 52 | | |
| |||
29 | 58 | | |
30 | 59 | | |
31 | 60 | | |
32 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
33 | 78 | | |
34 | 79 | | |
35 | 80 | | |
| |||
41 | 86 | | |
42 | 87 | | |
43 | 88 | | |
44 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
45 | 92 | | |
46 | 93 | | |
47 | 94 | | |
| |||
54 | 101 | | |
55 | 102 | | |
56 | 103 | | |
57 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
58 | 118 | | |
59 | 119 | | |
60 | 120 | | |
61 | 121 | | |
62 | 122 | | |
63 | 123 | | |
64 | 124 | | |
65 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
66 | 128 | | |
67 | 129 | | |
68 | 130 | | |
| |||
74 | 136 | | |
75 | 137 | | |
76 | 138 | | |
77 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
78 | 145 | | |
79 | 146 | | |
80 | 147 | | |
| |||
85 | 152 | | |
86 | 153 | | |
87 | 154 | | |
88 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
89 | 164 | | |
90 | 165 | | |
91 | 166 | | |
| |||
96 | 171 | | |
97 | 172 | | |
98 | 173 | | |
99 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
100 | 179 | | |
101 | 180 | | |
102 | 181 | | |
| |||
0 commit comments