Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
233b26ab
Unverified
Commit
233b26ab
authored
Feb 06, 2026
by
zhang-prog
Committed by
GitHub
Feb 06, 2026
Browse files
[PaddleOCR-VL] Add BC for transformers 5.0 config (#33976)
Signed-off-by:
zhangyue66
<
zhangyue66@baidu.com
>
parent
791a94be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
vllm/model_executor/models/paddleocr_vl.py
vllm/model_executor/models/paddleocr_vl.py
+7
-0
No files found.
vllm/model_executor/models/paddleocr_vl.py
View file @
233b26ab
...
...
@@ -994,6 +994,13 @@ class PaddleOCRVLForConditionalGeneration(nn.Module, SupportsMultiModal, Support
def
__init__
(
self
,
*
,
vllm_config
:
VllmConfig
,
prefix
:
str
=
""
):
super
().
__init__
()
config
=
vllm_config
.
model_config
.
hf_config
if
hasattr
(
config
,
"text_config"
):
text_config
=
config
.
text_config
.
to_dict
()
unsafe_keys
=
[
"model_type"
,
"architectures"
,
"tie_word_embeddings"
]
for
key
in
unsafe_keys
:
text_config
.
pop
(
key
,
None
)
config
.
update
(
text_config
)
quant_config
=
vllm_config
.
quant_config
self
.
config
=
config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment