Skip to content
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

[llama.cpp] Update llama.cpp to latest release b2581 (2024-03-30) #3055

Closed
wants to merge 148 commits into from

Conversation

howlger
Copy link

@howlger howlger commented Apr 1, 2024

In order to get support for BERT based sentence embedding models like BAAI/bge-base-en-v1.5, mixedbread-ai/mxbai-embed-large-v1, or others, update llama.cpp from b1696 (2023-12-12) to the current latest release b2581 (2024-03-30).

BERT support was added to llama.cpp in February 2024: ggerganov/llama.cpp#5423

This change has not yet been tested. Maybe updating the Gradle property llamacpp_version is not enough and ai_djl_llama.cpp needs to be adapted as well. If so, please do so.

SidneyLann and others added 30 commits September 19, 2023 17:36
---------

Co-authored-by: Administrator <Administrator@tech8>
Co-authored-by: KexinFeng <fenkexin@amazon.com>
* Implement PtNDArraryEx.multiboxDetection

* MultiboxDetection - code cleanup

* MultiboxDetection - code cleanup

* MultiboxDetection - code cleanup

* MultiboxDetection - code cleanup

* format code

* Fix, add tests, and pass CI

---------

Co-authored-by: Zach Kimberg <kimbergz@amazon.com>
This fixes the markdown headers to be h1 so they render correctly in docs.
…valibrary#2806)

* [api] Added Early stopping configuration (deepjavalibrary#38)

* [api] Added Builder for Early stopping configuration (deepjavalibrary#38)

* Explicitly set NDManager for dataset in EarlyStoppingListenerTest to make the test run on JDK11 in gradle.
This creates an abstraction for combining devices into a single device. The main
use case for now is in DJL Serving TP_parallel. It will allow us to create a
WorkerGroup and a PyPredictor for a set of devices and then track the usage of
devices properly. It could also be used later for multi-gpu training or other
multi-device cases.
* Updates doc versions to 0.24.0

Also moves android gradle.properties to the new 0.25.0.

* Remove android change
* Updates XGBoost to 2.0.1

* Use devtools 8

* Updates based on new Xgboost JNI API.

---------

Co-authored-by: Frank Liu <frankfliu2000@gmail.com>
* Added element-wise gauss error function (ERF)

* Added element-wise arctan2

* Format java

* Fixed docs

* added * to other_ptr in Atan2
* Added 2D FFT

* Format java

* Add default fft2

* Convert array to vectors

* Add inverse fft2

* Add better assersion in ifft2 test

* Add really better assersion in ifft2 test

* Move cast bellow ifft2 for unsupported exception

* Format java

* changed dims to axes

* changed dims to axes
* only build triton binaries

* install requests library

* remove script
frankfliu and others added 22 commits March 1, 2024 19:10
…brary#3032)

* support includeTokenTypes in TextEmbeddingBatchTranslator

Co-authored-by: Frank Liu <frankfliu2000@gmail.com>
* Increase DJL version to 0.27.0

* Update README
In order to get support for BERT based sentence embedding models like BAAI/bge-base-en-v1.5, mixedbread-ai/mxbai-embed-large-v1,  or others, update llama.cpp from

b1696 (2023-12-12):
https://github.com/ggerganov/llama.cpp/releases/tag/b1696

to the current latest release

b2581 (2024-03-30):
https://github.com/ggerganov/llama.cpp/releases/tag/b2581

BERT support was added to llama.cpp in February 2024:
ggerganov/llama.cpp#5423
@howlger howlger requested review from zachgk, frankfliu and a team as code owners April 1, 2024 11:14
Copy link
Contributor

@frankfliu frankfliu left a comment

Choose a reason for hiding this comment

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

Llama.cpp implementation has changed, just bump up version won't work, we have to make JNI code change to make it compile

@howlger
Copy link
Author

howlger commented Apr 2, 2024

I see. Thanks for taking the time to try it.

The native libraries are built for all platforms with Native S3 llama.cpp, right? I can't find the log of the failed build. Could you please share it?

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.