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

Add chat template examples #16

Open
davidrpugh opened this issue Oct 16, 2024 · 0 comments
Open

Add chat template examples #16

davidrpugh opened this issue Oct 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@davidrpugh
Copy link
Member

llama-cli supports a number of chat templates that help organize conversations. Need a good usage example for chat templates. Here is the relevant bit from the docs.

--chat-template JINJA_TEMPLATE: This option sets a custom jinja chat template. It accepts a string, not a file name. Default: template taken from model's metadata. Llama.cpp only supports some pre-defined templates. These include the following

  • llama2
  • llama3
  • gemma
  • monarch
  • chatml
  • orion
  • vicuna
  • vicuna-orca
  • deepseek
  • command-r
  • zephyr

When --in-prefix or --in-suffix options are enabled the chat template ( --chat-template ) is disabled.

@davidrpugh davidrpugh added the enhancement New feature or request label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant