Skip to content

Commit

Permalink
added gpu requirement for this test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fajcik committed Dec 18, 2023
1 parent 96d9ec7 commit 3c7eb2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_autocast_torchcompatibility_lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from peft.tuners.lora import Embedding as LoraEmbedding
from peft.tuners.lora import Linear as LoraLinear

from .testing_utils import require_torch_gpu


class SimpleModel(nn.Module):
def __init__(self):
Expand Down Expand Up @@ -117,6 +119,7 @@ def forward(self, input_ids):
return conv_output


@require_torch_gpu
class TestAutoCast(unittest.TestCase):
def test_simple_model(self):
self._test_model(SimpleModel)
Expand Down

0 comments on commit 3c7eb2e

Please sign in to comment.