mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 08:25:01 +08:00
[Bugfix] Fix chat utils tests (#18139)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
parent
c8ea982d9b
commit
d066e52013
@ -845,10 +845,10 @@ def test_resolve_hf_chat_template(sample_json_schema, model, use_tools):
|
|||||||
|
|
||||||
# Test detecting the tokenizer's chat_template
|
# Test detecting the tokenizer's chat_template
|
||||||
chat_template = resolve_hf_chat_template(
|
chat_template = resolve_hf_chat_template(
|
||||||
model_config,
|
|
||||||
tokenizer,
|
tokenizer,
|
||||||
chat_template=None,
|
chat_template=None,
|
||||||
tools=tools,
|
tools=tools,
|
||||||
|
model_config=model_config,
|
||||||
)
|
)
|
||||||
assert isinstance(chat_template, str)
|
assert isinstance(chat_template, str)
|
||||||
|
|
||||||
@ -890,10 +890,10 @@ def test_resolve_content_format_hf_defined(model, expected_format):
|
|||||||
|
|
||||||
# Test detecting the tokenizer's chat_template
|
# Test detecting the tokenizer's chat_template
|
||||||
chat_template = resolve_hf_chat_template(
|
chat_template = resolve_hf_chat_template(
|
||||||
model_config,
|
|
||||||
tokenizer,
|
tokenizer,
|
||||||
chat_template=None,
|
chat_template=None,
|
||||||
tools=None,
|
tools=None,
|
||||||
|
model_config=model_config,
|
||||||
)
|
)
|
||||||
assert isinstance(chat_template, str)
|
assert isinstance(chat_template, str)
|
||||||
|
|
||||||
@ -949,10 +949,10 @@ def test_resolve_content_format_fallbacks(model, expected_format):
|
|||||||
|
|
||||||
# Test detecting the tokenizer's chat_template
|
# Test detecting the tokenizer's chat_template
|
||||||
chat_template = resolve_hf_chat_template(
|
chat_template = resolve_hf_chat_template(
|
||||||
model_config,
|
|
||||||
tokenizer,
|
tokenizer,
|
||||||
chat_template=None,
|
chat_template=None,
|
||||||
tools=None,
|
tools=None,
|
||||||
|
model_config=model_config,
|
||||||
)
|
)
|
||||||
assert isinstance(chat_template, str)
|
assert isinstance(chat_template, str)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user