llama_cpp_for_radxa_dragon_.../examples
Justine Tunney 00c6390793
main : don't print special tokens with --grammar (#6923)
* main : don't print special tokens with --grammar

The CLI interface was recently changed to print special control tokens
like the </s> stop message one. This token shouldn't be printed if the
grammar flag was passed, unless the grammar specifies it, because that
breaks shell-scriptability.

* main: use seperate stream for control characters

* main: use dprintf and add --ctrl-token-no-out and --ctrl-token-fd-out

* main: dprintf isn't part of the IEEE POSIX standard. Just use write().

* main: remove --ctrl-token-fd-out in favor for fcntl() based detection

* common.cpp: accidentally removed --interactive-first

* main: only merge stdout and control token if not in conversation or grammar mode

* main: rejig control token descriptor handling

* main: must check pipe status on very top of program

* main: renamed --no-special from  --ctrl-token-no-out and other refactoring

* main: refactor ctrl_token_no_out --> no_special

* llama: rename llama_token_is_control_token() to llama_token_is_control()

* main: remove special token file descriptor feature (#5)

---------

Co-authored-by: Brian <mofosyne@gmail.com>
2024-05-25 19:04:03 +10:00
..
baby-llama
batched common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
batched-bench ggml : add Flash Attention (#5021) 2024-04-30 12:16:08 +03:00
batched.swift
beam-search
benchmark
convert-llama2c-to-ggml TypoFix (#7162) 2024-05-09 10:16:45 +02:00
embedding common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
eval-callback common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
export-lora
finetune ggml : remove ggml_flash_attn and ggml_flash_ff (#7463) 2024-05-23 10:00:44 +03:00
gbnf-validator
gguf
gguf-split gguf-split: add --no-tensor-first-split (#7072) 2024-05-04 18:56:22 +02:00
gritlm
imatrix common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
infill common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
jeopardy
llama-bench common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
llama.android android : module (#7502) 2024-05-25 11:11:33 +03:00
llama.swiftui
llava common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
lookahead common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
lookup common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
main main : don't print special tokens with --grammar (#6923) 2024-05-25 19:04:03 +10:00
main-cmake-pkg build(cmake): simplify instructions (cmake -B build && cmake --build build ...) (#6964) 2024-04-29 17:02:45 +01:00
parallel common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
passkey
perplexity common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
quantize common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
quantize-stats Improve usability of --model-url & related flags (#6930) 2024-04-30 00:52:50 +01:00
retrieval common : normalize naming style (#7462) 2024-05-22 20:04:20 +03:00
rpc rpc : set SO_REUSEADDR for the server socket (#7320) 2024-05-17 17:25:44 +03:00
save-load-state
server SimpleChat: a simple and dumb web front end for testing /chat/completions and /completions end points and try chat (#7350) 2024-05-23 03:53:21 +10:00
simple
speculative
sycl add build shared lib in win release package (#7438) 2024-05-24 10:06:56 +08:00
tokenize Make tokenize CLI tool have nicer command line arguments. (#6188) 2024-05-25 11:14:42 +10:00
train-text-from-scratch ggml : remove ggml_flash_attn and ggml_flash_ff (#7463) 2024-05-23 10:00:44 +03:00
alpaca.sh
base-translate.sh
chat-13B.bat
chat-13B.sh
chat-persistent.sh
chat-vicuna.sh
chat.sh
CMakeLists.txt ggml : add RPC backend (#6829) 2024-05-14 14:27:19 +03:00
gpt4all.sh
json-schema-pydantic-example.py
json_schema_to_grammar.py
llama.vim
llama2-13b.sh
llama2.sh
llm.vim
make-ggml.py
Miku.sh
pydantic-models-to-grammar-examples.py
pydantic_models_to_grammar.py
reason-act.sh
regex-to-grammar.py
server-embd.py
server-llama2-13B.sh
ts-type-to-grammar.sh