ds4 icon indicating copy to clipboard operation
ds4 copied to clipboard

fix: support MXFP4 in mixed GGUF splicer

Open Berserk-hub150 opened this issue 3 months ago • 1 comments

Summary

Add GGML tensor type 39 to the mixed GGUF splicer's quantization-size table, allowing it to parse MXFP4 tensors.

Fixes #693

Validation

  • py -m py_compile gguf-tools/mixed/splice_mixed_expert_layers_gguf.py
  • Verified that 32 MXFP4 elements occupy 17 bytes.
  • Verified that 64 MXFP4 elements occupy 34 bytes.
  • Verified that type 39 is displayed as MXFP4.

Environment

  • Windows
  • Python 3.12

A full dry run with the published GGUF files was not performed locally because of their size.

Berserk-hub150 avatar Aug 05 '26 12:08 Berserk-hub150

@antirez, would you prefer this one-line type-table update to remain as-is, or should I also add a small regression test covering MXFP4 tensor-size calculation?

Berserk-hub150 avatar Aug 05 '26 19:08 Berserk-hub150