Skip to content

Commit 7a4e7d3

Browse files
HDCharleskylesayrs
andauthored
Update src/llmcompressor/utils/pytorch/module.py
Co-authored-by: Kyle Sayers <[email protected]> Signed-off-by: HDCharles <[email protected]>
1 parent c782627 commit 7a4e7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llmcompressor/utils/pytorch/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def get_layer_by_name(layer_name: str, module: Module) -> Module:
372372
return attrgetter(layer_name)(module)
373373

374374

375-
def get_module_to_name_dict(model: Module) -> dict[Module:str]:
375+
def get_module_to_name_dict(model: Module) -> dict[Module, str]:
376376
module_to_name = {}
377377
for name, module in model.named_modules():
378378
if module in module_to_name:

0 commit comments

Comments
 (0)