[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
@@ -56,5 +56,8 @@ class ModelArchitectureConfig:
|
||||
is_mm_prefix_lm: bool
|
||||
"""Whether the model uses image bidirectional attention."""
|
||||
|
||||
rswa_window: int | None
|
||||
"""Reference Sliding Window Attention window size (None disables R-SWA)."""
|
||||
|
||||
derived_max_model_len_and_key: tuple[float, str | None]
|
||||
"""Derived maximum model length and key from the hf config."""
|
||||
|
||||
Reference in New Issue
Block a user