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. MirrorsresolveNVFP4Recipein nvfp4Recipe.h, including its rejections, so a Python-side log never disagrees with the kernel that ran. Change the two together.- Raises:
ValueError – If
codeis neitherNVFP4_4OVER6_CODE_FROM_ENVnor a valuenvfp4_4over6_code()can produce.