MCPcopy Create free account

hub / github.com/MARIO-Math-Reasoning/Super_MARIO / functions

Functions137 in github.com/MARIO-Math-Reasoning/Super_MARIO

↓ 5 callersMethodcreate_prompt
( self, )
mcts_math/agents/react.py:180
↓ 5 callersMethodupdate_recursive
(self, value: float, start_node: Type[BaseNode])
mcts_math/nodes/mcts_node.py:41
↓ 5 callersMethodvisit_count
(self)
mcts_math/nodes/mcts_node.py:28
↓ 4 callersMethodeval_final_answer
(self, node: Type[MCTSNode])
mcts_math/agents/mcts.py:186
↓ 4 callersMethodgenerate
(self)
mcts_math/agents/mcts.py:56
↓ 4 callersMethodhas_children
(self)
mcts_math/nodes/base_node.py:33
↓ 4 callersFunctionremove_single_dollar
(s)
mcts_math/agents/utils.py:161
↓ 4 callersMethodsearch
(self)
mcts_math/agents/mcts.py:60
↓ 3 callersFunctionChoiceEnum
return the Enum class used to enforce list of choices
mcts_math/config.py:35
↓ 3 callersMethodcollect_partial_solution
(self, node: Type[BaseNode])
mcts_math/agents/tree.py:112
↓ 3 callersMethodshould_generate_next
(self)
mcts_math/agents/react.py:95
↓ 3 callersFunctiontruncate_string
(text, max_length=500, is_evalf=True)
mcts_math/tools/python_tool.py:21
↓ 3 callersMethodupdate
(self, value: float)
mcts_math/nodes/mcts_node.py:34
↓ 2 callersFunction_python_ast_init
()
mcts_math/agents/tree.py:22
↓ 2 callersMethod_update_current_node
( self, step_result: str, parser_result: Dict[str, str], idx: int = 0, )
mcts_math/agents/react.py:115
↓ 2 callersFunctionbatch
(iterable, n=-1)
react_batch_demo.py:15
↓ 2 callersFunctioncode_execution
( node: Type[BaseNode], parser_result: Dict[str, str], )
mcts_math/agents/tree.py:132
↓ 2 callersMethodexpand_node
(self, outputs: List[CompletionOutput], node: Type[MCTSNode])
mcts_math/agents/mcts.py:114
↓ 2 callersMethodget_llm_samples
( self, prompt: str, n: int = 1, temperature: Optional[float] = None, )
mcts_math/agents/react.py:191
↓ 2 callersMethodis_ignored_node
(self, node: Type[BaseNode])
mcts_math/agents/step_beam.py:63
↓ 2 callersFunctionis_valid_final_answer_node
(node: Type[InferNode])
offline_inference.py:87
↓ 2 callersMethodis_valid_final_answer_node
(node: Type[BaseNode])
mcts_math/agents/step_beam.py:96
↓ 2 callersFunctionllm_init
(config)
mcts_math/llms/local_llm_engine.py:24
↓ 2 callersFunctionload_json
(path)
mcts_math/prompts/prompt_react.py:4
↓ 2 callersFunctionload_qaf
(filename: str)
react_demo.py:13
↓ 2 callersFunctionmath_is_equiv
(grt: Union[str, list[str]], prd: str)
mcts_math/agents/utils.py:166
↓ 2 callersMethodq_value
(self)
mcts_math/nodes/mcts_node.py:23
↓ 2 callersMethodreturn_states
(self)
mcts_math/agents/mcts.py:257
↓ 2 callersMethodrun
( self, query: str, )
mcts_math/tools/python_tool.py:171
↓ 2 callersMethodselection
(self)
mcts_math/agents/mcts.py:67
↓ 2 callersFunctionsort_by_strategy
( candidate_nodes: List[Type[InferNode]], strategy: str = "q_value", )
offline_inference.py:115
↓ 2 callersMethodupdate_current_node
( self, step_result: str, parser_result: Dict[str, str], )
mcts_math/agents/react.py:107
↓ 1 callersMethod__init__
(self, config, **kwargs)
scripts/modeling_value_head.py:33
↓ 1 callersFunction__is_print_node
(node: ast.AST)
mcts_math/tools/python_tool.py:44
↓ 1 callersMethod_base_run
Use the tool.
mcts_math/tools/python_tool.py:128
↓ 1 callersFunction_code_execution
(node: Type[BaseNode], parser_result: Dict[str, str])
mcts_math/agents/tree.py:138
↓ 1 callersMethod_split_kwargs
Separate the kwargs from the arguments that we support inside `supported_args` and the ones that we don't.
scripts/modeling_value_head.py:128
↓ 1 callersMethodbatch_generate
(self, questions: List[str])
mcts_math/react_batch.py:83
↓ 1 callersFunctioncollect_action_inputs
( node: Type[BaseNode], action: str, )
mcts_math/agents/tree.py:163
↓ 1 callersMethodcreate_child
( self, step_result: str, parser_result: Dict[str, str], node: Type[MCTSNod
mcts_math/agents/mcts.py:129
↓ 1 callersMethodcreate_llm
(self)
mcts_math/solver.py:89
↓ 1 callersMethodcreate_llm
(self)
mcts_math/react_batch.py:48
↓ 1 callersMethodcreate_llm
subclass must implement
mcts_math/agents/tree.py:101
↓ 1 callersMethodcreate_node
(self, parent: Optional[Type[BaseNode]] = None)
mcts_math/agents/react.py:63
↓ 1 callersMethodcreate_node
subclass must implement
mcts_math/agents/tree.py:95
↓ 1 callersMethodcreate_node
(self, parent: Optional[Type[MCTSNode]] = None)
mcts_math/agents/mcts.py:49
↓ 1 callersMethodcreate_root
(self)
mcts_math/agents/tree.py:89
↓ 1 callersFunctioneval_jsonl
(res_file: str, react: bool = False)
eval_output_jsonl.py:18
↓ 1 callersMethodexpansion_evaluation_backpropagation
This function is only used for single example inference, required to set `create_local_llm` as True.
mcts_math/agents/mcts.py:98
↓ 1 callersFunctionextract_content
(text)
mcts_math/tools/python_tool.py:36
↓ 1 callersFunctionfind_print_node
Find the python print node in the tree.body. Args: body (List[ast.AST]): The body of the AST Returns: List[int]: The index o
mcts_math/tools/python_tool.py:61
↓ 1 callersMethodgenerate_next_step
process output from vllm e.g., outputs = llm.generate(prompts, sampling_params) for output in outputs: step_gener
mcts_math/agents/mcts.py:225
↓ 1 callersMethodgenerate_postprocess
( self, outputs: List[List[RequestOutput]], valid_solvers: List[BaseTree], )
mcts_math/solver.py:129
↓ 1 callersMethodgenerate_preprocess
(self, solvers: List[BaseTree])
mcts_math/solver.py:113
↓ 1 callersFunctionget_all_gpu_memory_usage
()
mcts_math/llms/local_llm_engine.py:89
↓ 1 callersMethodget_parsable_samples
(self)
mcts_math/agents/react.py:156
↓ 1 callersFunctionget_solution
This function is used to extract solution from a built tree. It is mainly used for MCTS, but also works for saved tree from step_beam.
offline_inference.py:130
↓ 1 callersMethodget_steps
(self)
mcts_math/agents/step_beam.py:151
↓ 1 callersFunctionllm_engine
(config)
mcts_math/llms/local_llm_engine.py:47
↓ 1 callersMethodload_prompt
(self, config)
mcts_math/prompts/prompt_react.py:20
↓ 1 callersFunctionno_action_wrapper
(tool)
mcts_math/agents/tree.py:33
↓ 1 callersMethodoutput
(self, solvers: List[BaseTree])
mcts_math/solver.py:244
↓ 1 callersFunctionparse_args
()
react_demo.py:30
↓ 1 callersFunctionparse_args
()
eval_output_jsonl.py:9
↓ 1 callersFunctionparse_args
()
react_batch_demo.py:23
↓ 1 callersFunctionparse_args
()
solver_demo.py:21
↓ 1 callersFunctionparse_args
()
offline_inference.py:192
↓ 1 callersFunctionparse_args
()
mcts_math/tools/python_tool.py:187
↓ 1 callersMethodpostprocess
( self, valid_solvers: List[BaseTree], invalid_solvers: List[BaseTree], )
mcts_math/solver.py:196
↓ 1 callersFunctionprune_node
(node: Type[InferNode])
offline_inference.py:94
↓ 1 callersMethodpuct
(self)
offline_inference.py:48
↓ 1 callersMethodpuct
(self)
mcts_math/nodes/mcts_node.py:47
↓ 1 callersMethodrandom_examples
(self)
mcts_math/prompts/prompt_react.py:27
↓ 1 callersFunctionrebuild_tree
( tree_dict: Dict[str, Any], max_num_children: int, c_puct: float, root_tag: str = "0", )
offline_inference.py:54
↓ 1 callersMethodsample
( self, logits: torch.Tensor, sampling_metadata: SamplingMetadata, )
scripts/modeling_value_head.py:187
↓ 1 callersFunctionsanitize_input
Sanitize input to the python REPL. Remove whitespace, backtick & python (if llm mistakes python console as terminal) Args: query: The
mcts_math/tools/python_tool.py:77
↓ 1 callersMethodselect_child
(self, node: Type[MCTSNode])
mcts_math/agents/mcts.py:79
↓ 1 callersMethodselect_next_step
process output from vllm e.g., prompts = tree.create_prompt(is_value_only=True) outputs = llm.generate(prompts, sampling_param
mcts_math/agents/mcts.py:200
↓ 1 callersMethodselect_next_step
process output from vllm e.g., prompts = tree.create_prompt(is_value_only=True) outputs = llm.generate(prompts, sampling_param
mcts_math/agents/step_beam.py:103
↓ 1 callersFunctionselect_non_prune
(current_nodes: List[Type[InferNode]])
offline_inference.py:108
↓ 1 callersMethodselector
(solver: BaseTree, output: RequestOutput)
mcts_math/solver.py:109
↓ 1 callersFunctionset_seed
(seed: int = 1024)
mcts_math/solver.py:35
↓ 1 callersMethodsolve
(self, solvers: List[BaseTree])
mcts_math/solver.py:206
↓ 1 callersFunctiontool_wrapper
(tool)
mcts_math/agents/tree.py:27
↓ 1 callersMethodvalue_postprocess
( self, outputs: List[List[RequestOutput]], valid_solvers: List[BaseTree], )
mcts_math/solver.py:186
↓ 1 callersMethodvalue_preprocess
(self, solvers: List[BaseTree])
mcts_math/solver.py:176
Method__eq__
(self, other: str)
mcts_math/config.py:25
Method__hash__
(self)
mcts_math/config.py:31
Method__init__
r""" Initializes the model. Args: pretrained_model (`transformers.PreTrainedModel`): The model to wrap. I
scripts/modeling_value_head.py:107
Method__init__
(self, **kwargs)
mcts_math/solver.py:64
Method__init__
(self, **kwargs)
mcts_math/react_batch.py:33
Method__init__
(self, **kwargs)
mcts_math/nodes/base_node.py:27
Method__init__
(self, config)
mcts_math/prompts/prompt_react.py:11
Method__init__
(self, **kwargs)
mcts_math/agents/react.py:35
Method__init__
(self, **kwargs)
mcts_math/agents/tree.py:62
Method__init__
(self, **kwargs)
mcts_math/agents/step_beam.py:41
Method__instancecheck__
(cls, other)
mcts_math/config.py:17
Method__repr__
(self)
mcts_math/config.py:28
Method__str__
(self)
mcts_math/config.py:22
Function_asyn_llm_engine
(config, public_prompts, public_outputs, public_n, task_flag)
mcts_math/llms/local_llm_engine.py:52
next →1–100 of 137, ranked by callers