KDA: fuse qkv conv and support stride for fused_sigmoid_gating_delta_rule_update_kernel (#19506)
This commit is contained in:
@@ -217,11 +217,13 @@ class KimiLinearStateShape:
|
||||
conv_state_k_shape = (divide(proj_k_size, tp_world_size), conv_kernel_size - 1)
|
||||
temporal_state_shape = (divide(num_heads, tp_world_size), head_dim, head_dim)
|
||||
|
||||
conv_state_shape = conv_state_shape[1], conv_state_shape[0]
|
||||
conv_state_k_shape = conv_state_k_shape[1], conv_state_k_shape[0]
|
||||
conv_state_shape = (
|
||||
conv_state_shape[1],
|
||||
conv_state_shape[0] + conv_state_k_shape[0] * 2,
|
||||
)
|
||||
|
||||
return KimiLinearStateShape(
|
||||
conv=[conv_state_shape, conv_state_k_shape, conv_state_k_shape],
|
||||
conv=[conv_state_shape],
|
||||
temporal=temporal_state_shape,
|
||||
num_heads=num_heads,
|
||||
head_dim=head_dim,
|
||||
|
||||
Reference in New Issue
Block a user