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
OpenDAS
text-generation-inference
Commits
811a9381
Unverified
Commit
811a9381
authored
Jun 21, 2024
by
drbh
Committed by
GitHub
Jun 21, 2024
Browse files
feat: sort cuda graphs in descending order (#2104)
parent
197c47a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
server/text_generation_server/models/globals.py
server/text_generation_server/models/globals.py
+7
-0
No files found.
server/text_generation_server/models/globals.py
View file @
811a9381
...
...
@@ -15,6 +15,13 @@ if cuda_graphs is not None:
else
:
cuda_graphs
=
None
# sorting the cuda graphs in descending order helps reduce the
# memory impact and results in less memory usage
if
cuda_graphs
is
not
None
:
cuda_graphs
.
sort
(
reverse
=
True
)
CUDA_GRAPHS
=
cuda_graphs
# This is overridden at model loading.
...
...
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