File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
tests_fabric/plugins/precision
tests_pytorch/plugins/precision Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 2828
2929
3030@pytest .mark .skipif (_BITSANDBYTES_AVAILABLE , reason = "bitsandbytes needs to be unavailable" )
31+ @RunIf (mps = False ) # skip on MPS as Bitsandbytes is only supported on CUDA GPUs
3132def test_bitsandbytes_plugin (monkeypatch ):
3233 module = lightning .fabric .plugins .precision .bitsandbytes
3334 monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
Original file line number Diff line number Diff line change 2222from lightning .fabric .plugins .precision .bitsandbytes import _BITSANDBYTES_AVAILABLE
2323from lightning .pytorch import LightningModule , Trainer
2424from lightning .pytorch .plugins .precision .bitsandbytes import BitsandbytesPrecision
25+ from tests_pytorch .helpers .runif import RunIf
2526
2627
2728@pytest .mark .skipif (_BITSANDBYTES_AVAILABLE , reason = "bitsandbytes needs to be unavailable" )
29+ @RunIf (mps = False ) # skip on MPS as Bitsandbytes is only supported on CUDA GPUs
2830def test_bitsandbytes_plugin (monkeypatch ):
2931 module = lightning .fabric .plugins .precision .bitsandbytes
3032 monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
You can’t perform that action at this time.
0 commit comments