Commit f78ac50
committed
fix: address review feedback on layerwise detection + header + input validation
- examples/llm_ptq/hf_ptq.py: replace dict-inspection layerwise detection
with a small recursive helper accepting ModelOptPTQRecipe directly,
handling list-form QuantizeAlgoCfgType (per coderabbitai, jenchen13).
- examples/llm_ptq/hf_ptq.py: convert recipe-type assert to explicit
if/raise TypeError so validation is not stripped under python -O
(per cjluo-nv).
- modelopt_recipes/general/ptq/nvfp4_experts_only-fp8_kv_layerwise.yaml:
bump new-file copyright header to 2026 per LICENSE_HEADER (per cjluo-nv).
Signed-off-by: realAsma <akuriparambi@nvidia.com>1 parent 1377465 commit f78ac50
2 files changed
Lines changed: 13 additions & 6 deletions
File tree
- examples/llm_ptq
- modelopt_recipes/general/ptq
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
963 | | - | |
964 | | - | |
965 | | - | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
966 | 974 | | |
967 | | - | |
968 | | - | |
| 975 | + | |
969 | 976 | | |
970 | 977 | | |
971 | 978 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments