Explicitly set return_dict for apply_chat_template (#33372)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
@@ -148,8 +148,8 @@ class HunYuanVLProcessor(ProcessorMixin):
|
||||
assert 0
|
||||
|
||||
def apply_chat_template(self, *args, **kwargs):
|
||||
token_ids = self.tokenizer.apply_chat_template(*args, **kwargs)
|
||||
return token_ids
|
||||
kwargs["return_dict"] = False
|
||||
return self.tokenizer.apply_chat_template(*args, **kwargs)
|
||||
|
||||
def get_imgs_pos(self, doc_ids):
|
||||
doc_ids = np.array(doc_ids, dtype=np.int64)
|
||||
|
||||
@@ -213,6 +213,7 @@ class Qwen3ASRProcessor(ProcessorMixin):
|
||||
return list(_iter())
|
||||
|
||||
def apply_chat_template(self, conversations, chat_template=None, **kwargs):
|
||||
kwargs["return_dict"] = False
|
||||
return super().apply_chat_template(conversations, chat_template, **kwargs)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user