Skip to content

Conversation

arnej27959
Copy link

We're using llama.cpp from java using the wrapper from https://github.com/kherud/java-llama.cpp at the moment.

This wrapper uses code from the "tools/server" directory, and it would be most helpful to split that code into a library part (a generic server) and the HTTP-specific part. This PR creates a new library in "tools/serve" which can be used directly, while keeping the main() routine etc in "server". This should not impact current functionality in any way, it's just moving some of the code. This could also be useful if someone wants to build a server using RPC/protobuf instead of HTTP/json, for example.

I hope this contribution might be welcome.

@lexasub
Copy link
Contributor

lexasub commented Jun 29, 2025

@arnej27959 Good day! I think that serve is not a suitable name, since it intersects with the server entity. Maybe call it server-core? or serve-core? (other options are welcome)

@arnej27959 arnej27959 force-pushed the arnej/make-serve-library branch from 8abb76a to db0a6ed Compare June 30, 2025 10:03
@arnej27959 arnej27959 changed the title make "serve" library make "server-core" library Jun 30, 2025
@arnej27959
Copy link
Author

I like your suggestion "server-core"; I've updated the branch to get the newer changes and reflect the new name.

@arnej27959 arnej27959 force-pushed the arnej/make-serve-library branch from db0a6ed to c9c27c2 Compare August 18, 2025 09:41
@arnej27959 arnej27959 closed this Sep 21, 2025
@arnej27959
Copy link
Author

superseded by #16147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants