Skip to content

Add Echo parameter to multimodal runner (llava) and jni layer #5181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

cmodi-meta
Copy link
Contributor

No description provided.

Copy link

pytorch-bot bot commented Sep 9, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 15025f7 with merge base eca9ed5 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-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 9, 2024
* @param llamaCallback callback object to receive results.
* @return The error code.
*/
public native int generateFromPos(
String prompt, int seqLen, long startPos, LlamaCallback callback);
String prompt, int seqLen, long startPos, boolean echo, LlamaCallback callback);

Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't echo be the last argument?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

On the Android side echo is not last argument, but from jni side echo is passed into the runner as the last argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@larryliu0820 latest commits adds this as last parameter in all layers

@facebook-github-bot
Copy link
Contributor

@cmodi-meta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@cmodi-meta cmodi-meta merged commit 542ecb5 into main Sep 9, 2024
41 checks passed
@cmodi-meta cmodi-meta deleted the llava-echo-parameter branch September 9, 2024 23:26
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