Co-authored-by: Satyam Kumar <satyamk@linkedin.com>
This commit is contained in:
co-authored by
Satyam Kumar
parent
c11b34d599
commit
9fc3e8aac7
@@ -205,6 +205,14 @@ class ModelConfig:
|
||||
self.hf_config, "image_token_id", None
|
||||
) or getattr(self.hf_config, "image_token_index", None)
|
||||
|
||||
# matryoshka embeddings
|
||||
self.matryoshka_dimensions = getattr(
|
||||
self.hf_config, "matryoshka_dimensions", None
|
||||
)
|
||||
self.is_matryoshka = self.matryoshka_dimensions or getattr(
|
||||
self.hf_config, "is_matryoshka", False
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def from_server_args(
|
||||
server_args: ServerArgs,
|
||||
|
||||
Reference in New Issue
Block a user