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 28
28
29
29
30
30
@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
31
32
def test_bitsandbytes_plugin (monkeypatch ):
32
33
module = lightning .fabric .plugins .precision .bitsandbytes
33
34
monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
Original file line number Diff line number Diff line change 22
22
from lightning .fabric .plugins .precision .bitsandbytes import _BITSANDBYTES_AVAILABLE
23
23
from lightning .pytorch import LightningModule , Trainer
24
24
from lightning .pytorch .plugins .precision .bitsandbytes import BitsandbytesPrecision
25
+ from tests_pytorch .helpers .runif import RunIf
25
26
26
27
27
28
@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
28
30
def test_bitsandbytes_plugin (monkeypatch ):
29
31
module = lightning .fabric .plugins .precision .bitsandbytes
30
32
monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
You can’t perform that action at this time.
0 commit comments