-
Notifications
You must be signed in to change notification settings - Fork 3
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
App/Language: Add a LLM example about text generation #114
Conversation
4dada2a
to
9c21db9
Compare
}?.run { | ||
Log.e(TAG, "Not supported LLM") | ||
} |
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.
When is this block invoked?
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.
I just want to check if there are no LLM related service.
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.
https://tourspace.tistory.com/208
I was making mistake when using 'let' incorrectly.
1. When not to use LET
1-1. 불변 변수의 null check (When just checking null for an immutable variable, don't use LET)
Updated not to use let
fun runLlama2(input: String, hostAddress: String, servicePort: Int, newDataCb: NewDataCb) { | ||
val port = findPort() | ||
val desc = | ||
"appsrc name=srcx ! application/octet-stream ! tensor_converter ! other/tensors,format=flexible ! tensor_query_client host=${hostAddress} port=${port} dest-host=${hostAddress} dest-port=${servicePort} timeout=1000000 ! tensor_sink name=sinkx" |
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.
"appsrc name=srcx ! application/octet-stream ! tensor_converter ! other/tensors,format=flexible ! tensor_query_client host=${hostAddress} port=${port} dest-host=${hostAddress} dest-port=${servicePort} timeout=1000000 ! tensor_sink name=sinkx" | |
"appsrc name=srcx ! application/octet-stream ! tensor_converter ! other/tensors,format=flexible ! tensor_query_client host=$hostAddress port=$port dest-host=$hostAddress dest-port=$servicePort timeout=1000000 ! tensor_sink name=sinkx" |
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.
Updated
Thank you 😅
9c21db9
to
375dec1
Compare
This patch adds a draft of the LLM example. It uses llama2 model to generate text using input prompt. Signed-off-by: Yelin Jeong <[email protected]>
375dec1
to
8cd66c3
Compare
This patch adds a draft of the LLM example.
It uses llama2 model to generate text using input prompt.