Skip to content
Merged
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
7 changes: 0 additions & 7 deletions tests/models/deepseek_vl/test_modeling_deepseek_vl.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
require_torch,
require_torch_accelerator,
slow,
torch_device,
)

from ...test_processing_common import url_to_local_path
Expand Down Expand Up @@ -71,8 +70,6 @@ def setUp(self):

def test_model_text_generation(self):
model = DeepseekVLForConditionalGeneration.from_pretrained(self.model_id, dtype="auto", device_map="auto")
model.to(torch_device)
model.eval()
processor = AutoProcessor.from_pretrained(self.model_id)

messages = [
Expand Down Expand Up @@ -105,8 +102,6 @@ def test_model_text_generation(self):

def test_model_text_generation_batched(self):
model = DeepseekVLForConditionalGeneration.from_pretrained(self.model_id, dtype="auto", device_map="auto")
model.to(torch_device)
model.eval()
processor = AutoProcessor.from_pretrained(self.model_id)

messages = [
Expand Down Expand Up @@ -155,8 +150,6 @@ def test_model_text_generation_batched(self):

def test_model_text_generation_with_multi_image(self):
model = DeepseekVLForConditionalGeneration.from_pretrained(self.model_id, dtype="auto", device_map="auto")
model.to(torch_device)
model.eval()
processor = AutoProcessor.from_pretrained(self.model_id)

messages = [
Expand Down
Loading