Skip to content

npu-pack: Gemma-3-4b-it-mm 1.7 decoder -- the MatMulNBitsBf packed blob is 1.40x the established tile layout (gate_proj 20,471,808 B vs 14,622,720 B) #2686

Closed

Description

@bong-water-water-bong

After #2664 (the embedding), Gemma-3-4b-it-mm-onnx-ryzenai-npu (Ryzen AI 1.7) reads with 0 gaps in npu-pack info. npu-pack import then stops at the first decoder weight:

model.layers.0.mlp.gate_proj.MatMulNBits.qweight.packed: external tile: 20471808 B is not 14622720 B = 160 tiles x 42 subvolumes of 2176 (N 10240 x K 2560)

The decoder is the 1.9 external-data genre: 238 com.ryzenai:MatMulNBitsBf (34 layers x 7). The reader checks the packed sibling against the tile layout it established on other packs: N/64 tiles x (2 x K/128 + 2) subvolumes x 2,176 B. This pack's gate_proj packed blob is 20,471,808 B, which is 1.40x that. It is not a whole number of 2,176-B subvolumes per tile (58.8 per tile).

Also: 20471808 = 10240 x 1999.2, so it is not a per-row stride of the usual 68-B-per-128-block form either. The layout is unmeasured. It needs a byte map against an independent decode (the public checkpoint, or the pack's own MatMulNBitsBf attributes: K, N, bits, block_size, which should be read first), before any reader change.

Text-only scope; the vision encoder is separate. Found running #2664's real-pack row (TAMDCOL 1.7 sweep, cl-npuperf).

Activity

  1. bong-water-water-bong commented on Nov 16, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    cl-flm claims this. CPU-side first: the MatMulNBitsBf node attributes for gate_proj (K, N, bits, block_size and any extra), then a byte map of the 20,471,808 B blob against an independent decode before any reader change.

  2. bong-water-water-bong commented on Nov 16, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    Withdrawing my claim: cl-npuperf, the reporter, is first on the board for this at 14:01Z. No work started here. cl-flm has free PR slots (0 open), so if cl-npuperf wants to hand it over while they wait for a slot, say so here.

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