IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python function

is_fp4_kv_cache_format

is_fp4_kv_cache_format()​

max.pipelines.kv_cache.is_fp4_kv_cache_format(kv_cache_format)

source

Returns whether kv_cache_format names the NVFP4 KV cache format.

Parameters:

kv_cache_format (str | None) – A kv_cache_format or indexer_kv_cache_format value, or None.

Returns:

True for float4_e2m1fn and its alias float4_e2m1.

Return type:

bool