Skip to content

Commit c5b956c

Browse files
committed
Update on "Convert args to LlmConfig"
Differential Revision: [D75263990](https://our.internmc.facebook.com/intern/diff/D75263990) [ghstack-poisoned]
2 parents 0a00549 + 556f2a1 commit c5b956c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/models/llama/config/llm_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ class LlmConfig:
470470
backend: BackendConfig = field(default_factory=BackendConfig)
471471

472472
@classmethod
473-
def from_args(args: argparse.Namespace) -> "LlmConfig": # noqa: C901
473+
def from_args(cls, args: argparse.Namespace) -> "LlmConfig": # noqa: C901
474474
"""
475475
To support legacy purposes, this function converts CLI args from
476476
argparse to an LlmConfig, which is used by the LLM export process.

0 commit comments

Comments
 (0)