Skip to content

llama: name the pre-rename PQ2_0 ftype instead of reporting unknown - #134

Merged
khosravipasha merged 1 commit into
prism-v7from
pq2-legacy-ftype-alias
Aug 28, 2026
Merged

llama: name the pre-rename PQ2_0 ftype instead of reporting unknown#134
khosravipasha merged 1 commit into
prism-v7from
pq2-legacy-ftype-alias

Conversation

@bri-prism

Copy link
Copy Markdown

Cosmetic, deferred from #121. Naming only.

What

ggufs packed before the Q2_0_G128 -> PQ2_0 rename carry the old ftype value 142. The format did not change, only the enum did, so those files load and compute correctly but report:

print_info: file type   = unknown, may not work

which reads as a broken file. With this they report:

print_info: file type   = PQ2_0 - 2.13 bpw (group 128, legacy ftype)

No load path, no quantizer path, and no behaviour change. The new constant exists so the name switch has a case for the value.

The confusing part

142 is also GGML_TYPE_PQ2_0, the tensor type id, which is current and correct. Two different enums with adjacent values. Only the ftype was renumbered, to 141, and only the ftype is affected here.

Verified

On a published gguf that carries ftype 142, same file both ways:

build file type =
current prism-v7 unknown, may not work
with this change PQ2_0 - 2.13 bpw (group 128, legacy ftype)

Output is identical either way, which is the point: these files were always fine, they just did not say so.

ggufs packed before the Q2_0_G128 -> PQ2_0 rename carry the old ftype value 142.
The format did not change, only the enum did, so these files load and compute
correctly but print

  print_info: file type   = unknown, may not work

which reads as a broken file. With this they print

  print_info: file type   = PQ2_0 - 2.13 bpw (group 128, legacy ftype)

Naming only. No load path, no quantizer path, and no behaviour changes; the new
constant exists so the switch has a case for the value.

Worth noting the collision that makes this confusing: 142 is also
GGML_TYPE_PQ2_0, the tensor type id, which is current and correct. Only the
ftype was renumbered, to 141.

Verified on a published gguf that carries ftype 142: reports unknown on the
current branch, reports PQ2_0 with this change, same output either way.

@khosravipasha khosravipasha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Should remove the extra one later the legacy one we can repack.

@khosravipasha
khosravipasha merged commit 3c12dbd into prism-v7 Aug 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants