Repository navigation
Conversation
Add a fast path to scripts/ui-assets.cmake that skips HF download, gzip and embed work when the generated ui.cpp/ui.h, asset tree, gzip tree and cache stamp are unchanged. Assisted-by: pi:llama.cpp/DeepSeek-V4-Flash-Vision-Exp
|
A scenario that would still trigger the slow path:
A simple fix would be to stamp on the checksum and check it upfront. A release made between your builds will still trigger the slow path, even if the UI didn't change, simply because the UI is not a reproducible build so the checksum will differ. |
|
The main use case that I am targeting is running chained commands such as I had generated an earlier version that was timestamping the UI assets (similar to the suggestion) and the UI cache included a timestamp fingerprint, but the logic was too complicated for almost no benefit. So I decided to simplify to the current version. I feel the UI build/provisioning is quite complicated at this point and probably it needs to be reworked from scratch. This is just a stopgap until this happens. |
|
I think we can use a content fingerprint without |
|
Superseded by #28802 |
|
Superseded by #28802 |

Overview
Add a fast path to the UI asset provisioning script. When the generated
ui.cpp/ui.h, asset tree, gzip tree, and cache stamp are unchanged, skip HF download, gzip compression, and asset embedding entirely. Also fix the cache stamp so the requested version is tracked instead of only the fallbacklatestversion.Additional information
Follow-up to the incremental build overhead discussion in #28445 (comment).
Warm no-change
llama-serverbuilds now take about 1s instead of about 5s, with the UI provisioning script itself reduced to about 0.01s.Cache invalidation is intentional and simple: delete
build/tools/ui/.ui-stampto force regeneration, or bumpUI_CACHE_VERSIONwhen cache logic changes.Requirements