Skip to content

Commit 52455bc

Browse files
committed
Update on "Use llm_config instead of args in export_llama functions"
Differential Revision: [D75484927](https://our.internmc.facebook.com/intern/diff/D75484927) [ghstack-poisoned]
2 parents 679fe9e + 70bb2d5 commit 52455bc

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)