

Simple webchat for server by tobi · Pull Request #1998 · ggerganov/llama.cpp · G...
source link: https://github.com/ggerganov/llama.cpp/pull/1998
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

I put together a simple web-chat that demonstrates how to use the SSE(ish) streaming in the server example. I also went ahead and served it from the root url, to make the server a bit more approachable.
I tried to match the spirit of llama.cpp and used minimalistic js dependencies and went with the ozempic css style of ggml.ai.
Initially I went for no-js dependencies but gave up and used a few minimal that i'm importing from js cdns instead of adding them here. Let me know if you agree with this approach. I needed microsoft's fetch-event-source for using event-source over POST (super disappointed that browsers don't support that, actually) and preact+htm for keeping my sanity with all this state,. The upshot is that everything is in one small html file. Speaking of- there is probably a better (and less fragile) way to include the server.html in the cpp binary, but it's been 25 years since I worked with cpp tooling.
Recommend
-
34
请回答1998
-
63
有过波折,但未被超越
-
54
README.md kbd-audio Description This is a collection of command-line and GUI tools for capturing and analyzing audio data. The most interestin...
-
37
README.md imtui ImTui is an immediate mode text-based user interface library. Supports 256 ANSI colors and mouse/keyboard input.
-
23
ggwave Tiny data-over-sound library. Click on the images below to hear what it sounds like: Details This library allows you to communicate small amounts of data between air-gapped devices using sound. It implem...
-
15
README.md Tra...
-
5
Siarhei Tsikhanenka April 12, 2022 3 minute read ...
-
9
Simple LLaMA Finetuner Simple LLaMA Finetuner is a beginner-friendly interface designed to facilitate...
-
13
Conversation Collaborator This...
-
4
Summary 🟥 - benchmark data missing 🟨 - benchmark data partial ✅ - benchmark data available PP means "prompt processing" (bs = 512), TG means "t...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK