Update model_patcher.py

This commit is contained in:
Chenlei Hu 2025-01-06 10:57:49 -05:00 committed by GitHub
parent 3d0d386736
commit d24e99bcbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -407,8 +407,7 @@ class ModelPatcher:
object patches.
Args:
obj: The object to get the attribute from
attr (str): The attribute path using dot notation (e.g. "model.layer.weight")
name (str): The attribute path using dot notation (e.g. "model.layer.weight")
Returns:
The value of the requested attribute