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
6 changes: 4 additions & 2 deletions tests/models/glm4v_moe/test_modeling_glm4v_moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,13 @@ def test_inputs_embeds_matches_input_ids(self):
@require_torch
@slow
class Glm4vMoeIntegrationTest(unittest.TestCase):
model = None
@classmethod
def setUpClass(cls):
cls.model = None

@classmethod
def get_model(cls):
if cls.model is None:
if not hasattr(cls, "model") or cls.model is None:
cls.model = Glm4vMoeForConditionalGeneration.from_pretrained(
"zai-org/GLM-4.5V", dtype="auto", device_map="auto"
)
Expand Down