Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LeapLabTHU/Absolute-Zero-Reasoner
/ functions
Functions
861 in github.com/LeapLabTHU/Absolute-Zero-Reasoner
⨍
Functions
861
◇
Types & classes
85
↳
Endpoints
9
Method
eval_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
Method
eval_output_prediction
(self, code: str, gold_output: str, agent_output: str, imports: List[str] = [])
absolute_zero_reasoner/utils/code_utils/sandboxfusion_executor.py:225
Function
evaluate_files
( dataset: str, files: List[str], inputs: List, expected: List, entry_point: str,
evaluation/code_eval/coding/evalplus/evalplus/eval/__init__.py:286
Function
evaluate_generations_by_problem
(args)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_code_generation_metrics.py:56
Function
evaluate_score
(args)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_code_execution_metrics.py:7
Method
execute
( code, get_answer_from_stdout = None, runtime = None, answer_symbol = None,
evaluation/math_eval/eval/python_executor.py:95
Method
execute
( code, get_answer_from_stdout=None, runtime=None, answer_symbol=None,
absolute_zero_reasoner/utils/code_utils/python_executor.py:303
Function
extract_code
(completion: str, language: str = "python")
evaluation/math_eval/eval/custom_evaluate.py:42
Function
extract_code
(model_output: str, lmstyle: LMStyle)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/self_repair.py:310
Function
extract_code
(completion: str)
absolute_zero_reasoner/rewards/code_reward.py:83
Function
extract_code
(completion: str, language: str = "python")
absolute_zero_reasoner/rewards/custom_evaluate.py:40
Function
extract_code_content
(solution_str)
absolute_zero_reasoner/rewards/custom_evaluate.py:133
Function
extract_multi_choice_answer
(pred_str)
evaluation/math_eval/eval/parser.py:352
Function
extract_thought
(solution_str: str)
evaluation/math_eval/eval/custom_evaluate.py:197
Function
find_box
(pred_str: str)
evaluation/math_eval/eval/parser.py:410
Method
fit
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
Function
fix
(data)
evaluation/code_eval/coding/evalplus/tools/humaneval/fix_v019.py:4
Method
fluctuate_ratio
(self)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:54
Function
format_prompt_execution
(question, LanguageModelStyle)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_execution.py:68
Function
format_prompt_execution_cot
(question, LanguageModelStyle)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_execution.py:72
Function
format_prompt_test_output
( question: TestOutputPredictionProblem, LanguageModelStyle: LMStyle )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/test_output_prediction.py:159
Method
full_load_data_with_type_counters
Load datasets and type counters
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:511
Method
full_load_datasets
Load all datasets from a dictionary
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:507
Method
generate
(self, num: int)
evaluation/code_eval/coding/evalplus/evalplus/gen/type_mut.py:321
Method
generate
(self, num: int)
evaluation/code_eval/coding/evalplus/evalplus/gen/chatgpt_gen.py:67
Method
generate
(self, num: int)
evaluation/code_eval/coding/evalplus/evalplus/gen/mut_gen.py:21
Function
generate_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
Method
get_all_data_with_type_counters
Returns all datasets and type counters
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:562
Method
get_all_type_statistics
Get all type statistics for inputs, outputs, and errors.
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:554
Function
get_checkpoint_num
(model_name)
evaluation/math_eval/eval/sh/collect_results.py:441
Method
get_dataset
Returns only the data entries without step information
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:317
Method
get_dataset_size
(self, name: str)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:503
Method
get_dataset_with_steps
(self, name)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:431
Method
get_evaluation_sample
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/code_generation.py:106
Method
get_evaluation_sample
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/benchmarks/test_output_prediction.py:55
Function
get_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
Function
get_mixtral_question_template_answer
( question: TestOutputPredictionProblem, testcase_input: str )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/test_output_prediction.py:112
Function
get_mixtral_question_template_answer
(question: str, code, result, metadata)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/self_repair.py:106
Function
get_qwen_question_template_answer
(question: CodeGenerationProblem)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_generation.py:99
Method
get_recent_additions
(self, dataset_key: str, current_step: int, window: int)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:417
Function
get_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
Function
get_reward
( solution_str: str, ground_truth: str, extra_info: dict, extraction_type: str, splitter:
evaluation/math_eval/eval/custom_evaluate.py:364
Function
get_reward
( solution_str: str, ground_truth: str, extra_info: dict, extraction_type: str, splitter:
absolute_zero_reasoner/rewards/custom_evaluate.py:154
Method
get_snippets_with_steps
(self)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:413
Function
get_step_number
(model_name)
evaluation/math_eval/eval/sh/collect_results.py:354
Method
get_steps_dataset
(self, name)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:450
Method
get_type_counter
(self, counter_key)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:574
Function
grade_answer_verl
(solution_str, ground_truth)
absolute_zero_reasoner/rewards/math_utils.py:481
Function
greedy_cover
( task_id: str, tests: Dict[str, List[Any]], exclude_model: str )
evaluation/code_eval/coding/evalplus/tools/tsr/minimization.py:42
Function
handler
(signum, frame)
evaluation/code_eval/coding/evalplus/evalplus/gen/util/anthropic_request.py:8
Function
has_print_in_non_main_functions
(source)
evaluation/code_eval/coding/evalplus/tools/collect_valid_solutions.py:85
Function
initializer
Set maximum amount of memory each worker process can allocate.
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:92
Method
inject
(self, var_dict: Dict[str, Any])
evaluation/math_eval/eval/python_executor.py:51
Method
inject
(self, var_dict: Dict[str, Any])
absolute_zero_reasoner/utils/code_utils/python_executor.py:70
Function
input_generation
(inputs, signature, contract_code)
evaluation/code_eval/coding/evalplus/tools/_experimental/generate_big_input.py:26
Method
insert_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
Method
insert_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
Method
is_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/openai.py:56
Method
is_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/google.py:95
Method
is_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/bedrock.py:94
Method
is_direct_completion
(self)
evaluation/code_eval/coding/evalplus/evalplus/provider/anthropic.py:45
Function
is_equiv
(str1: str, str2: str, verbose: bool = False)
evaluation/math_eval/eval/custom_evaluate.py:423
Function
is_equiv
(str1: str, str2: str, verbose: bool = False)
absolute_zero_reasoner/rewards/custom_evaluate.py:192
Method
is_exception
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:85
Method
is_process_expired
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:88
Method
is_timeout
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:82
Function
main
(directory, sanitize_code: bool = True)
evaluation/code_eval/coding/evalplus/tools/directory_to_jsonl.py:12
Function
main
(result_dir: str, norm: bool = False, latex: bool = False)
evaluation/code_eval/coding/evalplus/tools/evalperf/intra_model_viz.py:110
Function
main
(result_dir: str, norm: bool = False, latex: bool = False)
evaluation/code_eval/coding/evalplus/tools/evalperf/viz_by_params.py:124
Function
main
(path, overwrite=False)
evaluation/code_eval/coding/evalplus/tools/evalperf/hf_upload.py:13
Function
main
(result_dir: str)
evaluation/code_eval/coding/evalplus/tools/evalperf/pairwise_heatmap.py:13
Function
main
( 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
Function
main
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
Function
main
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
Function
make_auto_request
(client: anthropic.Client, *args, **kwargs)
evaluation/code_eval/coding/evalplus/evalplus/gen/util/anthropic_request.py:13
Function
math_equal_process
(param)
evaluation/math_eval/eval/grader.py:262
Function
new_math_equal_process
(params)
evaluation/math_eval/eval/evaluate.py:17
Function
num_instruction_profiler
(function, test_inputs)
evaluation/code_eval/coding/evalplus/evalplus/perf/profile.py:57
Function
percentage_to_fraction
(text)
evaluation/math_eval/eval/math_utils.py:63
Function
perf_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
Function
physical_runtime_profiler
(function, test_inputs)
evaluation/code_eval/coding/evalplus/evalplus/perf/profile.py:50
Function
plot_training_progress
Plot training progress for each model series
evaluation/math_eval/eval/sh/collect_results.py:469
Function
process_file
Process a single metrics file
evaluation/math_eval/eval/sh/collect_results.py:219
Function
process_fn
(example, idx)
absolute_zero_reasoner/data_construction/process_data.py:58
Method
process_generation_to_code
(self, gens: str)
absolute_zero_reasoner/utils/code_utils/sandboxfusion_executor.py:171
Function
process_livecodebench_execution
(row)
absolute_zero_reasoner/data_construction/process_code_reasoning_data.py:13
Method
rank
(self)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:58
Method
read
(self, *args, **kwargs)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:156
Method
readable
Returns True if the IO object can be read.
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:165
Method
readable
Returns True if the IO object can be read.
evaluation/code_eval/coding/evalplus/evalplus/eval/utils.py:93
Method
readline
(self, *args, **kwargs)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:159
Method
readline
(self, *args, **kwargs)
evaluation/code_eval/coding/evalplus/evalplus/eval/utils.py:87
Method
readlines
(self, *args, **kwargs)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:162
Function
remove_boxed
(s: str)
evaluation/math_eval/eval/custom_evaluate.py:440
Function
remove_boxed
(s: str)
absolute_zero_reasoner/rewards/custom_evaluate.py:209
Function
repetition_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
Method
resume_dataset_state
(self)
absolute_zero_reasoner/utils/dataset/rl_dataset.py:128
Function
rough_compare_ans
(generation, answer)
evaluation/math_eval/eval/math_utils.py:245
Function
run
(idx)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/old_results_check.py:26
Method
run_batch
(self, prompts: list[str])
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/vllm_runner.py:40
← previous
next →
701–800 of 861, ranked by callers