MCPcopy
hub / github.com/Tele-AI/Telechat / score_MMLU.py

File score_MMLU.py

evaluation/score_MMLU.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import pandas as pd
2import os,torch,re,jsonlines
3from tqdm import tqdm
4from transformers import AutoModelForCausalLM, AutoTokenizer, GenerationConfig

Callers

nothing calls this directly

Calls 7

get_few_shot_promptFunction · 0.85
get_input_dataFunction · 0.85
get_capital_answerFunction · 0.85
from_pretrainedMethod · 0.80
evalMethod · 0.80
chatMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected