Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -54,6 +54,7 @@ def release_device_memory_under_pressure(device: torch.device) -> bool:
|
||||
|
||||
Returns:
|
||||
True if memory was released.
|
||||
|
||||
"""
|
||||
if device.type != "cuda" or not current_platform.is_integrated_gpu(device.index):
|
||||
return False
|
||||
@@ -230,8 +231,7 @@ def memory_profiling(
|
||||
baseline_snapshot: MemorySnapshot,
|
||||
weights_memory: int = 0,
|
||||
) -> Generator[MemoryProfilingResult, None, None]:
|
||||
"""
|
||||
Memory profiling context manager.
|
||||
"""Memory profiling context manager.
|
||||
|
||||
baseline_snapshot: the memory snapshot before the current vLLM instance.
|
||||
weights_memory: memory used by PyTorch when loading the model weights.
|
||||
|
||||
Reference in New Issue
Block a user