flashinfer.sdsa.token_sparse.compact_nvfp4_bitmap_numel¶
- flashinfer.sdsa.token_sparse.compact_nvfp4_bitmap_numel(groups: int, max_keys: int) int¶
int32 elements of
compact_nvfp4_kv_cache()’sbitmap: a bit per key and a key end per group.- Parameters:
groups (int) – Groups of the launch.
max_keys (int) – The launch’s
max_keys.
- Returns:
The workspace size in int32 elements.
- Return type:
int