Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit b1b32f1

Browse files
authored
Fix 3.2 11B inference, by updating padded_collate_tiled_images_and_mask args (#1431)
1 parent 90749d2 commit b1b32f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchchat/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def _gen_model_input(
949949

950950
if image_found:
951951
batch = padded_collate_tiled_images_and_mask(
952-
[data], pad_direction="left", pad_max_images=1
952+
[data], pad_direction="left", pad_max_images=1, pad_max_tiles=transform.max_num_tiles
953953
)
954954
encoded = batch.pop("tokens").to(device).view(-1)
955955
seq_len = encoded.size(0)

0 commit comments

Comments
 (0)