Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BytedTsinghua-SIA/DAPO
/ functions
Functions
21 in github.com/BytedTsinghua-SIA/DAPO
⨍
Functions
21
◇
Types & classes
2
↳
Endpoints
1
↓ 3 callers
Function
normalize_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 callers
Function
last_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 callers
Function
remove_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 callers
Function
_tsk
(coro)
eval/eval_aime24.py:32
↓ 1 callers
Function
chat
(messages, temperature, top_p, max_tokens, model)
eval/eval_aime24.py:19
↓ 1 callers
Function
compute_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 callers
Function
eval
(tasks)
eval/eval_aime24.py:29
↓ 1 callers
Method
get_serving_models
(self)
eval/llm.py:64
↓ 1 callers
Function
is_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 callers
Function
is_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 callers
Function
main
(args)
eval/eval_aime24.py:46
↓ 1 callers
Function
parse_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 callers
Function
verify
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
Function
build_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
Method
create_chat_completion
OpenAI-compatible HTTP endpoint. API reference: - https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html
eval/llm.py:80
Method
handle_timeout
(self, signum, frame)
eval/math_dapo.py:72
Function
verify
(arg)
eval/eval_aime24.py:42