Skip to content

Conversation

rohansjoshi
Copy link
Contributor

Summary

Run Llava model with MultimodalRunner instead of LlavaRunner

Copy link

pytorch-bot bot commented Sep 12, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14250

Note: Links to docs will display an error until the docs builds have been completed.

❌ 3 New Failures, 3 Unrelated Failures

As of commit cc4c2e5 with merge base 378c700 (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 12, 2025
Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@mergennachin mergennachin added this to the 1.0.0 milestone Sep 12, 2025
@rohansjoshi rohansjoshi marked this pull request as draft September 12, 2025 15:50
@rohansjoshi rohansjoshi marked this pull request as ready for review September 12, 2025 15:55
Comment on lines +80 to +81
def forward(self, cache_positions, embeddings):
return self.text_model(None, {"input_pos": cache_positions[:1]}, embeddings)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this necessary?

Copy link
Contributor Author

@rohansjoshi rohansjoshi Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E.g. say embeddings is length 5 and start pos is 2, MultimodalRunner text decoder passes input like ([2,3,4,5,6], embeddings), OTOH for LlavaRunner it would be ([2], embeddings).
This makes the first argument need dynamic shape. Alternatively, the other route would be to modify MultimodalRunner to handle both cases

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are modifying the multimodal runner to handle both cases

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mergennachin mergennachin removed this from the 1.0.0 milestone Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants