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
d9ef7ce7
"ssh:/git@developer.sourcefind.cn:2222/OpenDAS/vllm_cscc.git" did not exist on "5aefd6ac3169b7b56023549cfa9614274d6e15f0"
Commit
d9ef7ce7
authored
Mar 19, 2025
by
zhuwenwen
Browse files
update rocm.py
parent
9e053941
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vllm/platforms/rocm.py
vllm/platforms/rocm.py
+4
-3
No files found.
vllm/platforms/rocm.py
View file @
d9ef7ce7
...
@@ -225,8 +225,9 @@ class RocmPlatform(Platform):
...
@@ -225,8 +225,9 @@ class RocmPlatform(Platform):
device
:
Optional
[
torch
.
types
.
Device
]
=
None
device
:
Optional
[
torch
.
types
.
Device
]
=
None
)
->
float
:
)
->
float
:
torch
.
cuda
.
reset_peak_memory_stats
(
device
)
torch
.
cuda
.
reset_peak_memory_stats
(
device
)
return
torch
.
cuda
.
mem_get_info
(
device
)[
1
]
-
torch
.
cuda
.
mem_get_info
(
# return torch.cuda.mem_get_info(device)[1] - torch.cuda.mem_get_info(
device
)[
0
]
# device)[0]
return
torch
.
cuda
.
max_memory_allocated
(
device
)
@
classmethod
@
classmethod
def
get_device_communicator_cls
(
cls
)
->
str
:
def
get_device_communicator_cls
(
cls
)
->
str
:
...
...
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