[Model] Support Unlimited OCR (#46564)
Signed-off-by: Tianyu Guo <guoty9@mail2.sysu.edu.cn> Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn> Co-authored-by: Isotr0py <mozf@mail2.sysu.edu.cn> Co-authored-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
co-authored by
Isotr0py
Roger Wang
parent
a65f93fb2e
commit
c6741b2ad4
@@ -1251,6 +1251,10 @@ class ModelConfig:
|
||||
def is_mm_prefix_lm(self) -> bool:
|
||||
return self.model_arch_config.is_mm_prefix_lm
|
||||
|
||||
@property
|
||||
def rswa_window(self) -> int | None:
|
||||
return self.model_arch_config.rswa_window
|
||||
|
||||
def get_head_size(self) -> int:
|
||||
return self.model_arch_config.head_size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user