Skip to content

Commit f9c49af

Browse files
haozha111copybara-github
authored andcommitted
Remove kv_shared from ModelConfig, and pass it as layer input.
PiperOrigin-RevId: 764898438
1 parent c61a5a8 commit f9c49af

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ai_edge_torch/generative/layers/model_config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ class AttentionConfig:
134134
value_norm_config: NormalizationConfig = dataclasses.field(
135135
default_factory=NormalizationConfig
136136
)
137-
# Whether the KV cache is shared with the previous attention block.
138-
kv_shared: bool = False
139137
relative_attention_num_buckets: int = 0
140138
relative_attention_max_distance: int = 0
141139
# Softcap on the output logits.

0 commit comments

Comments
 (0)