MCPcopy Create free account

hub / github.com/PRIME-RL/PRIME / functions

Functions2,604 in github.com/PRIME-RL/PRIME

↓ 2 callersMethod_pad_to_length
(self, input_ids, attention_mask)
training/verl/utils/dataset/rm_dataset.py:99
↓ 2 callersFunction_parse
(s)
eval/utils/grader.py:318
↓ 2 callersFunction_parse
(s)
eval/Math/Qwen25-Math/evaluation/grader.py:277
↓ 2 callersFunction_parse
(s)
training/verl/utils/reward_score/evaluation_utils/math_util/grader.py:317
↓ 2 callersFunction_parse
(s)
data_preprocessing/math_util/grader.py:318
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
training/verl/models/llama/megatron/layers/parallel_attention.py:51
↓ 2 callersFunction_strip_properly_formatted_commas
(expr: str)
training/verl/utils/reward_score/evaluation_utils/math_util/__init__.py:98
↓ 2 callersFunction_strip_properly_formatted_commas
(expr: str)
data_preprocessing/math_util/__init__.py:98
↓ 2 callersFunction_strip_string
(string)
eval/utils/math_equivalence.py:71
↓ 2 callersFunction_unwrap_ray_remote
(cls)
training/verl/single_controller/ray/base.py:412
↓ 2 callersMethodadd_request
Add a request to the engine's request pool. The request is added to the request pool and will be processed by the scheduler as `engin
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:238
↓ 2 callersMethodallgather_params
allgather params of all pp ranks. Return a list of handles
training/verl/workers/hybrid_engine/megatron_vllm.py:118
↓ 2 callersFunctionapply_kl_penalty
(data: DataProto, kl_ctrl: core_algos.AdaptiveKLController, kl_penalty='kl')
training/verl/trainer/ppo/ray_trainer.py:85
↓ 2 callersMethodbatch_apply
(self, batch_code)
eval/Math/Qwen25-Math/evaluation/python_executor.py:150
↓ 2 callersFunctionbuild_prompt_benchmark
( args, )
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/runner/scenario_router.py:40
↓ 2 callersMethodcache_swap
( self, blocks_to_swap_in: Dict[int, int], blocks_to_swap_out: Dict[int, int],
training/verl/third_party/vllm/vllm_v_0_3_1/worker.py:188
↓ 2 callersFunctioncall_method
(method, inputs)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/testing_util.py:651
↓ 2 callersFunctioncheck_model_support_rmpad
(model_type: str)
training/verl/models/registry.py:28
↓ 2 callersFunctionchoice_answer_clean
(pred: str)
eval/Math/Qwen25-Math/evaluation/grader.py:25
↓ 2 callersFunctionchoice_answer_clean
(pred: str)
eval/Math/Qwen25-Math/evaluation/parser.py:367
↓ 2 callersMethodcomp
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:3036
↓ 2 callersMethodcomp_nofunc
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:3165
↓ 2 callersFunctioncompute_advantage
(data: DataProto, gamma, lam, adv_estimator, config)
training/verl/trainer/ppo/ray_trainer.py:117
↓ 2 callersFunctioncompute_data_metrics
(batch)
training/verl/trainer/ppo/ray_trainer.py:154
↓ 2 callersMethodcompute_implicit_reward
(self, micro_batch, log_probs, ref_log_probs)
training/verl/workers/actor/dp_prime.py:116
↓ 2 callersFunctioncompute_metrics_from_results
(results, k_list=[1, 5])
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/pass_k_utils.py:26
↓ 2 callersMethodcompute_ref_log_prob
(self, data: DataProto)
training/verl/workers/fsdp_workers.py:395
↓ 2 callersMethodcompute_rm_score
(self, data: DataProto)
training/verl/workers/fsdp_workers.py:803
↓ 2 callersFunctioncontains_number
(s)
eval/Math/Qwen25-Math/evaluation/math_utils.py:241
↓ 2 callersFunctionconvert_add
(add)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:369
↓ 2 callersFunctionconvert_comp
(comp)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:564
↓ 2 callersFunctionconvert_frac
(frac)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:742
↓ 2 callersFunctionconvert_func_arg
(arg)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:973
↓ 2 callersFunctionconvert_matrix
(matrix)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:267
↓ 2 callersFunctionconvert_relation
(rel)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:144
↓ 2 callersFunctionconvert_unary
(unary)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:433
↓ 2 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
training/verl/single_controller/ray/base.py:418
↓ 2 callersMethodcreate_prompt
(self, source, problem: str)
data_preprocessing/stage4_judge.py:115
↓ 2 callersMethodcreate_resource_pool
(self)
training/verl/trainer/ppo/ray_trainer.py:65
↓ 2 callersFunctiondo_subs
(expr, at)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:488
↓ 2 callersMethodencode
(self, prompt: str, request_id: Optional[str] = None, lora_reques
training/verl/third_party/vllm/vllm_v_0_3_1/tokenizer.py:38
↓ 2 callersFunctionensure_dir
(path: str, is_file=True)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/utils/path_utils.py:7
↓ 2 callersFunctionevaluate
(data_name, prompt_type, samples: list=None, file_path: str=None, max_num_samples=None, execute=False)
eval/Math/Qwen25-Math/evaluation/evaluate.py:14
↓ 2 callersFunctionextract_python_code
(generation: str)
eval/Coding/leetcode/evaluate_leetcode.py:112
↓ 2 callersMethodflush
Implement flush method for compatibility.
training/verl/utils/logger/aggregate_logger.py:83
↓ 2 callersFunctionformat_prompt_execution_base
( question: CodeExecutionProblem, LanguageModelStyle: LMStyle, cot: bool )
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_execution.py:76
↓ 2 callersFunctionformat_prompt_generation
( question: CodeGenerationProblem, LanguageModelStyle: LMStyle )
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_generation.py:208
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
training/verl/models/llama/megatron/modeling_llama_megatron.py:118
↓ 2 callersMethodforward_backward_batch
(self, data: DataProto, forward_only=False)
training/verl/workers/critic/megatron_critic.py:113
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
training/verl/workers/actor/megatron_actor.py:218
↓ 2 callersMethodfunc_multi_arg_noparens
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6185
↓ 2 callersMethodfunc_single_arg_noparens
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6091
↓ 2 callersFunctiongenerate_completions
(model, tokenizer, prompts, batch_size=1, stop_id_sequences=None, add_special_tokens=True, disable_tqdm=False,
eval/Math/Qwen25-Math/evaluation/model_utils.py:78
↓ 2 callersMethodget_all_params
Get all the parameters of the models in all pp ranks Returns: params: List[List[Dict[str, Tensor]]]: a list of parameters in all
training/verl/workers/hybrid_engine/megatron_vllm.py:163
↓ 2 callersFunctionget_codeqwen_question_template_answer
(question: CodeGenerationProblem)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_generation.py:155
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
training/verl/utils/megatron/tensor_parallel.py:47
↓ 2 callersFunctionget_differential_var
(d)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1098
↓ 2 callersFunctionget_differential_var_str
(text)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1103
↓ 2 callersFunctionget_eos_mask
e.g. end of sentence token=1 response_id: [0, 0, 2, 42, 3, 5, 1, 0, 0] eos_mask: [1, 1, 1, 1, 1, 1, 1, 0, 0]
training/verl/utils/torch_functional.py:139
↓ 2 callersFunctionget_example_prompt
(example)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_generation.py:181
↓ 2 callersFunctionget_megatron_optimizer
( model, config: OptimizerConfig, no_weight_decay_cond=None, scale_lr_cond=Non
training/verl/utils/megatron/optimizer.py:26
↓ 2 callersFunctionget_micro_data_parallel_group
()
training/verl/third_party/vllm/vllm_v_0_3_1/parallel_state.py:137
↓ 2 callersFunctionget_model_size
(model: nn.Module, scale='auto')
training/verl/utils/model.py:102
↓ 2 callersFunctionget_output_path
(model_repr:str, args)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/utils/path_utils.py:24
↓ 2 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
training/verl/third_party/vllm/vllm_v_0_3_1/parallel_state.py:114
↓ 2 callersFunctionget_trajectory_tracker
()
training/verl/utils/debug/trajectory_tracker.py:79
↓ 2 callersFunctionget_upper_triangle
(tensor_x)
training/verl/trainer/ppo/core_algos.py:274
↓ 2 callersFunctionget_weight_buffer_meta_from_module
Return a dictionary containing name to a shape and dtype.
training/verl/utils/memory_buffer.py:58
↓ 2 callersFunctionget_wizard_question_template_answer
(question: str, code, result, metadata)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/self_repair.py:118
↓ 2 callersFunctiongrade_answer
The answer will be considered correct if: (a) it normalizes to the same string as the ground truth answer OR (b) sympy can simplify t
data_preprocessing/math_util/__init__.py:240
↓ 2 callersFunctionhandle_gcd_lcm
Return the result of gcd() or lcm(), as UnevaluatedExpr f: str - name of function ("gcd" or "lcm") args: List[Expr] - list of function a
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1066
↓ 2 callersFunctionhandle_sum_or_prod
(func, name)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1020
↓ 2 callersFunctioninit_megatron_optim_config
(optim_config: Dict)
training/verl/utils/megatron_utils.py:185
↓ 2 callersFunctioninitialize_model_parallel
NOTE: This method is a hack from the open-sourced version without asertion of world_size = tp * pp Initialize model parallel groups.
training/verl/third_party/vllm/vllm_v_0_5_4/parallel_state.py:191
↓ 2 callersFunctioninitialize_model_parallel
NOTE: This method is a hack from the open-sourced version without asertion of world_size = tp * pp Initialize model parallel groups.
training/verl/third_party/vllm/vllm_v_0_4_2/parallel_state.py:172
↓ 2 callersFunctionis_digit
(num)
eval/Math/Qwen25-Math/evaluation/grader.py:55
↓ 2 callersFunctionis_equ_num_equal
(equation, number)
eval/Math/Qwen25-Math/evaluation/math_utils.py:134
↓ 2 callersFunctionis_expr_equal
(ans_p, ans_l, is_strict=False)
eval/Math/Qwen25-Math/evaluation/math_utils.py:133
↓ 2 callersFunctionis_multi_choice
(answer)
eval/Math/Qwen25-Math/evaluation/math_eval.py:151
↓ 2 callersFunctionis_tensor_parallel_param
(param)
training/verl/utils/megatron/tensor_parallel.py:86
↓ 2 callersFunctionis_vllm_available
()
training/verl/utils/import_utils.py:33
↓ 2 callersFunctionlatex
(tex)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1115
↓ 2 callersMethodlimit_sub
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5985
↓ 2 callersFunctionlist_of_dict_to_dict_of_list
(list_of_dict: list[dict])
training/verl/protocol.py:65
↓ 2 callersFunctionload_code_execution_dataset
(release_version="release_v1")
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/benchmarks/code_execution.py:59
↓ 2 callersFunctionload_hf_lm_and_tokenizer
( model_name_or_path, tokenizer_name_or_path=None, device_map="auto", load_
eval/Math/Qwen25-Math/evaluation/model_utils.py:140
↓ 2 callersMethodload_model_cls
(model_arch: str, value=False)
training/verl/models/registry.py:49
↓ 2 callersMethodload_params_to_cuda
load all model params to cuda
training/verl/workers/hybrid_engine/megatron_vllm.py:112
↓ 2 callersFunctionload_prompt
(data_name, prompt_type, num_shots)
eval/Math/Qwen25-Math/evaluation/utils.py:55
↓ 2 callersFunctionload_test_prediction_dataset
(release_version="release_v1")
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/benchmarks/test_output_prediction.py:62
↓ 2 callersMethodlog
Log data to file and optionally console. Args: data: Dictionary containing metrics/data to log step:
training/verl/utils/logger/aggregate_logger.py:87
↓ 2 callersFunctionlog_probs_from_logits_all_rmpad
Compute the log_probs from logits with rmpad input_ids and logits. Note that logits_rmpad = model(input_ids_rmpad). For each sentences, there is a
training/verl/utils/torch_functional.py:329
↓ 2 callersFunctionmain
(config)
training/verl/trainer/main_ppo.py:121
↓ 2 callersMethodmake_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_ids``
training/verl/workers/actor/megatron_actor.py:190
↓ 2 callersFunctionmakedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
training/verl/utils/hdfs_io.py:50
↓ 2 callersFunctionmat_add_flat
(lh, rh)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:314
↓ 2 callersFunctionmath_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to sy
training/verl/utils/reward_score/evaluation_utils/math_util/grader.py:163
↓ 2 callersMethodmathit_text
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4554
↓ 2 callersFunctionmd5_encode
(path: str)
training/verl/utils/fs.py:33
↓ 2 callersFunctionnormalize
(answer, pi)
eval/utils/grader.py:109
← previousnext →301–400 of 2,604, ranked by callers