MCPcopy Create free account

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

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

↓ 3 callersMethod_validate
(self)
training/verl/trainer/ppo/ray_trainer.py:801
↓ 3 callersMethod_verify_cuda_graph
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/config.py:153
↓ 3 callersMethod_verify_quantization
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/config.py:124
↓ 3 callersFunctionadd_flat
(lh, rh)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:298
↓ 3 callersFunctionallgather_dict_tensors
TODO: optimize this. - We can use async ops - We can use only one allgather Args: tensors: size: group:
training/verl/utils/torch_functional.py:169
↓ 3 callersMethodatom_expr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4304
↓ 3 callersFunctionbuild_memory_buffer
Build the memory buffer given weight_buffer_meta Args: weight_buffer_meta: contains mapping from name to a dictionary containing shape an
training/verl/utils/memory_buffer.py:68
↓ 3 callersFunctioncalc_padded_numel
for cuda memory alignment, make sure alignment by 128-bits
training/verl/utils/memory_buffer.py:51
↓ 3 callersFunctionclean_expr_str
(expr_str)
eval/Math/Qwen25-Math/evaluation/math_utils.py:74
↓ 3 callersFunctioncompute_transformers_input_shapes
(batches, meta_info)
training/verl/utils/megatron/pipeline_parallel.py:22
↓ 3 callersFunctionconvert_elementary_transform
(matrix, transform)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:205
↓ 3 callersFunctioncopy
r"""Works like shutil.copy() for file, and shutil.copytree for dir, and supports hdfs. Copy data and mode bits ("cp src dst"). Return the file's
training/verl/utils/hdfs_io.py:84
↓ 3 callersMethodelementary_transforms
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1255
↓ 3 callersMethodeval_at
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2608
↓ 3 callersFunctionexec_helper
(code)
eval/Coding/mbpp/evaluate_mbpp.py:98
↓ 3 callersMethodexecute_all_sync
(self, method_name: str, *args, **kwargs)
training/verl/single_controller/ray/base.py:332
↓ 3 callersMethodexecute_rank_zero_async
(self, method_name: str, *args, **kwargs)
training/verl/single_controller/ray/base.py:322
↓ 3 callersMethodexp_nofunc
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2921
↓ 3 callersFunctionextract_code
(model_output: str, lmstyle: LMStyle)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/utils/extraction_utils.py:18
↓ 3 callersFunctionextract_instance_results
(results)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/pass_k_utils.py:56
↓ 3 callersFunctionextract_program
(text:str=None, trajectory:list=None, last_only=False)
eval/Math/Qwen25-Math/evaluation/trajectory.py:69
↓ 3 callersMethodfilter
Filter responses based on accuracy and truncation criteria. Args: reward_tensor: Tensor containing accuracy scor
training/verl/trainer/ppo/ray_trainer.py:630
↓ 3 callersMethodfunc
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5348
↓ 3 callersMethodfunc_common_args
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5889
↓ 3 callersFunctionfunc_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
training/verl/single_controller/ray/base.py:36
↓ 3 callersMethodfunc_multi_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6133
↓ 3 callersMethodfunc_single_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6055
↓ 3 callersFunctionget_constant_schedule_with_warmup
( optimizer: Optimizer, num_warmup_steps: int, last_epoch: int = -1, )
training/verl/utils/torch_functional.py:423
↓ 3 callersFunctionget_default_kwargs_for_model_parallel_config
()
training/verl/utils/megatron/tensor_parallel.py:32
↓ 3 callersMethodget_lora_tokenizer
(self, lora_request: Optional[LoRARequest])
training/verl/third_party/vllm/vllm_v_0_3_1/tokenizer.py:52
↓ 3 callersFunctionget_metrics
( scenario: Scenario, args, benchmark: list[ CodeGenerationProblem | CodeExecutionProblem
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/runner/scenario_router.py:176
↓ 3 callersMethodget_num_unfinished_requests
Gets the number of unfinished requests.
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:340
↓ 3 callersFunctionget_parallel_model_from_config
(config, megatron_config, pre_process=None, post_process=None, value=False)
training/verl/utils/model.py:234
↓ 3 callersFunctionget_simple_examples
Returns an array of tuples, containing the string `input`, sympy `output` using the provided sympy `func`, and `symbolically` boolean for cal
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:25
↓ 3 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
training/verl/third_party/vllm/vllm_v_0_6_3/parallel_state.py:297
↓ 3 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
training/verl/third_party/vllm/vllm_v_0_5_4/parallel_state.py:288
↓ 3 callersFunctionhandle_ceil
Apply ceil() then return the ceil-ed expression. expr: Expr - sympy expression as an argument to ceil()
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1089
↓ 3 callersFunctionhandle_floor
Apply floor() then return the floored expression. expr: Expr - sympy expression as an argument to floor()
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1080
↓ 3 callersMethodhas_unfinished_requests
Returns True if there are unfinished requests.
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:344
↓ 3 callersFunctioninit_model_parallel_config
(config: DictConfig)
training/verl/utils/megatron_utils.py:201
↓ 3 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_6_3/parallel_state.py:199
↓ 3 callersMethodinsert_output
(self, output_list: list[str], pred_list: list[str])
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/benchmarks/code_execution.py:26
↓ 3 callersFunctionlatex2latex
(tex)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1126
↓ 3 callersFunctionload_code_generation_dataset
(release_version="release_v1")
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/benchmarks/code_generation.py:124
↓ 3 callersFunctionload_dtensor_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:363
↓ 3 callersFunctionload_dtensor_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:323
↓ 3 callersFunctionload_dtensor_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:252
↓ 3 callersFunctionload_fsdp_optimizer
(optimizer, device_id)
training/verl/utils/fsdp_utils.py:115
↓ 3 callersFunctionload_megatron_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:291
↓ 3 callersFunctionload_megatron_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:290
↓ 3 callersFunctionload_megatron_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:290
↓ 3 callersMethodload_model
( self, actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig,
training/verl/third_party/vllm/vllm_v_0_6_3/model_loader.py:207
↓ 3 callersMethodload_model
(self, actor_model: Union[PreTrainedModel, Dict], model_config: ModelConfig, device_config:
training/verl/third_party/vllm/vllm_v_0_5_4/model_loader.py:189
↓ 3 callersMethodload_model
(self, actor_model: Union[PreTrainedModel, Dict], model_config: Mo
training/verl/third_party/vllm/vllm_v_0_4_2/model_loader.py:178
↓ 3 callersFunctionload_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_3_1/model_loader.py:181
↓ 3 callersFunctionmake_batch_generator
(batches, vpp_size)
training/verl/utils/megatron/pipeline_parallel.py:43
↓ 3 callersMethodmathit
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4497
↓ 3 callersMethodoffload_model_weights
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/llm.py:274
↓ 3 callersFunctionparse_digits
(num)
eval/Math/Qwen25-Math/evaluation/grader.py:39
↓ 3 callersFunctionparse_ground_truth
(example: Dict[str, Any], data_name)
eval/Math/Qwen25-Math/evaluation/parser.py:575
↓ 3 callersFunctionparse_latex_answer
(sample)
eval/Math/Qwen25-Math/evaluation/math_utils.py:116
↓ 3 callersMethodpostfix_op
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2548
↓ 3 callersMethodrank
(self)
training/verl/single_controller/base/worker.py:175
↓ 3 callersMethodrelation_list
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1687
↓ 3 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
training/verl/models/llama/megatron/modeling_llama_megatron.py:458
↓ 3 callersFunctionsetup
(args)
eval/Math/Qwen25-Math/evaluation/math_eval.py:108
↓ 3 callersFunctionsplit_dict_tensor_into_batches
(tensors: TensorDict, batch_size)
training/verl/utils/torch_functional.py:203
↓ 3 callersFunctiontime_limit
(seconds: float)
eval/utils/grader.py:389
↓ 3 callersFunctiontime_limit
(seconds: float)
training/verl/utils/reward_score/evaluation_utils/math_util/grader.py:350
↓ 3 callersFunctiontime_limit
(seconds: float)
data_preprocessing/math_util/grader.py:389
↓ 3 callersMethodto_str
(precision)
training/verl/utils/torch_dtypes.py:74
↓ 3 callersMethodunary
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2284
↓ 3 callersMethodunary_nofunc
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2368
↓ 3 callersFunctionupdate_megatron_weight_loader
()
training/verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:306
↓ 3 callersFunctionupdate_megatron_weight_loader
()
training/verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:305
↓ 3 callersFunctionupdate_megatron_weight_loader
()
training/verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:305
↓ 3 callersMethodupdate_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
training/verl/workers/actor/base.py:54
↓ 3 callersMethodverify
(self, data)
training/verl/trainer/main_ppo.py:52
↓ 3 callersFunctionvocab_parallel_log_probs_from_logits
TODO(zhangchi.usc1992): We may change the implementation later
training/verl/utils/megatron/tensor_parallel.py:136
↓ 3 callersFunctionwrite_jsonl
Writes an iterable of dictionaries to jsonl
eval/utils/data.py:32
↓ 2 callersMethodADD
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2261
↓ 2 callersMethodE_NOTATION
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4381
↓ 2 callersMethodL_PAREN
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5226
↓ 2 callersMethodPERCENT_NUMBER
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4378
↓ 2 callersMethodSYMBOL
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4372
↓ 2 callersMethodVARIABLE
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4390
↓ 2 callersMethod__init__
(self, config)
training/verl/workers/megatron_workers.py:410
↓ 2 callersMethod_build_model_optimizer
(self, model_path, megatron_config: ModelParalle
training/verl/workers/megatron_workers.py:124
↓ 2 callersMethod_build_model_optimizer
(self, model_path, fsdp_config,
training/verl/workers/fsdp_workers.py:92
↓ 2 callersMethod_compute_loss
(self, batch)
training/verl/trainer/fsdp_sft_trainer.py:214
↓ 2 callersMethod_forward_micro_batch
(self, micro_batch)
training/verl/workers/critic/dp_critic.py:45
↓ 2 callersMethod_forward_micro_batch
(self, micro_batch, temperature)
training/verl/workers/actor/dp_actor.py:49
↓ 2 callersMethod_get_stats
Get Stats to be Logged to Prometheus.
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:600
↓ 2 callersFunction_is_frac
(expr: str)
training/verl/utils/reward_score/evaluation_utils/math_util/__init__.py:69
↓ 2 callersFunction_is_frac
(expr: str)
data_preprocessing/math_util/__init__.py:69
↓ 2 callersFunction_is_non_local
(path)
training/verl/utils/fs.py:29
↓ 2 callersMethod_make_minibatch_iterator
Make minibatch iterator for updating the actor See PPO paper for details. https://arxiv.org/abs/1707.06347
training/verl/workers/actor/dp_prime.py:56
↓ 2 callersFunction_normalize
Normalize answer expressions.
training/verl/utils/reward_score/evaluation_utils/math_util/__init__.py:109
↓ 2 callersFunction_normalize
Normalize answer expressions.
data_preprocessing/math_util/__init__.py:109
↓ 2 callersMethod_offload_params_to_cpu
(self, pp_rank, to_empty=False)
training/verl/workers/hybrid_engine/megatron_vllm.py:102
← previousnext →201–300 of 2,604, ranked by callers