support llava video (#426)
This commit is contained in:
@@ -10,12 +10,16 @@ class ModelConfig:
|
||||
trust_remote_code: bool = True,
|
||||
revision: Optional[str] = None,
|
||||
context_length: Optional[int] = None,
|
||||
model_overide_args: Optional[dict] = None,
|
||||
) -> None:
|
||||
self.path = path
|
||||
self.trust_remote_code = trust_remote_code
|
||||
self.revision = revision
|
||||
self.hf_config = get_config(self.path, trust_remote_code, revision)
|
||||
|
||||
if model_overide_args is not None:
|
||||
self.hf_config.update(model_overide_args)
|
||||
|
||||
if context_length is not None:
|
||||
self.context_len = context_length
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user