Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MARIO-Math-Reasoning/Super_MARIO
/ functions
Functions
137 in github.com/MARIO-Math-Reasoning/Super_MARIO
⨍
Functions
137
◇
Types & classes
17
↓ 5 callers
Method
create_prompt
( self, )
mcts_math/agents/react.py:180
↓ 5 callers
Method
update_recursive
(self, value: float, start_node: Type[BaseNode])
mcts_math/nodes/mcts_node.py:41
↓ 5 callers
Method
visit_count
(self)
mcts_math/nodes/mcts_node.py:28
↓ 4 callers
Method
eval_final_answer
(self, node: Type[MCTSNode])
mcts_math/agents/mcts.py:186
↓ 4 callers
Method
generate
(self)
mcts_math/agents/mcts.py:56
↓ 4 callers
Method
has_children
(self)
mcts_math/nodes/base_node.py:33
↓ 4 callers
Function
remove_single_dollar
(s)
mcts_math/agents/utils.py:161
↓ 4 callers
Method
search
(self)
mcts_math/agents/mcts.py:60
↓ 3 callers
Function
ChoiceEnum
return the Enum class used to enforce list of choices
mcts_math/config.py:35
↓ 3 callers
Method
collect_partial_solution
(self, node: Type[BaseNode])
mcts_math/agents/tree.py:112
↓ 3 callers
Method
should_generate_next
(self)
mcts_math/agents/react.py:95
↓ 3 callers
Function
truncate_string
(text, max_length=500, is_evalf=True)
mcts_math/tools/python_tool.py:21
↓ 3 callers
Method
update
(self, value: float)
mcts_math/nodes/mcts_node.py:34
↓ 2 callers
Function
_python_ast_init
()
mcts_math/agents/tree.py:22
↓ 2 callers
Method
_update_current_node
( self, step_result: str, parser_result: Dict[str, str], idx: int = 0, )
mcts_math/agents/react.py:115
↓ 2 callers
Function
batch
(iterable, n=-1)
react_batch_demo.py:15
↓ 2 callers
Function
code_execution
( node: Type[BaseNode], parser_result: Dict[str, str], )
mcts_math/agents/tree.py:132
↓ 2 callers
Method
expand_node
(self, outputs: List[CompletionOutput], node: Type[MCTSNode])
mcts_math/agents/mcts.py:114
↓ 2 callers
Method
get_llm_samples
( self, prompt: str, n: int = 1, temperature: Optional[float] = None, )
mcts_math/agents/react.py:191
↓ 2 callers
Method
is_ignored_node
(self, node: Type[BaseNode])
mcts_math/agents/step_beam.py:63
↓ 2 callers
Function
is_valid_final_answer_node
(node: Type[InferNode])
offline_inference.py:87
↓ 2 callers
Method
is_valid_final_answer_node
(node: Type[BaseNode])
mcts_math/agents/step_beam.py:96
↓ 2 callers
Function
llm_init
(config)
mcts_math/llms/local_llm_engine.py:24
↓ 2 callers
Function
load_json
(path)
mcts_math/prompts/prompt_react.py:4
↓ 2 callers
Function
load_qaf
(filename: str)
react_demo.py:13
↓ 2 callers
Function
math_is_equiv
(grt: Union[str, list[str]], prd: str)
mcts_math/agents/utils.py:166
↓ 2 callers
Method
q_value
(self)
mcts_math/nodes/mcts_node.py:23
↓ 2 callers
Method
return_states
(self)
mcts_math/agents/mcts.py:257
↓ 2 callers
Method
run
( self, query: str, )
mcts_math/tools/python_tool.py:171
↓ 2 callers
Method
selection
(self)
mcts_math/agents/mcts.py:67
↓ 2 callers
Function
sort_by_strategy
( candidate_nodes: List[Type[InferNode]], strategy: str = "q_value", )
offline_inference.py:115
↓ 2 callers
Method
update_current_node
( self, step_result: str, parser_result: Dict[str, str], )
mcts_math/agents/react.py:107
↓ 1 callers
Method
__init__
(self, config, **kwargs)
scripts/modeling_value_head.py:33
↓ 1 callers
Function
__is_print_node
(node: ast.AST)
mcts_math/tools/python_tool.py:44
↓ 1 callers
Method
_base_run
Use the tool.
mcts_math/tools/python_tool.py:128
↓ 1 callers
Function
_code_execution
(node: Type[BaseNode], parser_result: Dict[str, str])
mcts_math/agents/tree.py:138
↓ 1 callers
Method
_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 callers
Method
batch_generate
(self, questions: List[str])
mcts_math/react_batch.py:83
↓ 1 callers
Function
collect_action_inputs
( node: Type[BaseNode], action: str, )
mcts_math/agents/tree.py:163
↓ 1 callers
Method
create_child
( self, step_result: str, parser_result: Dict[str, str], node: Type[MCTSNod
mcts_math/agents/mcts.py:129
↓ 1 callers
Method
create_llm
(self)
mcts_math/solver.py:89
↓ 1 callers
Method
create_llm
(self)
mcts_math/react_batch.py:48
↓ 1 callers
Method
create_llm
subclass must implement
mcts_math/agents/tree.py:101
↓ 1 callers
Method
create_node
(self, parent: Optional[Type[BaseNode]] = None)
mcts_math/agents/react.py:63
↓ 1 callers
Method
create_node
subclass must implement
mcts_math/agents/tree.py:95
↓ 1 callers
Method
create_node
(self, parent: Optional[Type[MCTSNode]] = None)
mcts_math/agents/mcts.py:49
↓ 1 callers
Method
create_root
(self)
mcts_math/agents/tree.py:89
↓ 1 callers
Function
eval_jsonl
(res_file: str, react: bool = False)
eval_output_jsonl.py:18
↓ 1 callers
Method
expansion_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 callers
Function
extract_content
(text)
mcts_math/tools/python_tool.py:36
↓ 1 callers
Function
find_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 callers
Method
generate_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 callers
Method
generate_postprocess
( self, outputs: List[List[RequestOutput]], valid_solvers: List[BaseTree], )
mcts_math/solver.py:129
↓ 1 callers
Method
generate_preprocess
(self, solvers: List[BaseTree])
mcts_math/solver.py:113
↓ 1 callers
Function
get_all_gpu_memory_usage
()
mcts_math/llms/local_llm_engine.py:89
↓ 1 callers
Method
get_parsable_samples
(self)
mcts_math/agents/react.py:156
↓ 1 callers
Function
get_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 callers
Method
get_steps
(self)
mcts_math/agents/step_beam.py:151
↓ 1 callers
Function
llm_engine
(config)
mcts_math/llms/local_llm_engine.py:47
↓ 1 callers
Method
load_prompt
(self, config)
mcts_math/prompts/prompt_react.py:20
↓ 1 callers
Function
no_action_wrapper
(tool)
mcts_math/agents/tree.py:33
↓ 1 callers
Method
output
(self, solvers: List[BaseTree])
mcts_math/solver.py:244
↓ 1 callers
Function
parse_args
()
react_demo.py:30
↓ 1 callers
Function
parse_args
()
eval_output_jsonl.py:9
↓ 1 callers
Function
parse_args
()
react_batch_demo.py:23
↓ 1 callers
Function
parse_args
()
solver_demo.py:21
↓ 1 callers
Function
parse_args
()
offline_inference.py:192
↓ 1 callers
Function
parse_args
()
mcts_math/tools/python_tool.py:187
↓ 1 callers
Method
postprocess
( self, valid_solvers: List[BaseTree], invalid_solvers: List[BaseTree], )
mcts_math/solver.py:196
↓ 1 callers
Function
prune_node
(node: Type[InferNode])
offline_inference.py:94
↓ 1 callers
Method
puct
(self)
offline_inference.py:48
↓ 1 callers
Method
puct
(self)
mcts_math/nodes/mcts_node.py:47
↓ 1 callers
Method
random_examples
(self)
mcts_math/prompts/prompt_react.py:27
↓ 1 callers
Function
rebuild_tree
( tree_dict: Dict[str, Any], max_num_children: int, c_puct: float, root_tag: str = "0", )
offline_inference.py:54
↓ 1 callers
Method
sample
( self, logits: torch.Tensor, sampling_metadata: SamplingMetadata, )
scripts/modeling_value_head.py:187
↓ 1 callers
Function
sanitize_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 callers
Method
select_child
(self, node: Type[MCTSNode])
mcts_math/agents/mcts.py:79
↓ 1 callers
Method
select_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 callers
Method
select_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 callers
Function
select_non_prune
(current_nodes: List[Type[InferNode]])
offline_inference.py:108
↓ 1 callers
Method
selector
(solver: BaseTree, output: RequestOutput)
mcts_math/solver.py:109
↓ 1 callers
Function
set_seed
(seed: int = 1024)
mcts_math/solver.py:35
↓ 1 callers
Method
solve
(self, solvers: List[BaseTree])
mcts_math/solver.py:206
↓ 1 callers
Function
tool_wrapper
(tool)
mcts_math/agents/tree.py:27
↓ 1 callers
Method
value_postprocess
( self, outputs: List[List[RequestOutput]], valid_solvers: List[BaseTree], )
mcts_math/solver.py:186
↓ 1 callers
Method
value_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