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
29e7a948
Commit
29e7a948
authored
Jan 27, 2025
by
myhloli
Browse files
perf(model): adjust batch ratio for different GPU memory sizes
parent
d1af4566
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic_pdf/model/doc_analyze_by_custom_model.py
magic_pdf/model/doc_analyze_by_custom_model.py
+2
-2
No files found.
magic_pdf/model/doc_analyze_by_custom_model.py
View file @
29e7a948
...
...
@@ -182,9 +182,9 @@ def doc_analyze(
batch_ratio
=
2
elif
10
<=
gpu_memory
<=
12
:
batch_ratio
=
4
elif
12
<
gpu_memory
<=
16
:
elif
12
<
gpu_memory
<=
20
:
batch_ratio
=
8
elif
16
<
gpu_memory
<=
32
:
elif
20
<
gpu_memory
<=
32
:
batch_ratio
=
16
else
:
batch_ratio
=
32
...
...
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