Skip to content

server : add some missing env variables - #9116

Merged
ngxson merged 3 commits into
ggml-org:masterfrom
ngxson:xsn/server_params_2
Aug 27, 2024
Merged

server : add some missing env variables#9116
ngxson merged 3 commits into
ggml-org:masterfrom
ngxson:xsn/server_params_2

Conversation

@ngxson

@ngxson ngxson commented Aug 21, 2024

Copy link
Copy Markdown
Collaborator

Cont #9105

I forgot LLAMA_ARG_HOST and LLAMA_ARG_PORT

As a nice-to-have, LLAMA_ARG_HF_REPO and LLAMA_ARG_MODEL_URL are also added. Although it's not used by HF inference endpoint, it will be useful if someone want to deploy llama.cpp to stateless/server-less platforms like heroku or google cloud run.


@ngxson
ngxson requested a review from ggerganov August 21, 2024 09:57
@github-actions github-actions Bot added examples devops improvements to build systems and github actions server labels Aug 21, 2024
@Nexesenex

Copy link
Copy Markdown
Contributor

This overall feature is very useful!
Would it be possible to add params.rope_scaling_type and the other rope related parameters?

@ngxson

ngxson commented Aug 24, 2024

Copy link
Copy Markdown
Collaborator Author

@Nexesenex Currently we can't pass enum as environment variable, so for now I can't add rope_scaling_type.

The hacky solution is to duplicate the code from gpt_params_find_arg, but I don't feel like it's worth doing so. Probably there will be a follow-up refactoring PR in the future to bring more variables to env.

@Nexesenex

Copy link
Copy Markdown
Contributor

@ngxson I tried and reached the problem, hence my request.
Thanks for the hacky hint! I will try to implement it for myself for the time being.

@ngxson
ngxson merged commit a77feb5 into ggml-org:master Aug 27, 2024
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
Nexesenex pushed a commit to Nexesenex/croco.cpp that referenced this pull request Feb 25, 2025
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
Nexesenex pushed a commit to Nexesenex/croco.cpp that referenced this pull request Feb 25, 2025
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
server : handle models with missing EOS token (ggml-org#8997)

server : fix segfault on long system prompt (ggml-org#8987)
* server : fix segfault on long system prompt
* server : fix parallel generation with very small batch sizes
* server : fix typo in comment

server : init stop and error fields of the result struct (ggml-org#9026)

server : fix duplicated n_predict key in the generation_settings (ggml-org#8994)

server : support reading arguments from environment variables (ggml-org#9105)
* server : support reading arguments from environment variables
* add -fa and -dt
* readme : specify non-arg env var

server : add some missing env variables (ggml-org#9116)
* server : add some missing env variables
* add LLAMA_ARG_HOST to server dockerfile
* also add LLAMA_ARG_CONT_BATCHING

Credits are to the respective authors.
Not a single merge conflict occurred.
Compiled, then tested without bug.
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
phibya pushed a commit to ziee-ai/llama.cpp that referenced this pull request May 29, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
* server : add some missing env variables

* add LLAMA_ARG_HOST to server dockerfile

* also add LLAMA_ARG_CONT_BATCHING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions examples server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants