We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a00549 + 556f2a1 commit c5b956cCopy full SHA for c5b956c
examples/models/llama/config/llm_config.py
@@ -470,7 +470,7 @@ class LlmConfig:
470
backend: BackendConfig = field(default_factory=BackendConfig)
471
472
@classmethod
473
- def from_args(args: argparse.Namespace) -> "LlmConfig": # noqa: C901
+ def from_args(cls, args: argparse.Namespace) -> "LlmConfig": # noqa: C901
474
"""
475
To support legacy purposes, this function converts CLI args from
476
argparse to an LlmConfig, which is used by the LLM export process.
0 commit comments