Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -71,7 +71,6 @@ class DeepseekV32Renderer(RendererLike):
|
||||
content_format="string",
|
||||
)
|
||||
|
||||
kwargs["return_dict"] = False
|
||||
prompt_raw = tokenizer.apply_chat_template(
|
||||
conversation=conversation,
|
||||
messages=messages,
|
||||
@@ -98,7 +97,6 @@ class DeepseekV32Renderer(RendererLike):
|
||||
content_format="string",
|
||||
)
|
||||
|
||||
kwargs["return_dict"] = False
|
||||
prompt_raw = tokenizer.apply_chat_template(
|
||||
conversation=conversation,
|
||||
messages=messages,
|
||||
|
||||
@@ -71,7 +71,6 @@ class Grok2Renderer(RendererLike):
|
||||
content_format="string",
|
||||
)
|
||||
|
||||
kwargs["return_dict"] = False
|
||||
prompt_raw = tokenizer.apply_chat_template(
|
||||
conversation=conversation,
|
||||
messages=messages,
|
||||
@@ -98,7 +97,6 @@ class Grok2Renderer(RendererLike):
|
||||
content_format="string",
|
||||
)
|
||||
|
||||
kwargs["return_dict"] = False
|
||||
prompt_raw = tokenizer.apply_chat_template(
|
||||
conversation=conversation,
|
||||
messages=messages,
|
||||
|
||||
@@ -466,7 +466,6 @@ def safe_apply_chat_template(
|
||||
chat_template=chat_template,
|
||||
chat_template_kwargs=kwargs,
|
||||
)
|
||||
resolved_kwargs["return_dict"] = False
|
||||
|
||||
try:
|
||||
return tokenizer.apply_chat_template(
|
||||
|
||||
@@ -66,7 +66,7 @@ class ChatParams:
|
||||
"""The arguments to pass to `tokenizer.apply_chat_template`."""
|
||||
return merge_kwargs(
|
||||
self.chat_template_kwargs,
|
||||
dict(chat_template=self.chat_template),
|
||||
dict(chat_template=self.chat_template, return_dict=False),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user