revert some stuff

This commit is contained in:
Awni Hannun
2025-04-23 14:18:43 -07:00
parent 3992ca5554
commit d5443aa13a
3 changed files with 11 additions and 23 deletions

View File

@@ -136,11 +136,6 @@ class Attention(nn.Module):
self.n_heads = n_heads = args.num_attention_heads
self.n_kv_heads = n_kv_heads = args.num_key_value_heads
if n_heads is None or n_kv_heads is None:
raise ValueError(
"num_attention_heads and num_key_value_heads must not be None"
)
self.repeats = n_heads // n_kv_heads
head_dim = args.hidden_size // n_heads