Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arg : option to exclude arguments from specific examples #11136

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

ggerganov
Copy link
Owner

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
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.

2 participants