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
7539bbc6
Unverified
Commit
7539bbc6
authored
Feb 11, 2025
by
Gregory Shtrasberg
Committed by
GitHub
Feb 11, 2025
Browse files
[ROCm] Using a more precise memory profiling (#12624)
Signed-off-by:
Gregory Shtrasberg
<
Gregory.Shtrasberg@amd.com
>
parent
9cf47594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/platforms/rocm.py
vllm/platforms/rocm.py
+2
-1
No files found.
vllm/platforms/rocm.py
View file @
7539bbc6
...
...
@@ -169,4 +169,5 @@ class RocmPlatform(Platform):
device
:
Optional
[
torch
.
types
.
Device
]
=
None
)
->
float
:
torch
.
cuda
.
reset_peak_memory_stats
(
device
)
return
torch
.
cuda
.
max_memory_allocated
(
device
)
return
torch
.
cuda
.
mem_get_info
(
device
)[
1
]
-
torch
.
cuda
.
mem_get_info
(
device
)[
0
]
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