Skip to content

Commit

Permalink
Added comment explaining
Browse files Browse the repository at this point in the history
  • Loading branch information
shaltielshmid committed Jul 29, 2024
1 parent d26a576 commit 68230b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lighteval/models/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def create_model_config( # noqa: C901

return BaseModelConfig(**args_dict)

# This option isn't provided for use via the CLI but rather for programmatic use when constructing the config
# in code, so that the config won't need to be saved to a temp file when calling lighteval.
if hasattr(args, "model_config") and args.model_config:
config = args.model_config["model"]
else:
Expand Down

0 comments on commit 68230b3

Please sign in to comment.