flashinfer.quantization.nvfp4_4over6_from_code

flashinfer.quantization.nvfp4_4over6_from_code(code: int) → NVFP44Over6Config | None

Inverse of nvfp4_4over6_code(), for logs, repro tooling and tests.

-1 (NVFP4_4OVER6_CODE_FROM_ENV) decodes to the “argument omitted” sentinel. Mirrors resolveNVFP4Recipe in nvfp4Recipe.h, including its rejections, so a Python-side log never disagrees with the kernel that ran. Change the two together.

Raises:

ValueError – If code is neither NVFP4_4OVER6_CODE_FROM_ENV nor a value nvfp4_4over6_code() can produce.