add native llama.cpp Web UI integration - #1311
Draft
GlennLin wants to merge 1 commit into
Draft
Conversation
Signed-off-by: GlennLin <12709970+GlennLin@users.noreply.github.com>
GlennLin
force-pushed
the
agent/add-native-llamacpp-webui
branch
from
August 8, 2026 13:45
7a04c61 to
98ffa6e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
geniex serve/props, static asset, SPA fallback, model-default, and explicit unsupported-feature behavior required by the UIWhy
The upstream UI assumes llama-server has a single loaded model, omits
modelin normal requests, and only retains assistant statistics when the stream identifies the resolved model. GenieX previously rejected the empty model and omitted the terminal metadata the UI consumes.Separately, Go could move consecutive cgo inference calls between OS threads. The CPU backend's OpenMP worker team remained associated with the first calling thread, causing later requests to fall from approximately 17 tokens/s to 2-3 tokens/s. A persistent locked inference thread keeps those calls on the same OS thread.
Impact
Users can point
geniex serve --webui-dirat a genuine upstream llama.cpp UI distribution and run text chat through the embedded GenieX llama_cpp plugin without startingllama-serveror a proxy. The UI receives aggregate prefill/decode statistics, Gemma reasoning content, and a resolved model ID.ttft_msis also exposed in the timing payload for API consumers.Unsupported llama-server administration features such as
/slotsand/toolsreturn HTTP 403 rather than being simulated.Validation
bazelisk test //cli/server/... --test_output=errors --spawn_strategy=local --strategy=GoTestGenTest=local --strategy=GoCompilePkg=localbazelisk build //cli/cmd/geniex:geniex --spawn_strategy=local --strategy=GoCompilePkg=localcmake --build sdk/build-native -j 2/props,/v1/models, streaming and blocking completions returned expected datafinish_reason, model ID, timings, optional usage, and[DONE]Limitations
The validated path is text chat with the IQ-9075 CPU package and a 4K context. The Web UI assets remain an external runtime input. GPU/NPU/hybrid, vision, audio, and 16K Web UI operation were not revalidated in this change. The unmodified upstream UI does not display its own TTFT badge or separate reasoning/final-answer decode rates.