sci-misc/llama-cpp: Add webui and 0_pre9219#477
Conversation
|
Got your mail. We really want to support the webui in the I can write it up at some point today or you do it. Ping me on irc if you need help. |
|
I'm sorry for writing this here and not on IRC, my homeserver that hosts my bouncer is currently down for maintenance, and I'm not fond of spamming random IRC channels with "<> connected; <> disconnected; <> connected; ...". If I understand that above-mentioned passage from the Is the idea to do the same for tagged releases, or would that destroy reproducibility because it might pull different dependency versions for the same tagged version at different times? |
Totally fine. Just letting you know where to reach me.
No you would do that just for the -9999. Your code for the tagged releases is fine as is. You would add a new src_unpack that does the normal |
|
The sources for the web assets are contained in the main llama.cpp repo. They have a 3-pronged approach to generate the final web assets as documented in their Looking at the All that considered, I believe building the assets ourselves would probably be feasible for non-live builds, which I feel is "more the gentoo philosophy". Should we try to build the web-assets ourselves even for tagged version builds? Anyway, I'll try to quickly whip something up to get the whole "pulling npm dependencies ourselves" working, and we can then still decide whether to only do that for live builds, or for all builds. |
|
We can fetch in That all being said. Please amend the commit to only touch the tagged version. Then I'll review and one of us pushes to guru dev. And then we can work on the 9999. |
|
Dropped the modified -9999 ebuild and changed it to use |
note: Building with webui is unsupported in live ebuilds Signed-off-by: Marc Meier <marc.meier@coatl.ch>
|
Had to change it to |
|
BTW in a different branch of my fork I've created a commit that seems to work with building the webui even in live ebuilds. I have verified that it builds (and there are, as expected, npm build logs in the compile logs), but I have not tested the built package for function as I am working off my laptop at the moment which does not have the facilities to actually run llama.cpp in that commit I have also moved the linking of the pre-downloaded assets (in case of a non-9999 build) to the Should I create a separate PR for that branch after this here is pulled or just merge it in here aswell? |
note: Building with webui is unsupported in live ebuilds, as building the web assets served requires npm to pull dependencies. However, the llama.cpp devs serve prebuilt web assets for all their tagged releases, which are pulled in
SRC_URI