Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llava/model/llava_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def _embed(
# This is a workaround to make sure the dummy embeddings are consumed
while media_embeds.get("dummy"):
dummy_embed = media_embeds["dummy"].popleft()
text_embeds += torch.sum(dummy_embed) * 0
text_embeds = text_embeds + (torch.sum(dummy_embed) * 0)

# Remove padding
batch_size = labels.shape[0]
Expand Down