Skip to content

Commit 543e0f4

Browse files
committed
fix ci
1 parent 704c472 commit 543e0f4

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/model/test_qwen3_5.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from xtuner.v1.model.compose.qwen3_vl.modeling_vision import init_world_mesh
1717

1818

19-
QWEN3_VL_MOE_PATH = os.environ["QWEN3_5_MOE_PATH"]
2019
VIDEO_ROOT = os.environ["VIDEO_ROOT"]
2120

2221
@unittest.skipIf(
@@ -26,6 +25,7 @@
2625
class TestQwen3_5_VL(DeterministicDDPTestCase):
2726

2827
def _forward(self, model, type, device, sp_size):
28+
QWEN3_VL_MOE_PATH = os.environ["QWEN3_5_MOE_PATH"]
2929
if type == 'image':
3030
tokenizer = AutoTokenizer.from_pretrained(QWEN3_VL_MOE_PATH)
3131
tokenize_fn = Qwen3VLTokenizeFnConfig(processor_path=QWEN3_VL_MOE_PATH, add_vision_id=True).build(
@@ -88,7 +88,8 @@ def _forward(self, model, type, device, sp_size):
8888
pixel_values = None
8989
image_grid_thw = None
9090
position_ids = None
91-
91+
92+
from transformers import Qwen3_5MoeForConditionalGeneration
9293
is_hf_model = isinstance(model, Qwen3_5MoeForConditionalGeneration)
9394

9495
if is_hf_model:
@@ -160,7 +161,8 @@ def test_qwen3_5_vl_run(self, device, sp_size, tol):
160161
self.create_pg(device)
161162

162163
from transformers import Qwen3_5MoeForConditionalGeneration
163-
164+
QWEN3_VL_MOE_PATH = os.environ["QWEN3_5_MOE_PATH"]
165+
164166
hf_model = Qwen3_5MoeForConditionalGeneration.from_pretrained(
165167
QWEN3_VL_MOE_PATH,
166168
dtype=torch.bfloat16,

0 commit comments

Comments
 (0)