Skip to content

Commit 8164025

Browse files
committed
Adjust max_pixels and max_num_frames parameters in Qwen2_VL class for optimized performance
1 parent 53c487d commit 8164025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lmms_eval/models/qwen2_vl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def __init__(
3838
batch_size: Optional[Union[int, str]] = 1,
3939
use_cache=True,
4040
use_flash_attention_2: Optional[bool] = True,
41-
max_pixels: int = 12845056,
41+
max_pixels: int = 1605632,
4242
min_pixels: int = 3136,
43-
max_num_frames: int = 256,
43+
max_num_frames: int = 32,
4444
use_custom_video_loader: Optional[bool] = False,
4545
fps: Optional[float] = None, # Only applicable if use_custom_video_loader is True
4646
max_image_size: Optional[int] = None, # Only applicable if use_custom_video_loader is True

0 commit comments

Comments
 (0)