v1.0
This commit is contained in:
13
utils/mem_constants.py
Normal file
13
utils/mem_constants.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
MB_bytes = 1_000_000
|
||||
"""The number of bytes in one megabyte (MB)."""
|
||||
|
||||
MiB_bytes = 1 << 20
|
||||
"""The number of bytes in one mebibyte (MiB)."""
|
||||
|
||||
GB_bytes = 1_000_000_000
|
||||
"""The number of bytes in one gigabyte (GB)."""
|
||||
|
||||
GiB_bytes = 1 << 30
|
||||
"""The number of bytes in one gibibyte (GiB)."""
|
||||
Reference in New Issue
Block a user