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

llama : allow overrides for tokenizer flags #8614

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

ggerganov
Copy link
Owner

ref #8584 (comment)

The following GGUF keys can now be overrided:

  • tokenizer.ggml.add_space_prefix
  • tokenizer.ggml.remove_extra_whitespaces

Example:

./llama-cli \
    -m models/phi-3-mini-128k-instruct/ggml-model-f16.gguf \
    -p "<|system|>\nBe concise\!<|end|>\n<|user|>\nWho are you?<|end|>\n<|assistant|>\n" \
    --verbose-prompt -sp -co -s 0 -c 4096 \
    --override-kv tokenizer.ggml.add_space_prefix=bool:false 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant