Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/llm_ptq/example_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,10 @@ def copy_custom_model_files(source_path: str, export_path: str, trust_remote_cod
# Common patterns for custom model files that need to be copied
custom_file_patterns = [
"configuration_*.py",
"modeling_*.py",
"modeling*.py",
"tokenization_*.py",
"processing_*.py",
"image_processing_*.py",
"image_processing*.py",
"feature_extraction_*.py",
"*.json",
]
Expand Down
5 changes: 5 additions & 0 deletions modelopt/torch/export/quant_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,11 @@ def postprocess_state_dict(state_dict: dict, maxbound: float, quantization: str
post_state_dict = {}

for key, value in state_dict.items():
# Skip problematic parameters for specific model architectures, e.g., Nemotron Nano VL models
if key == "vision_model.radio_model.summary_idxs":
logger.info(f"Removing problematic parameter: {key}")
continue

# Skip keys not related to quantizers
if (
"output_quantizer" not in key
Expand Down