Skip to content

fix: add missing LlmConfig import and parameter in export_llama_lib.py #11167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/models/llama/export_llama_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

from executorch.devtools.etrecord import generate_etrecord as generate_etrecord_func

from executorch.examples.models.llama.config.llm_config import LlmConfig
from executorch.examples.models.llama.config.llm_config_utils import (
convert_args_to_llm_config,
)
Expand Down Expand Up @@ -1198,6 +1199,7 @@ def _load_llama_model(
use_qnn: bool = False,
export_only: bool = False,
args,
llm_config: Optional[LlmConfig] = None,
) -> "LLMEdgeManager":
"""
A helper util that builds a Llama2 model. It returns a LLMEdgeManager that
Expand Down
Loading