mem_constants.py 526 Bytes
Newer Older
1
2
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
4
5
6
7
8
KB_bytes = 1_000
"""The number of bytes in one kilobyte (KB)."""

KiB_bytes = 1 << 10
"""The number of bytes in one kibibyte (KiB)."""

9
10
11
12
13
14
15
16
17
18
19
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)."""