weirdly converted chat template

#1
by chelick - opened

TemplateSyntaxError                       Traceback (most recent call last)

/tmp/ipykernel_1890/594772594.py in <cell line: 0>()
      3 from llama_cpp import Llama
      4 
----> 5 llm = Llama.from_pretrained(
      6         repo_id="dphn/Dolphin-X1-Trinity-Nano-GGUF",
      7         filename="dolphin-x1-nano-MXFP4_MOE.gguf",

5 frames

/usr/local/lib/python3.12/dist-packages/jinja2/environment.py in handle_exception(self, source)
    940         from .debug import rewrite_traceback_stack
    941 
--> 942         raise rewrite_traceback_stack(source=source)
    943 
    944     def join_path(self, template: str, parent: str) -> str:

<unknown> in template()

TemplateSyntaxError: Encountered unknown tag 'generation'. Jinja was looking for the following tags: 'elif' or 'else' or 'endif'. The innermost block that needs to be closed is 'if'.```

Sign up or log in to comment