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