transformers
Enable BNB multi-backend support
#31098
Merged

Enable BNB multi-backend support #31098

jiqing-feng
jiqing-feng jiqing-feng marked this pull request as draft 1 year ago
jiqing-feng jiqing-feng changed the title enaable cpu bnb path [WIP] enaable cpu bnb path 1 year ago
jiqing-feng jiqing-feng changed the title [WIP] enaable cpu bnb path [WIP] enable cpu bnb path 1 year ago
github-actions
jiqing-feng jiqing-feng marked this pull request as ready for review 1 year ago
jiqing-feng
SunMarc
Titus-von-Koeller
HuggingFaceDocBuilderDev
akx
akx requested changes on 2024-07-16
jiqing-feng
Titus-von-Koeller
jiqing-feng
Titus-von-Koeller
jiqing-feng
Titus-von-Koeller
Titus-von-Koeller
Titus-von-Koeller
jiqing-feng
Titus-von-Koeller
jiqing-feng
jiqing-feng
Titus-von-Koeller
Titus-von-Koeller
jiqing-feng
Titus-von-Koeller
Titus-von-Koeller
jiqing-feng
jiqing-feng jiqing-feng changed the title [WIP] enable cpu bnb path Enable cpu bnb path 1 year ago
Titus-von-Koeller
Titus-von-Koeller Titus-von-Koeller changed the title Enable cpu bnb path Enable BNB multi-backend support 1 year ago
jiqing-feng
Titus-von-Koeller Titus-von-Koeller marked this pull request as draft 1 year ago
jiqing-feng jiqing-feng marked this pull request as ready for review 1 year ago
jiqing-feng
Titus-von-Koeller Titus-von-Koeller force pushed 1 year ago
Titus-von-Koeller
Titus-von-Koeller
Titus-von-Koeller
Titus-von-Koeller approved these changes on 2024-07-16
Titus-von-Koeller
Titus-von-Koeller Titus-von-Koeller force pushed 1 year ago
SunMarc
SunMarc approved these changes on 2024-08-21
SunMarc SunMarc requested a review from ArthurZucker ArthurZucker 1 year ago
jiqing-feng
Titus-von-Koeller Titus-von-Koeller force pushed 1 year ago
Titus-von-Koeller Titus-von-Koeller force pushed 1 year ago
SunMarc
SunMarc commented on 2024-08-27
jiqing-feng enable cpu bnb path
846f8535
jiqing-feng fix style
6c567037
jiqing-feng fix code style
3f02c9be
jiqing-feng fix 4 bit path
9ccbf109
jiqing-feng Update src/transformers/utils/import_utils.py
89fa5ef4
jiqing-feng add multi backend refactor tests
a52d7af1
jiqing-feng fix style
6f678625
Titus-von-Koeller tweak 4bit quantizer + fix corresponding tests
ee23eb0a
Titus-von-Koeller tweak 8bit quantizer + *try* fixing corresponding tests
678e6732
jiqing-feng fix dequant bnb 8bit
0858b3e7
Titus-von-Koeller account for Intel CPU in variability of expected outputs
c76d2430
jiqing-feng enable cpu and xpu device map
5843f281
Titus-von-Koeller further tweaks to account for Intel CPU
1a864a86
Titus-von-Koeller fix autocast to work with both cpu + cuda
f3753fc8
Titus-von-Koeller fix comments
0cc1b7ea
Titus-von-Koeller fix comments
b6118126
Titus-von-Koeller switch to testing_utils.torch_device
ab4836e4
Titus-von-Koeller allow for xpu in multi-gpu tests
73995002
jiqing-feng fix tests 4bit for CPU NF4
b41059c7
Titus-von-Koeller fix bug with is_torch_xpu_available needing to be called as func
1a7a6fe7
Titus-von-Koeller avoid issue where test reports attr err due to other failure
87983df8
Titus-von-Koeller fix formatting
7f17188b
Titus-von-Koeller fix typo from resolving of merge conflict
bb3ba4a2
Titus-von-Koeller Titus-von-Koeller force pushed 1 year ago
Titus-von-Koeller polish based on last PR review
463c2111
Titus-von-Koeller Titus-von-Koeller force pushed to 463c2111 1 year ago
Titus-von-Koeller
jiqing-feng
jiqing-feng fix CI
6d89ee4f
ArthurZucker
ArthurZucker commented on 2024-08-28
matthewdouglas
matthewdouglas matthewdouglas added Quantization
jiqing-feng Update src/transformers/integrations/integration_utils.py
7e01cfb0
jiqing-feng Update src/transformers/integrations/integration_utils.py
9bffc93d
jiqing-feng
ArthurZucker
ArthurZucker approved these changes on 2024-08-29
jiqing-feng fix error log
01b7587c
jiqing-feng fix error msg
171b130d
jiqing-feng add \n in error log
5e9bf9a9
jiqing-feng make quality
496c0467
jiqing-feng
jiqing-feng rm bnb cuda restriction in doc
86d0016a
Titus-von-Koeller
jiqing-feng
jiqing-feng cpu model don't need dispatch
1c96ae90
jiqing-feng Merge branch 'main' into bnb_cpu
495354e1
jiqing-feng fix doc
3aec6267
jiqing-feng fix style
daa1e275
SunMarc
SunMarc
SunMarc commented on 2024-09-03
jiqing-feng
jiqing-feng check cuda avaliable in testing
d55db0e7
jiqing-feng fix tests
a21a9168
jiqing-feng
jiqing-feng
SunMarc
SunMarc approved these changes on 2024-09-10
akx
akx commented on 2024-09-11
jiqing-feng Update docs/source/en/model_doc/chameleon.md
8ad17e82
jiqing-feng Update docs/source/en/model_doc/llava_next.md
107e02b0
akx
akx commented on 2024-09-11
jiqing-feng Update tests/quantization/bnb/test_4bit.py
20f6b5e2
jiqing-feng Update tests/quantization/bnb/test_4bit.py
9ac038ef
jiqing-feng
jiqing-feng fix doc
3bab7d76
jiqing-feng Merge branch 'huggingface:main' into bnb_cpu
968d9c5b
jiqing-feng fix check multibackends
08f31f87
jiqing-feng fix import sort
9eb09705
jiqing-feng remove check torch in bnb
b506b98e
Titus-von-Koeller
Titus-von-Koeller docs: update bitsandbytes references with multi-backend info
2be41697
Titus-von-Koeller docs: fix small mistakes in bnb paragraph
e607b7c3
Titus-von-Koeller Titus-von-Koeller force pushed to e607b7c3 1 year ago
Titus-von-Koeller run formatting
ac108c6d
Titus-von-Koeller Merge remote-tracking branch 'origin/main' into bnb_cpu
82dcb0d1
jiqing-feng reveret bnb check
c66e7e75
SunMarc
SunMarc commented on 2024-09-13
jiqing-feng move bnb multi-backend check to import_utils
8f25ee26
jiqing-feng
akx
akx
akx commented on 2024-09-14
jiqing-feng Update src/transformers/utils/import_utils.py
a4333cb3
jiqing-feng
jiqing-feng fix bnb check
32cbb8d4
jiqing-feng minor fix for bnb
4ce4b558
jiqing-feng check lib first
937ed3bf
jiqing-feng fix code style
e40f2847
jiqing-feng Merge branch 'huggingface:main' into bnb_cpu
03dd03b7
jiqing-feng Revert "run formatting"
b8093ce8
jiqing-feng fix format
0551d239
SunMarc
SunMarc commented on 2024-09-17
SunMarc
jiqing-feng give warning when bnb version is low and no cuda found]
e33e43bb
jiqing-feng Merge branch 'huggingface:main' into bnb_cpu
ced3c288
Titus-von-Koeller
Titus-von-Koeller fix device assignment check to be multi-device capable
170dd585
Titus-von-Koeller address akx feedback on get_avlbl_dev fn
9ba4a5e7
Titus-von-Koeller we don't want the function tat publicc, as docs would be too much
594f6f8a
Titus-von-Koeller
Titus-von-Koeller approved these changes on 2024-09-11
Titus-von-Koeller Titus-von-Koeller merged 11c27dd3 into main 1 year ago
cbensimon
bimehasia25815
bimehasia25815 commented on 2024-12-28
bimehasia25815
bimehasia25815 commented on 2024-12-28

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone