[Misc] Fix metrics, weight update lock, request logging (#2543)
This commit is contained in:
@@ -124,8 +124,12 @@ class ModelConfig:
|
||||
self.num_hidden_layers = self.hf_text_config.num_hidden_layers
|
||||
self.vocab_size = self.hf_text_config.vocab_size
|
||||
|
||||
# Veirfy quantization
|
||||
self._verify_quantization()
|
||||
|
||||
# Multimodel attrs
|
||||
self.image_token_id = getattr(self.hf_config, "image_token_id", None)
|
||||
|
||||
# adapted from https://github.com/vllm-project/vllm/blob/main/vllm/config.py#L289
|
||||
def get_total_num_kv_heads(self) -> int:
|
||||
"""Returns the total number of KV heads."""
|
||||
|
||||
Reference in New Issue
Block a user