Skip to main content

repack_nvfp4_split

Function repack_nvfp4_split 

Source
pub fn repack_nvfp4_split(bytes: &[u8], out_f: usize) -> Vec<u8> 
Expand description

Host-side split-plane repack of NVFP4 GGUF block bytes (A6). Input: out_f rows of in_f/64 36-byte blocks ([4B UE4M3 scales][32B packed e2m1]). Output (same length): quant plane (out_f x nsb64 x 32B) followed by scale plane (out_f x nsb64 x 4B). Pure byte permutation.