MCPcopy Create free account

hub / github.com/BytedTsinghua-SIA/DAPO / functions

Functions21 in github.com/BytedTsinghua-SIA/DAPO

↓ 3 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. Args: final_answer: The answer string to normalize Return
eval/math_dapo.py:142
↓ 2 callersFunctionlast_boxed_only_string
Extract the last LaTeX boxed expression from a string. Args: string: Input string containing LaTeX code Returns:
eval/math_dapo.py:21
↓ 2 callersFunctionremove_boxed
Remove the LaTeX boxed command from a string. Args: s: String with format "\\boxed{content}" Returns: The conten
eval/math_dapo.py:51
↓ 1 callersFunction_tsk
(coro)
eval/eval_aime24.py:32
↓ 1 callersFunctionchat
(messages, temperature, top_p, max_tokens, model)
eval/eval_aime24.py:19
↓ 1 callersFunctioncompute_score
Compute the reward score for a solution. Args: solution_str: The solution string ground_truth: The ground truth answer
eval/math_dapo.py:262
↓ 1 callersFunctioneval
(tasks)
eval/eval_aime24.py:29
↓ 1 callersMethodget_serving_models
(self)
eval/llm.py:64
↓ 1 callersFunctionis_correct_minerva
Check if the solution is correct according to Minerva criteria. Args: solution_str: The solution string to check gt: The grou
eval/math_dapo.py:183
↓ 1 callersFunctionis_correct_strict_box
Check if the prediction is correct using strict boxed answer criteria. Args: pred: The prediction string gt: The ground truth
eval/math_dapo.py:212
↓ 1 callersFunctionmain
(args)
eval/eval_aime24.py:46
↓ 1 callersFunctionparse_vllm_args
Parses vLLM args based on CLI inputs. Currently uses argparse because vLLM doesn't expose Python models for all of the config options we want
eval/llm.py:114
↓ 1 callersFunctionverify
Verify if the solution is correct. Args: solution_str: The solution string to verify answer: The ground truth answer
eval/math_dapo.py:239
Method__enter__
(self)
eval/math_dapo.py:75
Method__exit__
(self, type, value, traceback)
eval/math_dapo.py:79
Method__init__
( self, engine_args: AsyncEngineArgs, response_role: str, lora_modules: Option
eval/llm.py:36
Method__init__
(self, seconds=1, error_message="Timeout")
eval/math_dapo.py:68
Functionbuild_app
Builds the Serve app based on CLI arguments. See https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html#command-line-arguments-for-
eval/llm.py:133
Methodcreate_chat_completion
OpenAI-compatible HTTP endpoint. API reference: - https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html
eval/llm.py:80
Methodhandle_timeout
(self, signum, frame)
eval/math_dapo.py:72
Functionverify
(arg)
eval/eval_aime24.py:42