We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beb89f6 commit 220a476Copy full SHA for 220a476
vllm/config.py
@@ -213,6 +213,8 @@ def get_hidden_size(self) -> int:
213
return self.hf_config.hidden_size
214
215
def get_head_size(self) -> int:
216
+ if hasattr(self.hf_config, "head_dim"):
217
+ return self.hf_config.head_dim
218
# FIXME(woosuk): This may not be true for all models.
219
return self.hf_config.hidden_size // self.hf_config.num_attention_heads
220
0 commit comments