mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-28 04:17:03 +08:00
Remove Qwen Omni workaround that's no longer necessary (#21057)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
parent
a0f8a79646
commit
a931b4cdcf
@ -733,13 +733,6 @@ def get_hf_text_config(config: PretrainedConfig):
|
|||||||
"""Get the "sub" config relevant to llm for multi modal models.
|
"""Get the "sub" config relevant to llm for multi modal models.
|
||||||
No op for pure text models.
|
No op for pure text models.
|
||||||
"""
|
"""
|
||||||
# This block should be unnecessary after https://github.com/huggingface/transformers/pull/37517
|
|
||||||
if hasattr(config, "thinker_config"):
|
|
||||||
# TODO(suyang.fy): Refactor code.
|
|
||||||
# For Qwen2.5-Omni, change hf_text_config to
|
|
||||||
# thinker_config.text_config.
|
|
||||||
return config.thinker_config.text_config
|
|
||||||
|
|
||||||
text_config = config.get_text_config()
|
text_config = config.get_text_config()
|
||||||
|
|
||||||
if text_config is not config:
|
if text_config is not config:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user