File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
tests_fabric/plugins/precision
tests_pytorch/plugins/precision Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License
14+ import platform
1415import sys
1516from unittest .mock import Mock
1617
2829
2930
3031@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
32+ @pytest . mark . skipif ( platform . system () == "Darwin" ) # skip on Mac as Bitsandbytes is only supported on CUDA GPUs
3233def test_bitsandbytes_plugin (monkeypatch ):
3334 module = lightning .fabric .plugins .precision .bitsandbytes
3435 monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License
14+ import platform
1415import sys
1516from unittest .mock import Mock
1617
2223from lightning .fabric .plugins .precision .bitsandbytes import _BITSANDBYTES_AVAILABLE
2324from lightning .pytorch import LightningModule , Trainer
2425from lightning .pytorch .plugins .precision .bitsandbytes import BitsandbytesPrecision
25- from tests_pytorch .helpers .runif import RunIf
2626
2727
2828@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
29+ @pytest . mark . skipif ( platform . system () == "Darwin" ) # skip on Mac as Bitsandbytes is only supported on CUDA GPUs
3030def test_bitsandbytes_plugin (monkeypatch ):
3131 module = lightning .fabric .plugins .precision .bitsandbytes
3232 monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
You can’t perform that action at this time.
0 commit comments