[Bugfix] Adopt ChunkGatedDeltaRule for Qwen3.5 (#34198)
Signed-off-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
@@ -99,6 +99,7 @@ from .interfaces import (
|
|||||||
)
|
)
|
||||||
from .qwen2_moe import Qwen2MoeMLP as Qwen3NextMLP
|
from .qwen2_moe import Qwen2MoeMLP as Qwen3NextMLP
|
||||||
from .qwen3_next import (
|
from .qwen3_next import (
|
||||||
|
ChunkGatedDeltaRule,
|
||||||
Qwen3NextAttention,
|
Qwen3NextAttention,
|
||||||
Qwen3NextDecoderLayer,
|
Qwen3NextDecoderLayer,
|
||||||
Qwen3NextGatedDeltaNet,
|
Qwen3NextGatedDeltaNet,
|
||||||
@@ -268,6 +269,8 @@ class Qwen3_5GatedDeltaNet(Qwen3NextGatedDeltaNet):
|
|||||||
prefix=f"{prefix}.out_proj",
|
prefix=f"{prefix}.out_proj",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
self.chunk_gated_delta_rule = ChunkGatedDeltaRule()
|
||||||
|
|
||||||
compilation_config = get_current_vllm_config().compilation_config
|
compilation_config = get_current_vllm_config().compilation_config
|
||||||
if prefix in compilation_config.static_forward_context:
|
if prefix in compilation_config.static_forward_context:
|
||||||
raise ValueError(f"Duplicate layer name: {prefix}")
|
raise ValueError(f"Duplicate layer name: {prefix}")
|
||||||
|
|||||||
Reference in New Issue
Block a user