mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Shorter diff.
This commit is contained in:
parent
ab62312d8c
commit
32cc60f329
@ -120,7 +120,7 @@ class MistralAttention(torch.nn.Module):
|
||||
if hasattr(config, "head_dim"):
|
||||
self.head_size = config.head_dim
|
||||
else:
|
||||
self.head_size = hidden_size // num_attention_heads
|
||||
self.head_size = self.hidden_size // self.num_heads
|
||||
|
||||
self.rotary_emb = PositionRotaryEmbedding.static(
|
||||
config=config,
|
||||
|
Loading…
Reference in New Issue
Block a user