mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-06 08:54:33 +08:00
Move position biases to attention module
This commit is contained in:
@@ -13,10 +13,6 @@ SHARED_REPLACEMENT_PATTERNS = [
|
||||
(".layer.1.layer_norm.", ".ln2."),
|
||||
(".layer.2.layer_norm.", ".ln3."),
|
||||
(".final_layer_norm.", ".ln."),
|
||||
(
|
||||
".layers.0.layer.0.SelfAttention.relative_attention_bias.",
|
||||
".position_bias.relative_attention_bias."
|
||||
),
|
||||
]
|
||||
|
||||
ENCODER_REPLACEMENT_PATTERNS = [
|
||||
|
Reference in New Issue
Block a user