llama.cpp/examples
Jhen-Jie Hong 29674ab4e8
server : display token probabilities in the UI (#2489)
* server : add n_probs param in chat UI

* server : keep message data array & show in probabilites component

* server : add simple popover component

* server : fix completion_probabilities undefined if not set n_probs

* server : implement Probabilites

* server : handle bytes

* server : make n_probs max to 10 for easy scroll

* server : adjust for dark/light mode

* server : Fix regenerated prompt

* server : update index.html.hpp

* server : convert prob to percentage + show original value as div title

* server : fix Probabilites not used if included empty str

* server : skip byte pair in display probabilites

* server : remove array check of completion_probabilities in messages

* skip empty array or byte pair (> 1) in Probabilites

* generate index.html.hpp

* fix incorrect prob convert if the str is already a known token

* use final response to show probabilities on stop

* revert unnecessary change

* correct probabilites usage

* remove unused function

* always send partial response for get correct probs of last to_send

* fix typo

* fix content of format_final_response

* refactor probs render & make pColor transparent if not found

* send empty string when got stop_pos in partial

* avoid unnecessary empty data event & send rest of partial tokens on stop

* use <br /> for new line

* skip -1 tok in loop to avoid send '' on end

* trim last new lines on stop

* revert unnecessary change
2023-08-25 18:32:45 +08:00
..
baby-llama Add LLAMA_DEFAULT_RMS_EPS so we can change the default (#2384) 2023-07-25 18:35:53 +03:00
benchmark cmake : install targets (#2256) 2023-07-19 10:01:11 +03:00
convert-llama2c-to-ggml minor : fix trailing whitespace 2023-08-23 22:37:39 +03:00
embd-input chmod : make scripts executable (#2675) 2023-08-23 17:29:09 +03:00
embedding embedding : evaluate prompt in batches (#2713) 2023-08-22 16:03:12 +02:00
gguf gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
gptneox-wip gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
jeopardy chmod : make scripts executable (#2675) 2023-08-23 17:29:09 +03:00
llama-bench ROCm Port (#1087) 2023-08-25 12:09:42 +03:00
main Fix for main example getting stuck when -n -2 and --interactive (#2767) 2023-08-24 10:11:13 -06:00
metal gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
perplexity llm : add Falcon support (#2717) 2023-08-23 23:08:04 +03:00
quantize Fix values shown in the quantize tool help (#2735) 2023-08-23 12:57:12 +03:00
quantize-stats gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
save-load-state gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
server server : display token probabilities in the UI (#2489) 2023-08-25 18:32:45 +08:00
simple gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
train-text-from-scratch ggml : sync latest (SAM + SD operators, CUDA alibi) (#2709) 2023-08-22 14:22:08 +03:00
alpaca.sh alpaca.sh : update model file name (#2074) 2023-07-06 19:17:50 +03:00
chat-13B.bat Create chat-13B.bat (#592) 2023-03-29 20:21:09 +03:00
chat-13B.sh examples : read chat prompts from a template file (#1196) 2023-05-03 20:58:11 +03:00
chat-persistent.sh chat-persistent.sh : use bracket expressions in grep (#1564) 2023-05-24 09:16:22 +03:00
chat-vicuna.sh examples : add chat-vicuna.sh (#1854) 2023-06-15 21:05:53 +03:00
chat.sh If n_predict == -1, generate forever 2023-03-25 21:51:41 +02:00
CMakeLists.txt gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
gpt4all.sh examples : add -n to alpaca and gpt4all scripts (#706) 2023-04-13 16:03:39 +03:00
json-schema-to-grammar.py chmod : make scripts executable (#2675) 2023-08-23 17:29:09 +03:00
llama.vim vim : streaming and more (#2495) 2023-08-08 14:44:48 +03:00
llama2-13b.sh gitignore : changes for Poetry users + chat examples (#2284) 2023-07-21 13:53:27 +03:00
llama2.sh gitignore : changes for Poetry users + chat examples (#2284) 2023-07-21 13:53:27 +03:00
llm.vim llm.vim : multiline autocompletion, get rid of "^@" (#2543) 2023-08-08 15:07:02 +03:00
make-ggml.py chmod : make scripts executable (#2675) 2023-08-23 17:29:09 +03:00
Miku.sh MIKU MAYHEM: Upgrading the Default Model for Maximum Fun 🎉 (#2287) 2023-07-21 11:13:18 +03:00
reason-act.sh chmod : make scripts executable (#2675) 2023-08-23 17:29:09 +03:00
server-llama2-13B.sh chmod : make scripts executable (#2675) 2023-08-23 17:29:09 +03:00