MCPcopy Create free account

hub / github.com/LeapLabTHU/Absolute-Zero-Reasoner / functions

Functions861 in github.com/LeapLabTHU/Absolute-Zero-Reasoner

Methodeval_k_output_prediction
(self, code: str, gold_output: str, k_agent_outputs: List[str], imports: List[str] = [])
absolute_zero_reasoner/utils/code_utils/sandboxfusion_executor.py:272
Methodeval_output_prediction
(self, code: str, gold_output: str, agent_output: str, imports: List[str] = [])
absolute_zero_reasoner/utils/code_utils/sandboxfusion_executor.py:225
Functionevaluate_files
( dataset: str, files: List[str], inputs: List, expected: List, entry_point: str,
evaluation/code_eval/coding/evalplus/evalplus/eval/__init__.py:286
Functionevaluate_generations_by_problem
(args)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_code_generation_metrics.py:56
Functionevaluate_score
(args)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_code_execution_metrics.py:7
Methodexecute
( code, get_answer_from_stdout = None, runtime = None, answer_symbol = None,
evaluation/math_eval/eval/python_executor.py:95
Methodexecute
( code, get_answer_from_stdout=None, runtime=None, answer_symbol=None,
absolute_zero_reasoner/utils/code_utils/python_executor.py:303
Functionextract_code
(completion: str, language: str = "python")
evaluation/math_eval/eval/custom_evaluate.py:42
Functionextract_code
(model_output: str, lmstyle: LMStyle)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/self_repair.py:310
Functionextract_code
(completion: str)
absolute_zero_reasoner/rewards/code_reward.py:83
Functionextract_code
(completion: str, language: str = "python")
absolute_zero_reasoner/rewards/custom_evaluate.py:40
Functionextract_code_content
(solution_str)
absolute_zero_reasoner/rewards/custom_evaluate.py:133
Functionextract_multi_choice_answer
(pred_str)
evaluation/math_eval/eval/parser.py:352
Functionextract_thought
(solution_str: str)
evaluation/math_eval/eval/custom_evaluate.py:197
Functionfind_box
(pred_str: str)
evaluation/math_eval/eval/parser.py:410
Methodfit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to construct the
absolute_zero_reasoner/trainer/ppo/reason_rl_ray_trainer.py:408
Functionfix
(data)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v019.py:4
Methodfluctuate_ratio
(self)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:54
Functionformat_prompt_execution
(question, LanguageModelStyle)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_execution.py:68
Functionformat_prompt_execution_cot
(question, LanguageModelStyle)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_execution.py:72
Functionformat_prompt_test_output
( question: TestOutputPredictionProblem, LanguageModelStyle: LMStyle )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/test_output_prediction.py:159
Methodfull_load_data_with_type_counters
Load datasets and type counters
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:511
Methodfull_load_datasets
Load all datasets from a dictionary
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:507
Methodgenerate
(self, num: int)
evaluation/code_eval/coding/evalplus/evalplus/gen/type_mut.py:321
Methodgenerate
(self, num: int)
evaluation/code_eval/coding/evalplus/evalplus/gen/chatgpt_gen.py:67
Methodgenerate
(self, num: int)
evaluation/code_eval/coding/evalplus/evalplus/gen/mut_gen.py:21
Functiongenerate_queue
Generates a queue that can be shared amongst processes Returns: (multiprocessing.Queue): A queue instance
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:20
Methodget_all_data_with_type_counters
Returns all datasets and type counters
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:562
Methodget_all_type_statistics
Get all type statistics for inputs, outputs, and errors.
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:554
Functionget_checkpoint_num
(model_name)
evaluation/math_eval/eval/sh/collect_results.py:441
Methodget_dataset
Returns only the data entries without step information
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:317
Methodget_dataset_size
(self, name: str)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:503
Methodget_dataset_with_steps
(self, name)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:431
Methodget_evaluation_sample
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/code_generation.py:106
Methodget_evaluation_sample
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/test_output_prediction.py:55
Functionget_instruction_count_shared_mem
( profiler: Callable, func_code: str, entry_point: str, test_inputs: List[Any], timeout_se
evaluation/code_eval/coding/evalplus/evalplus/perf/profile.py:70
Functionget_mixtral_question_template_answer
( question: TestOutputPredictionProblem, testcase_input: str )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/test_output_prediction.py:112
Functionget_mixtral_question_template_answer
(question: str, code, result, metadata)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/self_repair.py:106
Functionget_qwen_question_template_answer
(question: CodeGenerationProblem)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_generation.py:99
Methodget_recent_additions
(self, dataset_key: str, current_step: int, window: int)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:417
Functionget_repetition_penalty_reward
https://github.com/huggingface/open-r1 Computes N-gram repetition penalty as described in Appendix C.2 of https://arxiv.org/abs/2502.03373.
evaluation/math_eval/eval/custom_evaluate.py:621
Functionget_reward
( solution_str: str, ground_truth: str, extra_info: dict, extraction_type: str, splitter:
evaluation/math_eval/eval/custom_evaluate.py:364
Functionget_reward
( solution_str: str, ground_truth: str, extra_info: dict, extraction_type: str, splitter:
absolute_zero_reasoner/rewards/custom_evaluate.py:154
Methodget_snippets_with_steps
(self)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:413
Functionget_step_number
(model_name)
evaluation/math_eval/eval/sh/collect_results.py:354
Methodget_steps_dataset
(self, name)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:450
Methodget_type_counter
(self, counter_key)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:574
Functiongrade_answer_verl
(solution_str, ground_truth)
absolute_zero_reasoner/rewards/math_utils.py:481
Functiongreedy_cover
( task_id: str, tests: Dict[str, List[Any]], exclude_model: str )
evaluation/code_eval/coding/evalplus/tools/tsr/minimization.py:42
Functionhandler
(signum, frame)
evaluation/code_eval/coding/evalplus/evalplus/gen/util/anthropic_request.py:8
Functionhas_print_in_non_main_functions
(source)
evaluation/code_eval/coding/evalplus/tools/collect_valid_solutions.py:85
Functioninitializer
Set maximum amount of memory each worker process can allocate.
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:92
Methodinject
(self, var_dict: Dict[str, Any])
evaluation/math_eval/eval/python_executor.py:51
Methodinject
(self, var_dict: Dict[str, Any])
absolute_zero_reasoner/utils/code_utils/python_executor.py:70
Functioninput_generation
(inputs, signature, contract_code)
evaluation/code_eval/coding/evalplus/tools/_experimental/generate_big_input.py:26
Methodinsert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool],
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/code_generation.py:92
Methodinsert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool] )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/test_output_prediction.py:47
Methodis_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/openai.py:56
Methodis_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/google.py:95
Methodis_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/bedrock.py:94
Methodis_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/anthropic.py:45
Functionis_equiv
(str1: str, str2: str, verbose: bool = False)
evaluation/math_eval/eval/custom_evaluate.py:423
Functionis_equiv
(str1: str, str2: str, verbose: bool = False)
absolute_zero_reasoner/rewards/custom_evaluate.py:192
Methodis_exception
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:85
Methodis_process_expired
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:88
Methodis_timeout
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:82
Functionmain
(directory, sanitize_code: bool = True)
evaluation/code_eval/coding/evalplus/tools/directory_to_jsonl.py:12
Functionmain
(result_dir: str, norm: bool = False, latex: bool = False)
evaluation/code_eval/coding/evalplus/tools/evalperf/intra_model_viz.py:110
Functionmain
(result_dir: str, norm: bool = False, latex: bool = False)
evaluation/code_eval/coding/evalplus/tools/evalperf/viz_by_params.py:124
Functionmain
(path, overwrite=False)
evaluation/code_eval/coding/evalplus/tools/evalperf/hf_upload.py:13
Functionmain
(result_dir: str)
evaluation/code_eval/coding/evalplus/tools/evalperf/pairwise_heatmap.py:13
Functionmain
( output: str, # output file n: int = 16, # sample size and batch size model: Optional[str] = "T
evaluation/code_eval/coding/evalplus/evalplus/perf/sas.py:101
Functionmain
In the synthesizer file, each line includes a set of input generators for a task. The goal of this script is to use these generators to sample inp
evaluation/code_eval/coding/evalplus/evalplus/perf/sampling.py:181
Functionmain
Convert FSDP checkpoint to HuggingFace checkpoint Args: fsdp_checkpoint_path: path to the FSDP checkpoint huggingface_model_p
absolute_zero_reasoner/utils/convert2hf.py:7
Functionmake_auto_request
(client: anthropic.Client, *args, **kwargs)
evaluation/code_eval/coding/evalplus/evalplus/gen/util/anthropic_request.py:13
Functionmath_equal_process
(param)
evaluation/math_eval/eval/grader.py:262
Functionnew_math_equal_process
(params)
evaluation/math_eval/eval/evaluate.py:17
Functionnum_instruction_profiler
(function, test_inputs)
evaluation/code_eval/coding/evalplus/evalplus/perf/profile.py:57
Functionpercentage_to_fraction
(text)
evaluation/math_eval/eval/math_utils.py:63
Functionperf_worker
( task_id: str, ptask: Dict, # EvalPerf data ret_dict: Dict, lazy_evaluation: bool, max_p
evaluation/code_eval/coding/evalplus/evalplus/evalperf.py:149
Functionphysical_runtime_profiler
(function, test_inputs)
evaluation/code_eval/coding/evalplus/evalplus/perf/profile.py:50
Functionplot_training_progress
Plot training progress for each model series
evaluation/math_eval/eval/sh/collect_results.py:469
Functionprocess_file
Process a single metrics file
evaluation/math_eval/eval/sh/collect_results.py:219
Functionprocess_fn
(example, idx)
absolute_zero_reasoner/data_construction/process_data.py:58
Methodprocess_generation_to_code
(self, gens: str)
absolute_zero_reasoner/utils/code_utils/sandboxfusion_executor.py:171
Functionprocess_livecodebench_execution
(row)
absolute_zero_reasoner/data_construction/process_code_reasoning_data.py:13
Methodrank
(self)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:58
Methodread
(self, *args, **kwargs)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:156
Methodreadable
Returns True if the IO object can be read.
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:165
Methodreadable
Returns True if the IO object can be read.
evaluation/code_eval/coding/evalplus/evalplus/eval/utils.py:93
Methodreadline
(self, *args, **kwargs)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:159
Methodreadline
(self, *args, **kwargs)
evaluation/code_eval/coding/evalplus/evalplus/eval/utils.py:87
Methodreadlines
(self, *args, **kwargs)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:162
Functionremove_boxed
(s: str)
evaluation/math_eval/eval/custom_evaluate.py:440
Functionremove_boxed
(s: str)
absolute_zero_reasoner/rewards/custom_evaluate.py:209
Functionrepetition_penalty_reward
reward function the penalizes repetitions ref implementation: https://github.com/eddycmu/demystify-long-cot/blob/release/openrlhf/ope
evaluation/math_eval/eval/custom_evaluate.py:638
Methodresume_dataset_state
(self)
absolute_zero_reasoner/utils/dataset/rl_dataset.py:128
Functionrough_compare_ans
(generation, answer)
evaluation/math_eval/eval/math_utils.py:245
Functionrun
(idx)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/old_results_check.py:26
Methodrun_batch
(self, prompts: list[str])
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/vllm_runner.py:40
← previousnext →701–800 of 861, ranked by callers