Skip to content

Fix nvfp4/mxfp8 formats silently becoming fp8 in --layer-config - #56

Open
rockerBOO wants to merge 1 commit into
silveroxides:mainfrom
rockerBOO:fix/layer-config-nvfp4-mxfp8
Open

Fix nvfp4/mxfp8 formats silently becoming fp8 in --layer-config#56
rockerBOO wants to merge 1 commit into
silveroxides:mainfrom
rockerBOO:fix/layer-config-nvfp4-mxfp8

Conversation

@rockerBOO

Copy link
Copy Markdown

nvfp4 specifically for me was defaulting silently back to fp8 when using the --layer-config for setting the format. This fixes it to be the correct format but new formats will still fall through to fp8. Might be better as an error so it doesn't get all the way through quantizing before noticing it is not correct.

The fmt -> layer_format narrowing switch in convert_to_fp8_scaled only
handled float8*/int8* prefixes and fell back to "fp8" for anything else,
so --layer-config entries with "format": "nvfp4" or "mxfp8" quantized as
plain FP8 with no warning. Extracted the mapping into
resolve_layer_config_format() and added the missing branches.

AI Assisted
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.

1 participant