Skip to content

Commit 3d40d44

Browse files
committed
[Models] Add QwenImage runtime (rebased onto main)
1 parent 62c6aea commit 3d40d44

6 files changed

Lines changed: 1434 additions & 155 deletions

File tree

max/python/max/pipelines/architectures/qwen2_5vl/tokenizer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ def qwen2_5vl_image_preprocessing(
9595
grid_h = height // patch_size
9696
grid_w = width // patch_size
9797

98-
# Check if spatial merging is possible early
9998
if grid_h % merge_size != 0 or grid_w % merge_size != 0:
10099
raise ValueError(
101100
f"Spatial merging is not possible because grid_h {grid_h} % merge_size {merge_size} != 0 or grid_w {grid_w} % merge_size {merge_size} != 0"

0 commit comments

Comments
 (0)