Repository navigation
[OMNIML-2917] handle lm_head and other un-quantized modules correctly - #504
Conversation
This is change set 2 from working on OMNIML-2917. Two correlated changes: 1. when we just quantize the langauge_model submodule, correctly disable quantization of all other modules, we do not need to hard code anything 2. When we export quantized model to hf unified format, we hard code the exclusion of "lm_head". With the change set 1 where we use the full model for export config generation, we can natually exclude lm_head if it is not quantized. Therefore, remove the hard coded lm_head inclusion in the exclusion list. Signed-off-by: Shengliang Xu <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #504 +/- ##
=======================================
Coverage 74.37% 74.37%
=======================================
Files 182 182
Lines 18219 18219
=======================================
Hits 13550 13550
Misses 4669 4669 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Edwardf0t1
left a comment
There was a problem hiding this comment.
LGTM, left a few minor comments.
Also, could we also test the Nemotron-Nano-VL v2 model: https://huggingface.co/nvidia/NVIDIA-Nemotron-Nano-12B-v2-VL-BF16?
Signed-off-by: Shengliang Xu <[email protected]>
Have a successful run with the excluded modules in config: Note the |
What does this PR do?
Type of change:
Bug fix.
Overview:
This is change set 2 from working on OMNIML-2917.
Two correlated changes:
when we just quantize the langauge_model submodule, correctly disable quantization of all other modules, we do not need to hard code anything
When we export quantized model to hf unified format, we hard code the exclusion of "lm_head". With the change set 1 where we use the full model for export config generation, we can natually exclude lm_head if it is not quantized. Therefore, remove the hard coded lm_head inclusion in the exclusion list.
Testing
Correctly exported Llama 3.1 70B, Qwen3 VL MoE, Nemotron Super, Llama4 Scout