Handle empty prepend/append tags in PromptTemplate #1565
Labels
better engineering
Tasks which help improve eng productivity e.g. building tools, cleaning up code, writing docs
community help wanted
We would love the community's help completing this issue
We currently assume the prepend/append tags in the prompt template are a string or an empty string. We should add more flexibility here to ignore the tag if its empty or None:
torchtune/torchtune/data/_prompt_templates.py
Line 111 in 01619ce
The text was updated successfully, but these errors were encountered: