mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5095] [Other] nvfp4_verify_gguf: check every PLE table type the engine reads #5306
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5306
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5095
Author: @Tsury
Created: 11/3/2026
Status: 🔄 Open
Base:
main← Head:fix-nvfp4-verify-ple-formats📝 Commits (1)
bfe8362nvfp4_verify_gguf: check every PLE table type the engine reads📊 Changes
2 files changed (+106 additions, -7 deletions)
View changed files
📝
tools/nvfp4_verify_gguf.py(+25 -7)➕
tools/test_nvfp4_verify_gguf_ple.py(+81 -0)📄 Description
Problem and result
On v0.2.10 (
ffa80d73),tools/nvfp4_verify_gguf.py --ple-gguf ple-fp8.ggufreports a problem for every FP8 PLE table:The rule is stale.
src/kernels/ngram.cpp's format table also reads Q4_0, Q5_0, Q5_1, Q8_0, BF16 and the FP8 table thattools/ple_fp8_pack.pywrites (I8 withstrata.ple.format = f8_e4m3). The NVFP4 packs ship that FP8 table.After this change,
check_pledecodes each of those table types. The FP8 table is decoded with itsstrata.ple.scaleand gives cosine 1.0 against the checkpoint. A different table is still refused. An I8 table with anotherstrata.ple.format(NVFP4 x16) is refused with a message that names the format, as before.Validation
On
ffa80d73+ this change, Linux, Python 3.14, gguf-py from the llama.cpp commit setup pins:python -m unittest tools.test_nvfp4_verify_gguf_ple(new, 3 tests: an FP8 table and a Q8_0 table pass, a different table is refused). Without the change the two pass cases fail with the message above.ple-fp8.gguf(d0xin Swift-1.5 NVFP4-FP8PLE) givesf8_e4m3and scale 0.00019931793. Its rows matched the checkpoint's FP8 shards byte for byte in a separate check.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.