main
py 19 lines 526 Bytes
Raw
1 # SPDX-License-Identifier: Apache-2.0
2 # SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3 KB_bytes = 1_000
4 """The number of bytes in one kilobyte (KB)."""
5
6 KiB_bytes = 1 << 10
7 """The number of bytes in one kibibyte (KiB)."""
8
9 MB_bytes = 1_000_000
10 """The number of bytes in one megabyte (MB)."""
11
12 MiB_bytes = 1 << 20
13 """The number of bytes in one mebibyte (MiB)."""
14
15 GB_bytes = 1_000_000_000
16 """The number of bytes in one gigabyte (GB)."""
17
18 GiB_bytes = 1 << 30
19 """The number of bytes in one gibibyte (GiB)."""