-
Notifications
You must be signed in to change notification settings - Fork 607
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
Conversation
🔗 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 FailuresAs of commit 15025f7 with merge base eca9ed5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
032a35d
to
24081a7
Compare
* @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); | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
317d749
to
15025f7
Compare
@cmodi-meta has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
No description provided.