Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
20dcbd21
Commit
20dcbd21
authored
Jun 16, 2025
by
myhloli
Browse files
fix: include server_url in model key for backend model retrieval in vlm_analyze.py
parent
013ddc02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mineru/backend/vlm/vlm_analyze.py
mineru/backend/vlm/vlm_analyze.py
+1
-1
No files found.
mineru/backend/vlm/vlm_analyze.py
View file @
20dcbd21
...
...
@@ -27,7 +27,7 @@ class ModelSingleton:
model_path
:
str
|
None
,
server_url
:
str
|
None
,
)
->
BasePredictor
:
key
=
(
backend
,)
key
=
(
backend
,
server_url
)
if
key
not
in
self
.
_models
:
if
backend
in
[
'transformers'
,
'sglang-engine'
]
and
not
model_path
:
model_path
=
auto_download_and_get_model_root_path
(
"/"
,
"vlm"
)
...
...
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