File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/compressed_tensors/utils Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -235,11 +235,11 @@ def get_nested_weight_mappings(
235
235
for key , file_location in weight_mappings .items ():
236
236
matched = False
237
237
for param_name in params_to_nest :
238
- dense_param = match_param_name (key , param_name )
239
- if dense_param :
240
- if dense_param not in nested_weight_mappings :
241
- nested_weight_mappings [dense_param ] = {}
242
- nested_weight_mappings [dense_param ][param_name ] = file_location
238
+ module_path = match_param_name (key , param_name )
239
+ if module_path :
240
+ if module_path not in nested_weight_mappings :
241
+ nested_weight_mappings [module_path ] = {}
242
+ nested_weight_mappings [module_path ][param_name ] = file_location
243
243
matched = True
244
244
if return_unmatched_params and not matched :
245
245
unmatched_params [key ] = file_location
You can’t perform that action at this time.
0 commit comments