Skip to content

remove all state from the llamacpp backend#801

Merged
jeremyfowers merged 3 commits intolemonade-sdk:mainfrom
bitgamma:llamacpp-stateless
Jan 9, 2026
Merged

remove all state from the llamacpp backend#801
jeremyfowers merged 3 commits intolemonade-sdk:mainfrom
bitgamma:llamacpp-stateless

Conversation

@bitgamma
Copy link
Copy Markdown
Member

@bitgamma bitgamma commented Jan 7, 2026

Closes #790
Closes #822

removes all class variables from llamacpp_server.cpp. This helps in keeping track of how the arguments are handled, avoids outdated state. This also fixes logs showing outdated state and possibly outdated use_gpu state.

LEMONADE_LLAMACPP_BACKEND has been removed as non-functional. LEMONADE_LLAMACPP already exists and is working, so LEMONADE_LLAMACPP_BACKEND was probably a leftover

Comment thread src/cpp/include/lemon/backends/llamacpp_server.h
@jeremyfowers
Copy link
Copy Markdown
Member

Ran into some odd behavior. Going to wait for #804 to merge so that I can be sure I'm not confusing myself.

Copy link
Copy Markdown
Member

@jeremyfowers jeremyfowers left a comment

Choose a reason for hiding this comment

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

Tested locally. Logging is improved and there are no functional regressions (including multi-model).

@jeremyfowers jeremyfowers enabled auto-merge January 9, 2026 19:29
@jeremyfowers jeremyfowers added this pull request to the merge queue Jan 9, 2026
@jeremyfowers jeremyfowers removed this pull request from the merge queue due to the queue being cleared Jan 9, 2026
@jeremyfowers jeremyfowers merged commit cf4a033 into lemonade-sdk:main Jan 9, 2026
16 checks passed
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.

[Router] Creating LlamaCpp backend: vulkan, when rocm is being used Logging bug: "[LlamaCpp] Using backend: vulkan" even when using rocm

2 participants