From bfb4da1d254eb04861d6649b6da875bddd91e160 Mon Sep 17 00:00:00 2001 From: NanoCode012 Date: Sat, 11 Apr 2026 00:00:26 +0700 Subject: [PATCH] fix: document jinja2 file path support (#3588) [skip ci] --- docs/dataset-formats/conversation.qmd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/dataset-formats/conversation.qmd b/docs/dataset-formats/conversation.qmd index 34fde45fb..9d018dc49 100644 --- a/docs/dataset-formats/conversation.qmd +++ b/docs/dataset-formats/conversation.qmd @@ -108,6 +108,14 @@ datasets: type: chat_template ``` +::: {.callout-tip} +`chat_template_jinja` also accepts a file path to a `.jinja2` file instead of an inline string: + +```yaml +chat_template_jinja: ./path/to/my_template.jinja2 +``` +::: + ::: {.callout-important} Please make sure that your `tokenizer.eos_token` is same as EOS (End-of-Sequence) token in template. Otherwise, set `eos_token` under `special_tokens: `. :::