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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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