mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-11-30 17:11:36 +00:00
use apply_chat_template
This commit is contained in:
parent
8237b3fda0
commit
862df48e38
@ -1064,6 +1064,7 @@
|
|||||||
"tokenizer = Qwen3Tokenizer(\n",
|
"tokenizer = Qwen3Tokenizer(\n",
|
||||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||||
" repo_id=repo_id,\n",
|
" repo_id=repo_id,\n",
|
||||||
|
" apply_chat_template=True,\n",
|
||||||
" add_generation_prompt=True,\n",
|
" add_generation_prompt=True,\n",
|
||||||
" add_thinking=True\n",
|
" add_thinking=True\n",
|
||||||
")"
|
")"
|
||||||
|
|||||||
@ -1006,6 +1006,7 @@
|
|||||||
"tokenizer = Qwen3Tokenizer(\n",
|
"tokenizer = Qwen3Tokenizer(\n",
|
||||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||||
" repo_id=repo_id,\n",
|
" repo_id=repo_id,\n",
|
||||||
|
" apply_chat_template=True,\n",
|
||||||
" add_generation_prompt=True,\n",
|
" add_generation_prompt=True,\n",
|
||||||
" add_thinking=True\n",
|
" add_thinking=True\n",
|
||||||
")"
|
")"
|
||||||
|
|||||||
@ -1060,6 +1060,7 @@
|
|||||||
"tokenizer = Qwen3Tokenizer(\n",
|
"tokenizer = Qwen3Tokenizer(\n",
|
||||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||||
" repo_id=repo_id,\n",
|
" repo_id=repo_id,\n",
|
||||||
|
" apply_chat_template=USE_REASONING_MODEL,\n",
|
||||||
" add_generation_prompt=USE_REASONING_MODEL,\n",
|
" add_generation_prompt=USE_REASONING_MODEL,\n",
|
||||||
" add_thinking=USE_REASONING_MODEL\n",
|
" add_thinking=USE_REASONING_MODEL\n",
|
||||||
")"
|
")"
|
||||||
|
|||||||
@ -1002,6 +1002,7 @@
|
|||||||
"tokenizer = Qwen3Tokenizer(\n",
|
"tokenizer = Qwen3Tokenizer(\n",
|
||||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||||
" repo_id=repo_id,\n",
|
" repo_id=repo_id,\n",
|
||||||
|
" apply_chat_template=USE_REASONING_MODEL,\n",
|
||||||
" add_generation_prompt=USE_REASONING_MODEL,\n",
|
" add_generation_prompt=USE_REASONING_MODEL,\n",
|
||||||
" add_thinking=USE_REASONING_MODEL\n",
|
" add_thinking=USE_REASONING_MODEL\n",
|
||||||
")"
|
")"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user