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

Function extract_ans

light-eval/src/eval_mmlu.py:109–114  ·  view source on GitHub ↗
(ans)

Source from the content-addressed store, hash-verified

107 return model
108
109def extract_ans(ans):
110 ans = ans.strip()
111 if ans != '':
112 return ans[-1]
113 else:
114 return None
115
116def batch_data(prompts, batch_size=1):
117 batch_data = []

Callers 1

run_evalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected