Repository navigation
MXFP8 pass-through - #35
Draft
createthis wants to merge 8 commits into
Draft
createthis wants to merge 8 commits into
createthis wants to merge 8 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MXFP8 pass-through
Used ggml-org#33062 and unslothai#332 as guides.
.from_floatcurrently missing because adding it would require.vec_dot. Perhaps we can merge ggml-org#26157 and then add.from_float.Potential issues flagged by my agent
In our code, amax is calculated without checking isfinite().
OCP specifies a NaN block scale (0xFF) for either case.
OCP Microscaling Formats (MX) Specification
Agent claims this doesn't affect direct MXFP8 pass-through.
Usage
Download safetensors to
/data2/DeepSeek-V4.1-Flash-1017then:mkdir /data2/createthis/DeepSeek-V4.1-Flash-1017-MXFP8 python convert_hf_to_gguf.py /data2/DeepSeek-V4.1-Flash-1017 \ --outfile /data2/createthis/DeepSeek-V4.1-Flash-1017-MXFP8/ \ --outtype auto \ --split-max-size 50G mkdir /data2/createthis/DeepSeek-V4.1-Flash-1017-GGUF mkdir /data2/createthis/DeepSeek-V4.1-Flash-1017-GGUF/Q4_K_M ./build/bin/llama-quantize \ --keep-split \ --tensor-type '.*_(exps|chexps)\.weight=mxfp4' \ /data2/createthis/DeepSeek-V4.1-Flash-1017-MXFP8/DeepSeek-V4.1-Flash-384x206B-1017-MXFP4_MOE-00001-of-00008.gguf \ /data2/createthis/DeepSeek-V4.1-Flash-1017-GGUF/Q4_K_M/DeepSeek-V4.1-Flash-Q4_K_M.gguf \ Q4_K_M