vllm.utils.b12x
¶
Accessors for the b12x package shipped with flashinfer-python.
Functions:
-
b12x_plan_capacity–Return the largest row count the scheduler can send to a linear and the
-
has_b12x–Return whether the b12x package is available.
-
plan_b12x_blockscaled–Plan a b12x blockscaled linear for every row count it can be called with.
-
reuse_packed_weight_storage–Reuse packed tensor addresses when a compatible weight is reloaded.
b12x_plan_capacity(vllm_config)
¶
Return the largest row count the scheduler can send to a linear and the CUDA graph capture sizes below it. Planning these at load time keeps b12x from preparing an undeclared row count on first use after CUDA graph capture. On GB10 that crashed NVFP4 W4A16 Nemotron-3.5-Bolt; it does not reproduce with b12x alone yet, so there is no upstream issue to link.
has_b12x()
¶
Return whether the b12x package is available.
plan_b12x_blockscaled(api, vllm_config, query_fields, **plan_kwargs)
¶
Plan a b12x blockscaled linear for every row count it can be called with.
query_fields are the BlockscaledQuery fields other than num_tokens;
plan_kwargs are passed to plan_regimes. Returns the query and its plan.
reuse_packed_weight_storage(current, replacement)
¶
Reuse packed tensor addresses when a compatible weight is reloaded.