Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions tests/peft_integration/test_peft_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ class PeftTesterMixin:
transformers_test_model_classes = (AutoModelForCausalLM, OPTForCausalLM)


# TODO: run it with CI after PEFT release.
@slow
class PeftIntegrationTester(unittest.TestCase, PeftTesterMixin):
"""
A testing suite that makes sure that the PeftModel class is correctly integrated into the transformers library.
Expand Down Expand Up @@ -1003,7 +1001,7 @@ def test_mixtral_lora_conversion(self):
if version.parse(importlib.metadata.version("peft")) < version.parse("0.19.0"):
self.skipTest("For this test to pass, PEFT 0.19 is required.")

inputs = torch.arange(10).view(1, -1).to(0)
inputs = torch.arange(10).view(1, -1).to(torch_device)
model_name = "hf-internal-testing/Mixtral-tiny"
adapter_name = "peft-internal-testing/mixtral-pre-v5-lora"

Expand Down
Loading