Skip to content

Fix the jakartaee-microprofile-example because language model is too big #151

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

Conversation

gkwan-ibm
Copy link
Contributor

Because tiiuae/falcon-7b-instruct model is greater than 10G, the Hugging Face free account cannot load it. This PR fixes the jakartaee-microprofile-example with the following:

  • update the ModelResource.java to use the microsoft/Phi-3-mini-4k-instruct model
  • update the test in the ModelResourceIT.java
  • update the Maven dependencies to latest in the pom.xml
  • update the README.md

dependabot bot and others added 10 commits April 15, 2025 13:37
…nal to 6.2.12.Final in /jakartaee-microprofile-example (#10)

* use dependabot to update jee-mp-example

* Bump org.jboss.resteasy:resteasy-json-binding-provider

Bumps org.jboss.resteasy:resteasy-json-binding-provider from 6.2.11.Final to 6.2.12.Final.

---
updated-dependencies:
- dependency-name: org.jboss.resteasy:resteasy-json-binding-provider
  dependency-version: 6.2.12.Final
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…4 to 11.0.25 in /jakartaee-microprofile-example (#9)

* use dependabot to update jee-mp-example

* Bump org.eclipse.jetty.websocket:websocket-jakarta-client

Bumps org.eclipse.jetty.websocket:websocket-jakarta-client from 11.0.24 to 11.0.25.

---
updated-dependencies:
- dependency-name: org.eclipse.jetty.websocket:websocket-jakarta-client
  dependency-version: 11.0.25
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…aee-microprofile-example (#8)

* use dependabot to update jee-mp-example

* Bump org.junit.jupiter:junit-jupiter in /jakartaee-microprofile-example

Bumps [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5) from 5.11.4 to 5.12.2.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](junit-team/junit5@r5.11.4...r5.12.2)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter
  dependency-version: 5.12.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…inal in /jakartaee-microprofile-example (#7)

* use dependabot to update jee-mp-example

* Bump org.jboss.resteasy:resteasy-client

Bumps [org.jboss.resteasy:resteasy-client](https://github.com/resteasy/resteasy) from 6.2.11.Final to 6.2.12.Final.
- [Release notes](https://github.com/resteasy/resteasy/releases)
- [Commits](resteasy/resteasy@6.2.11.Final...v6.2.12.Final)

---
updated-dependencies:
- dependency-name: org.jboss.resteasy:resteasy-client
  dependency-version: 6.2.12.Final
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…in /jakartaee-microprofile-example (#6)

* use dependabot to update jee-mp-example

* Bump io.openliberty.tools:liberty-maven-plugin

Bumps [io.openliberty.tools:liberty-maven-plugin](https://github.com/OpenLiberty/ci.maven) from 3.11.2 to 3.11.3.
- [Release notes](https://github.com/OpenLiberty/ci.maven/releases)
- [Commits](OpenLiberty/ci.maven@liberty-maven-3.11.2...liberty-maven-3.11.3)

---
updated-dependencies:
- dependency-name: io.openliberty.tools:liberty-maven-plugin
  dependency-version: 3.11.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
….3 in /jakartaee-microprofile-example (#5)

* use dependabot to update jee-mp-example

* Bump org.apache.maven.plugins:maven-failsafe-plugin

Bumps [org.apache.maven.plugins:maven-failsafe-plugin](https://github.com/apache/maven-surefire) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/apache/maven-surefire/releases)
- [Commits](apache/maven-surefire@surefire-3.5.2...surefire-3.5.3)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-failsafe-plugin
  dependency-version: 3.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…roprofile-example (#4)

* use dependabot to update jee-mp-example

* Bump org.slf4j:slf4j-reload4j in /jakartaee-microprofile-example

Bumps org.slf4j:slf4j-reload4j from 2.0.16 to 2.0.17.

---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-reload4j
  dependency-version: 2.0.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…file-example (#3)

* use dependabot to update jee-mp-example

* Bump org.slf4j:slf4j-api in /jakartaee-microprofile-example

Bumps org.slf4j:slf4j-api from 2.0.16 to 2.0.17.

---
updated-dependencies:
- dependency-name: org.slf4j:slf4j-api
  dependency-version: 2.0.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Gilbert Kwan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Gilbert Kwan <[email protected]>
Signed-off-by: Gilbert Kwan <[email protected]>
@gkwan-ibm
Copy link
Contributor Author

FYI, the fix in langchain4j was merged

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.

@gkwan-ibm thank you!

@dliubarskyi dliubarskyi merged commit c35d607 into langchain4j:main Apr 22, 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.

2 participants