Fix python tests on CUDA - #9215
Conversation
60ec322 to
1b04429
Compare
0d374ff to
b40cdb3
Compare
Findings
|
2005f92 to
09cea23
Compare
|
@Pfannkuchensack It looks like this is ready for a re-review. |
09cea23 to
5bd37d9
Compare
|
@Pfannkuchensack I think I've addressed your concerns. Let me know how things look. |
Pfannkuchensack
left a comment
There was a problem hiding this comment.
Works. Tested Flux1, Zimage and SDXL.
09e75ca to
486bb73
Compare
486bb73 to
6db7945
Compare
* Fix python tests on CUDA * Updated more CUDA tests * Address CUDA test review feedback
Summary
Fix CUDA test and runtime compatibility issues in bnb custom linear autocast paths.
gemv_4bitpath for CPU-stored, device-autocasted weights by using the dequantized linear path for that shape.ValueErrorfrom raw 8-bit CPU-weight inference.Related Issues / Discussions
@keturn reported issues on Discord: https://discord.com/channels/1020123559063990373/1049495067846524939/1506160085108396092
QA Instructions
CUDA_VISIBLE_DEVICES="" python -m pytest \ tests/app/util/test_torch_cuda_allocator.py \ tests/backend/model_manager/load/model_cache/torch_module_autocast/custom_modules/test_custom_invoke_linear_8_bit_lt.py \ tests/backend/model_manager/load/model_cache/torch_module_autocast/custom_modules/test_custom_invoke_linear_nf4.py \ tests/backend/model_manager/load/model_cache/torch_module_autocast/test_torch_module_autocast.py::test_torch_module_autocast_bnb_llm_int8_linear_layer \ tests/backend/patches/test_layer_patcher.py::test_apply_smart_lora_patches_to_partially_loaded_model \ tests/backend/patches/test_layer_patcher.py::test_apply_smart_model_patches_change_device \ tests/backend/quantization/test_bnb_llm_int8.py \ tests/backend/quantization/gguf/test_ggml_tensor.py::test_ggml_tensor_to_device \ tests/backend/model_manager/load/model_cache/cached_model/ \ tests/backend/model_manager/load/model_cache/torch_module_autocast/custom_modules/test_all_custom_modules.py \ tests/backend/patches/test_layer_patcher.py \ tests/backend/patches/layers/test_lora_layer.py \ tests/backend/patches/layers/test_set_parameter_layer.py \ tests/backend/quantization/gguf/test_ggml_tensor.pyMerge Plan
Checklist
What's Newcopy (if doing a release after this PR)