mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-20 17:57:10 +08:00
Support all interleaved layer types (#28485)
Signed-off-by: Yong Hoon Shin <yhshin@meta.com>
This commit is contained in:
parent
5c9ad138d5
commit
11ac9ddd03
@ -472,8 +472,7 @@ def is_interleaved(config: PretrainedConfig) -> bool:
|
|||||||
"""
|
"""
|
||||||
text_config = config.get_text_config()
|
text_config = config.get_text_config()
|
||||||
if layer_types := getattr(text_config, "layer_types", None):
|
if layer_types := getattr(text_config, "layer_types", None):
|
||||||
interleaved_types = {"full_attention", "sliding_attention"}
|
return len(set(layer_types)) > 1
|
||||||
return interleaved_types.issubset(layer_types)
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user