Skip to content

Commit

Permalink
fix mmlu evaluator (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecovlee committed Apr 16, 2024
1 parent c716825 commit 0368667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmlu_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def do_evaluate(model_name: str,
for subject, subcategory in mmlu_subcategories.items():
logging.info(f"Performing MMLU/{subject} Benchmark")
results = evaluate(subject, tokenizer, model,
adapter_names, batch_size, model.max_seq_len_)
adapter_names, batch_size, model.config_.max_seq_len_)
category = None
for category_name, subcategory_names in mmlu_categories.items():
if subcategory[-1] in subcategory_names:
Expand Down

0 comments on commit 0368667

Please sign in to comment.