mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2026-04-10 12:33:42 +00:00
use apply_chat_template
This commit is contained in:
@@ -1064,6 +1064,7 @@
|
||||
"tokenizer = Qwen3Tokenizer(\n",
|
||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||
" repo_id=repo_id,\n",
|
||||
" apply_chat_template=True,\n",
|
||||
" add_generation_prompt=True,\n",
|
||||
" add_thinking=True\n",
|
||||
")"
|
||||
|
||||
@@ -1006,6 +1006,7 @@
|
||||
"tokenizer = Qwen3Tokenizer(\n",
|
||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||
" repo_id=repo_id,\n",
|
||||
" apply_chat_template=True,\n",
|
||||
" add_generation_prompt=True,\n",
|
||||
" add_thinking=True\n",
|
||||
")"
|
||||
|
||||
@@ -1060,6 +1060,7 @@
|
||||
"tokenizer = Qwen3Tokenizer(\n",
|
||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||
" repo_id=repo_id,\n",
|
||||
" apply_chat_template=USE_REASONING_MODEL,\n",
|
||||
" add_generation_prompt=USE_REASONING_MODEL,\n",
|
||||
" add_thinking=USE_REASONING_MODEL\n",
|
||||
")"
|
||||
|
||||
@@ -1002,6 +1002,7 @@
|
||||
"tokenizer = Qwen3Tokenizer(\n",
|
||||
" tokenizer_file_path=tokenizer_file_path,\n",
|
||||
" repo_id=repo_id,\n",
|
||||
" apply_chat_template=USE_REASONING_MODEL,\n",
|
||||
" add_generation_prompt=USE_REASONING_MODEL,\n",
|
||||
" add_thinking=USE_REASONING_MODEL\n",
|
||||
")"
|
||||
|
||||
Reference in New Issue
Block a user