Skip to content

Conversation

@ggerganov
Copy link
Member

ref #8947 (comment)

The set_excludes({...}) method can be used to exclude a command-line argument from specific examples. For example, the --prompt argument is used in most examples, but it is not used by llama-server and it can be confusing since it does not print any error. With this change, it now prints an error:

llama-server --prompt "test" -m model.gguf
error: invalid argument: --prompt

@ggerganov ggerganov requested a review from ngxson as a code owner January 8, 2025 09:28
@ggerganov ggerganov merged commit a3c1232 into master Jan 8, 2025
1 check passed
@ggerganov ggerganov deleted the gg/arg-excludes branch January 8, 2025 10:55
tinglou pushed a commit to tinglou/llama.cpp that referenced this pull request Feb 13, 2025
)

* arg : option to exclude arguments from specific examples

ggml-ci

* readme : remove old args [no ci]
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 2025
)

* arg : option to exclude arguments from specific examples

ggml-ci

* readme : remove old args [no ci]
mglambda pushed a commit to mglambda/llama.cpp that referenced this pull request Mar 8, 2025
)

* arg : option to exclude arguments from specific examples

ggml-ci

* readme : remove old args [no ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants