train_direct: prepend user turn so Qwen chat template accepts it

This commit is contained in:
ProofOfConcept 2026-04-19 00:06:23 -04:00
parent 8c59f46505
commit ce58a3507f

View file

@ -86,7 +86,10 @@ def main() -> None:
def apply_template(text: str) -> str:
return tokenizer.apply_chat_template(
[{"role": "assistant", "content": text}],
[
{"role": "user", "content": "How do you feel right now?"},
{"role": "assistant", "content": text},
],
tokenize=False,
)