MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / format_subject

Function format_subject

light-eval/src/eval_mmlu.py:56–61  ·  view source on GitHub ↗
(subject)

Source from the content-addressed store, hash-verified

54 return parser
55
56def format_subject(subject):
57 l = subject.split("_")
58 s = ""
59 for entry in l:
60 s += " " + entry
61 return s
62
63def format_example(df, idx, include_answer=True):
64 prompt = df.iloc[idx, 0]

Callers 1

generate_few_shot_promptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected