Skip to content

Commit ad926cc

Browse files
committed
fix: use spatial_merge_size = 1 in unit test
1 parent 092716d commit ad926cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/models/qwen2_5_omni/test_modeling_qwen2_5_omni.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
"mlp_ratio": 4,
7878
"num_heads": 4,
7979
"patch_size": 14,
80-
"spatial_merge_size": 2,
80+
"spatial_merge_size": 1,
8181
"temporal_patch_size": 2,
8282
"fullatt_block_indexes": [0],
8383
"initializer_range": 0.02,
@@ -385,7 +385,7 @@ def test_get_rope_index_video_with_audio(self):
385385
image_grid_thw = torch.empty((0, 3), dtype=torch.long)
386386

387387
# 3 * 2 * 2 = 12 video tokens
388-
video_grid_thw = torch.tensor([[3, 4, 4]], dtype=torch.long)
388+
video_grid_thw = torch.tensor([[3, 2, 2]], dtype=torch.long)
389389

390390
# num_audio_tokens = ((audio_seqlen - 1) // 2 + 1 - 2) // 2 + 1
391391
# i.e.: 300 audio_seqlen -> 75 audio tokens

0 commit comments

Comments
 (0)