Skip to content

Commit

Permalink
polish type assert
Browse files Browse the repository at this point in the history
Signed-off-by: youkaichao <[email protected]>
  • Loading branch information
youkaichao committed Jan 22, 2025
1 parent daf3169 commit 23ee3ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vllm/device_allocator/cumem.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,9 @@ def use_memory_pool(self, tag: Optional[str] = None):
"""
if tag is None:
tag = CuMemAllocator.default_tag
else:
assert isinstance(tag, str)

assert isinstance(tag, str)

old_tag = self.current_tag
self.current_tag = tag
with use_memory_pool_with_allocator(self.python_malloc_callback,
Expand Down

0 comments on commit 23ee3ad

Please sign in to comment.