Skip to content

Add support for WebNNs int4 packing in .safetensors file #18

Description

@mtavenrath

.safetensors does not support a native int4 type. The strategy is to pack uint8 / uint32 and add quantization metadata to describe the actual packing. Investigate if there is an already existing quantization description used by other exporters which matches what .webnn requires and use it or invent a new one especially for webnn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions