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

Function remove_boxed

light-eval/src/eval_math.py:81–88  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

79 return model
80
81def remove_boxed(s):
82 left = "\\boxed{"
83 try:
84 assert s[:len(left)] == left
85 assert s[-1] == "}"
86 return s[len(left):-1]
87 except:
88 return None
89
90def extract_ans(completion, answer):
91

Callers 1

run_inferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected