Skip to main content

Module nvfp4

Module nvfp4 

Source
Expand description

Provider-native NVFP4 matrix products.

TOSA has no FP4 tensor type. Encoding packed weights as an integer TOSA graph would hide the operation from provider admission and explode it into scalar nodes, so Vulkan owns a small artifact format for the exact storage contract used by NVFP4 checkpoints. This is an artifact-format extension, not a virtio-accel wire change.

Structs§

Nvfp4Artifact
A validated F32 × NVFP4 projection artifact.
Nvfp4MoeArtifact
Two native NVFP4 expert projections with a device-local squared-ReLU intermediate. Each expert occupies one externally bound cache-slot span; the four offsets identify its up/down packed and block-scale planes.

Enums§

Nvfp4Activation
Fused projection epilogue. Its integer representation is part of artifact v1.

Constants§

VULKAN_NVFP4_FORMAT
VULKAN_NVFP4_TARGET