Skip to content

Commit

Permalink
skip quant test using bnb if bitsandbytes is not available (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-vi authored Jun 25, 2024
1 parent 0a0c7f4 commit 1aaa463
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions thunder/tests/test_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ def test_hf_bart_self_attn():

@requiresCUDA
def test_quantization():
try:
import bitsandbytes
except (ImportError, RuntimeError):
pytest.skip("bitsandbytes not found")

from thunder.tests import litgpt_model
from lightning.fabric.plugins import BitsandbytesPrecision

Expand Down

0 comments on commit 1aaa463

Please sign in to comment.