Skip to content

Commit 4e9883b

Browse files
committed
Update
[ghstack-poisoned]
1 parent c9f1431 commit 4e9883b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/models/llama2/eval_llama_lib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ def eval_llama(
295295
with torch.no_grad():
296296
eval_results = simple_evaluate(
297297
model=eval_wrapper,
298+
model_args="trust_remote_code=True",
298299
tasks=args.tasks, # pyre-ignore: Undefined attribute [16]: `argparse.ArgumentParser` has no attribute `tasks`
299300
num_fewshot=args.num_fewshot, # pyre-ignore: Undefined attribute [16]: `argparse.ArgumentParser` has no attribute `num_fewshot`
300301
limit=args.limit, # pyre-ignore: Undefined attribute [16]: `argparse.ArgumentParser` has no attribute `limit`

0 commit comments

Comments
 (0)