-
Notifications
You must be signed in to change notification settings - Fork 465
GPULlama3.java examples for ChatModel. StreamingChatModel and Agentic #170
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
GPULlama3.java examples for ChatModel. StreamingChatModel and Agentic #170
Conversation
…ndencies, and enhance usage with `ChatRequest`/`ChatResponse`
… sarcasm response with `ChatRequest`, and log metrics
…n model configuration
…to examples/gpullama3.java
baf8bbe
to
b56a3f0
Compare
…h in chatmodel example"
…xample for consistency"
… streaming chat example"
…GPULlama3StreamingChatModelExample for consistency"
…up and usage instructions"
…_Example_Structured) with setup and usage instructions"
…l_Agent_Example) with setup and usage instructions"
gpullama3.java-example/pom.xml
Outdated
<!-- Core API (ChatModel, etc.) --> | ||
<dependency> | ||
<groupId>dev.langchain4j</groupId> | ||
<artifactId>langchain4j-core</artifactId> |
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.
no need to specify this dependency explicitly, it is available transitively from other lc4j deps
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.
fixed
gpullama3.java-example/pom.xml
Outdated
</dependency> | ||
<dependency> | ||
<groupId>dev.langchain4j</groupId> | ||
<artifactId>langchain4j-gpu-llama3</artifactId> |
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.
duplicated dependency
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.
fixed
@dliubarskyi I just clean-up the pom file and re-tested. Thank you for the review. |
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.
@mikepapadim thank you!
This PR adds examples for
ChatModel
,StreamingChatModel
, andAgentic
running locally on GPU through GPULlama3.java. GPULlama3.java has been integrated with langchain4j since [#3654]/(langchain4j/langchain4j#3654)GPULlama3.java only requires a local install of TornadoVM
Then one can try the examples following the instructions in
gpullama3.java-example
package README.md.It implements: