mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-03 06:07:02 +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()
|
||||
if layer_types := getattr(text_config, "layer_types", None):
|
||||
interleaved_types = {"full_attention", "sliding_attention"}
|
||||
return interleaved_types.issubset(layer_types)
|
||||
return len(set(layer_types)) > 1
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user