2023-03-10 18:40:58 +00:00
|
|
|
*.o
|
|
|
|
*.a
|
2023-06-28 15:53:37 +00:00
|
|
|
*.so
|
2023-04-19 17:10:08 +00:00
|
|
|
.DS_Store
|
|
|
|
.build/
|
2023-03-10 18:40:58 +00:00
|
|
|
.cache/
|
2023-04-19 17:10:08 +00:00
|
|
|
.direnv/
|
|
|
|
.envrc
|
|
|
|
.swiftpm
|
|
|
|
.venv
|
2023-06-06 06:55:10 +00:00
|
|
|
.clang-tidy
|
2023-03-10 18:40:58 +00:00
|
|
|
.vs/
|
|
|
|
.vscode/
|
|
|
|
|
|
|
|
build/
|
|
|
|
build-em/
|
|
|
|
build-debug/
|
|
|
|
build-release/
|
|
|
|
build-static/
|
2023-04-26 20:14:13 +00:00
|
|
|
build-cublas/
|
2023-05-13 08:23:15 +00:00
|
|
|
build-opencl/
|
2023-06-04 20:34:30 +00:00
|
|
|
build-metal/
|
2023-07-10 15:49:56 +00:00
|
|
|
build-mpi/
|
2023-03-10 18:40:58 +00:00
|
|
|
build-no-accel/
|
|
|
|
build-sanitize-addr/
|
|
|
|
build-sanitize-thread/
|
2023-06-16 06:58:11 +00:00
|
|
|
out/
|
2023-03-10 18:40:58 +00:00
|
|
|
|
2023-03-11 10:26:46 +00:00
|
|
|
models/*
|
2023-05-06 21:01:47 +00:00
|
|
|
*.bin
|
2023-03-11 10:26:46 +00:00
|
|
|
|
2023-03-10 18:40:58 +00:00
|
|
|
/main
|
|
|
|
/quantize
|
2023-04-07 22:09:18 +00:00
|
|
|
/quantize-stats
|
2023-03-17 22:03:48 +00:00
|
|
|
/result
|
2023-03-25 18:26:40 +00:00
|
|
|
/perplexity
|
2023-03-28 15:34:35 +00:00
|
|
|
/embedding
|
2023-06-15 17:42:48 +00:00
|
|
|
/train-text-from-scratch
|
2023-06-17 16:30:22 +00:00
|
|
|
/simple
|
2023-04-30 12:32:37 +00:00
|
|
|
/benchmark-matmult
|
2023-04-18 20:00:08 +00:00
|
|
|
/vdot
|
Server Example Refactor and Improvements (#1570)
A major rewrite for the server example.
Note that if you have built something on the previous server API, it will probably be incompatible.
Check out the examples for how a typical chat app could work.
This took a lot of effort, there are 24 PR's closed in the submitter's repo alone, over 160 commits and a lot of comments and testing.
Summary of the changes:
- adds missing generation parameters: tfs_z, typical_p, repeat_last_n, repeat_penalty, presence_penalty, frequency_penalty, mirostat, penalize_nl, seed, ignore_eos
- applies missing top k sampler
- removes interactive mode/terminal-like behavior, removes exclude parameter
- moves threads and batch size to server command-line parameters
- adds LoRA loading and matches command line parameters with main example
- fixes stopping on EOS token and with the specified token amount with n_predict
- adds server timeouts, host, and port settings
- adds expanded generation complete response; adds generation settings, stop reason, prompt truncated, model used, and final text
- sets defaults for unspecified parameters between requests
- removes /next-token endpoint and as_loop parameter, adds stream parameter and server-sent events for streaming
- adds CORS headers to responses
- adds request logging, exception printing and optional verbose logging
- adds better stopping words handling when matching multiple tokens and while streaming, or when it finishes on a partial stop string
- adds printing an error when it can't bind to the host/port specified
- fixes multi-byte character handling and replaces invalid UTF-8 characters on responses
- prints timing and build info on startup
- adds logit bias to request parameters
- removes embedding mode
- updates documentation; adds streaming Node.js and Bash examples
- fixes code formatting
- sets server threads to 1 since the current global state doesn't work well with simultaneous requests
- adds truncation of the input prompt and better context reset
- removes token limit from the input prompt
- significantly simplified the logic and removed a lot of variables
---------
Co-authored-by: anon998 <131767832+anon998@users.noreply.github.com>
Co-authored-by: Henri Vasserman <henv@hot.ee>
Co-authored-by: Felix Hellmann <privat@cirk2.de>
Co-authored-by: Johannes Gäßler <johannesg@5d6.de>
Co-authored-by: Lesaun Harvey <Lesaun@gmail.com>
2023-06-17 11:53:04 +00:00
|
|
|
/server
|
2023-03-29 20:51:37 +00:00
|
|
|
/Pipfile
|
2023-06-28 15:53:37 +00:00
|
|
|
/embd-input-test
|
2023-06-06 07:18:03 +00:00
|
|
|
/libllama.so
|
2023-05-01 16:23:47 +00:00
|
|
|
build-info.h
|
2023-03-10 18:40:58 +00:00
|
|
|
arm_neon.h
|
|
|
|
compile_commands.json
|
2023-06-16 06:58:11 +00:00
|
|
|
CMakeSettings.json
|
2023-03-17 22:03:48 +00:00
|
|
|
|
2023-03-28 16:39:01 +00:00
|
|
|
__pycache__
|
2023-04-05 15:06:02 +00:00
|
|
|
|
|
|
|
zig-out/
|
|
|
|
zig-cache/
|
2023-04-19 17:10:08 +00:00
|
|
|
|
|
|
|
ppl-*.txt
|
2023-05-08 14:41:54 +00:00
|
|
|
qnt-*.txt
|
2023-05-11 21:23:08 +00:00
|
|
|
perf-*.txt
|
2023-04-28 16:13:33 +00:00
|
|
|
|
|
|
|
examples/jeopardy/results.txt
|