Skip to content

Conversation

mikepapadim
Copy link
Contributor

@mikepapadim mikepapadim commented Sep 8, 2025

This PR adds examples for ChatModel, StreamingChatModel, and Agentic 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:

  • 1a_Basic_Agent_Example
  • 1b_Basic_Agent_Example_Structured
  • 2a_Sequential_Agent_Example
  • GPULlama3ChatModelExample

@mikepapadim mikepapadim force-pushed the examples/gpullama3.java branch from baf8bbe to b56a3f0 Compare October 7, 2025 12:43
@mikepapadim mikepapadim changed the title GPULlama3.java Support GPULlama3.java examples for ChatModel. StreamingChatModel and Agentic Oct 8, 2025
@mikepapadim
Copy link
Contributor Author

mikepapadim commented Oct 8, 2025

<!-- Core API (ChatModel, etc.) -->
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-core</artifactId>
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

</dependency>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-gpu-llama3</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

duplicated dependency

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@mikepapadim
Copy link
Contributor Author

@dliubarskyi I just clean-up the pom file and re-tested. Thank you for the review.

Copy link
Member

@dliubarskyi dliubarskyi left a comment

Choose a reason for hiding this comment

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

@mikepapadim thank you!

@dliubarskyi dliubarskyi merged commit cfbfc4f into langchain4j:main Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants