vllm.utils.math_utils ¶
Math utility functions for vLLM.
Functions:
-
cdiv–Ceiling division.
-
largest_power_of_2_divisor–Return the largest power-of-2 that divides n (isolate lowest set bit).
-
next_power_of_2–The next power of 2 (inclusive)
-
round_down–Round down x to the nearest multiple of y.
-
round_up–Round up x to the nearest multiple of y.