Skip to content

Fix circular import for lm_eval #6572

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

Merged
merged 1 commit into from
Oct 30, 2024
Merged
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
3 changes: 1 addition & 2 deletions examples/models/llama/eval_llama_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
Tokenizer as SentencePieceTokenizer,
)
from executorch.extension.llm.tokenizer.utils import get_tokenizer
from lm_eval.api.model import LM
from lm_eval.evaluator import simple_evaluate

from .evaluate.eager_eval import EagerEvalWrapper
Expand Down Expand Up @@ -159,7 +158,7 @@ def _model_call(self, inps):
def gen_eval_wrapper(
model_name: str,
args: argparse.ArgumentParser,
) -> LM:
):
"""
Generates a wrapper interface around the provided model and tokenizer for
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can return EagerEvalWrapper instead.

the lm-evaluation-harness library.
Expand Down
Loading