mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-11 14:24:35 +08:00
remove unused num_key_value_heads
This commit is contained in:
@@ -41,7 +41,6 @@ class Attention(nn.Module):
|
|||||||
def __init__(self, args: ModelArgs):
|
def __init__(self, args: ModelArgs):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.num_attention_heads: int = args.num_attention_heads
|
self.num_attention_heads: int = args.num_attention_heads
|
||||||
self.num_key_value_heads: int = args.num_key_value_heads
|
|
||||||
self.hidden_size = args.hidden_size
|
self.hidden_size = args.hidden_size
|
||||||
self.head_dim = args.hidden_size // args.num_attention_heads
|
self.head_dim = args.hidden_size // args.num_attention_heads
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user