Rename: --hooks to --forward-hooks (#13994)

This commit is contained in:
Liangsheng Yin
2025-11-26 22:26:28 +08:00
committed by GitHub
parent eff6a07c8f
commit 6c190cbda0
6 changed files with 29 additions and 29 deletions
+4 -4
View File
@@ -588,7 +588,7 @@ class ServerArgs:
mm_enable_dp_encoder: bool = False
# For forward hooks
hooks: Optional[List[dict[str, Any]]] = None
forward_hooks: Optional[List[dict[str, Any]]] = None
def __post_init__(self):
"""
@@ -3870,10 +3870,10 @@ class ServerArgs:
# For registering hooks
parser.add_argument(
"--hooks",
"--forward-hooks",
type=json_list_type,
default=None,
help="The hooks to be attached.",
default=ServerArgs.forward_hooks,
help="JSON-formatted forward hook specifications to attach to the model.",
)
@classmethod