MCPcopy Create free account

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

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

↓ 494 callersFunctionassert_equal
(latex, expr, variable_values={}, symbolically=False)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:82
↓ 168 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
training/verl/utils/memory_buffer.py:40
↓ 118 callersMethodto
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
training/verl/protocol.py:224
↓ 115 callersMethodexpr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1966
↓ 72 callersMethodnamed_parameters
(self)
training/verl/utils/memory_buffer.py:205
↓ 63 callersMethod__init__
(self, input, output=sys.stdout)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:802
↓ 57 callersMethodenterRule
(self, listener)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2101
↓ 57 callersMethodexitRule
(self, listener)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2105
↓ 48 callersMethodupdate
(self, current_kl, n_steps)
training/verl/trainer/ppo/core_algos.py:51
↓ 41 callersFunctionlog_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
training/verl/utils/debug/performance.py:20
↓ 39 callersMethodencode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
training/verl/workers/rollout/tokenizer.py:70
↓ 38 callersMethodsupexpr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6313
↓ 35 callersFunctionfunc
(*args, **kwargs)
training/verl/single_controller/ray/base.py:38
↓ 34 callersFunctionconvert_expr
(expr)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:200
↓ 34 callersMethoddecode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
training/verl/workers/rollout/tokenizer.py:86
↓ 26 callersMethodgroup
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:3315
↓ 25 callersMethodatom
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4404
↓ 22 callersMethodsubexpr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6236
↓ 21 callersFunctioncopy_local_path_from_hdfs
Copy src from hdfs to local if src is on hdfs or directly return src. If cache_dir is None, we will use the default cache dir of the system. Note
training/verl/utils/fs.py:55
↓ 20 callersMethodeval
(self)
training/verl/workers/hybrid_engine/megatron_vllm.py:149
↓ 19 callersMethodtranspose
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:918
↓ 17 callersFunction_Pow
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:21
↓ 16 callersFunction_Mul
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:17
↓ 16 callersMethodconcat
Concat a list of DataProto. The batch is concatenated among dim=0. The meta_info is assumed to be identical and will use the first one.
training/verl/protocol.py:420
↓ 16 callersFunctionget_generic_question_template_test_completion
( question: TestOutputPredictionProblem, testcase_input: str )
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/test_output_prediction.py:68
↓ 16 callersFunctionhf_tokenizer
Create a huggingface pretrained tokenizer. Args: name (str): The name of the tokenizer. correct_pad_token (bool): Whether to corr
training/verl/utils/tokenizer.py:35
↓ 15 callersFunction_Add
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:13
↓ 14 callersMethodLETTER_NO_E
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4275
↓ 14 callersFunction_log
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/all_good_test.py:36
↓ 14 callersMethodgenerate
Generates the completions for the input prompts. NOTE: This class automatically batches the given prompts, considering the memory con
training/verl/third_party/vllm/vllm_v_0_3_1/llm.py:148
↓ 14 callersFunctionoffload_fsdp_param_and_grad
(module, offload_grad=False)
training/verl/utils/fsdp_utils.py:85
↓ 14 callersFunctionredistribute_dtensor
(param_name: str, loaded_weights: DTensor, parallelize_plan: Dict = None)
training/verl/third_party/vllm/vllm_v_0_6_3/dtensor_weight_loaders.py:312
↓ 14 callersMethodto_dtype
(precision)
training/verl/utils/torch_dtypes.py:63
↓ 13 callersFunction_factorial
(a)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/all_good_test.py:32
↓ 13 callersMethoddump
(self, data: io.BytesIO, name)
training/verl/utils/debug/trajectory_tracker.py:59
↓ 13 callersFunctionget_generic_question_template_answer
(question: CodeGenerationProblem)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_generation.py:40
↓ 13 callersMethodstep
Performs one decoding iteration and returns newly generated results. This function performs one decoding iteration of the engine. It first
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:574
↓ 12 callersMethodlog
(self, data, step, backend=None)
training/verl/utils/tracking.py:47
↓ 12 callersFunctionredistribute_dtensor
(param_name: str, loaded_weights: DTensor, parallelize_plan: Dict = None)
training/verl/third_party/vllm/vllm_v_0_5_4/dtensor_weight_loaders.py:274
↓ 11 callersMethodadditive
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2014
↓ 11 callersMethodapply
(self, code)
eval/Math/Qwen25-Math/evaluation/python_executor.py:140
↓ 11 callersMethodchunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
training/verl/protocol.py:390
↓ 11 callersMethodfrom_dict
Create a DataProto from a dict of tensors. This assumes that 1. All the tensor in tensors have the same dim0 2. Only dim0 is the batch
training/verl/protocol.py:189
↓ 11 callersMethodread
(self, *args, **kwargs)
eval/utils/execution.py:125
↓ 11 callersMethodrelation
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1589
↓ 10 callersFunction_Abs
(a)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/all_good_test.py:28
↓ 10 callersFunctionappend_to_dict
(data: Dict, new_data: Dict)
training/verl/utils/py_functional.py:41
↓ 10 callersFunctionconvert_atom
(atom)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:590
↓ 10 callersMethoddet
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1440
↓ 10 callersMethodinit_model
(self, cupy_port: Optional[int] = None)
training/verl/third_party/vllm/vllm_v_0_3_1/worker.py:89
↓ 10 callersFunctionload_fsdp_param_and_grad
(module, device_id, load_grad=False)
training/verl/utils/fsdp_utils.py:95
↓ 10 callersFunctionredistribute_dtensor
(param_name: str, loaded_weights: DTensor, parallelize_plan: Dict = None)
training/verl/third_party/vllm/vllm_v_0_4_2/dtensor_weight_loaders.py:205
↓ 10 callersMethodselect
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
training/verl/protocol.py:238
↓ 10 callersMethodto_dict
(self)
training/verl/single_controller/base/worker.py:78
↓ 9 callersMethodequality
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1920
↓ 9 callersMethodget
(self)
training/verl/protocol.py:493
↓ 9 callersMethodget_megatron_rank_info
(self)
training/verl/single_controller/base/megatron/worker.py:33
↓ 9 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
eval/Math/Qwen25-Math/evaluation/grader.py:73
↓ 9 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
data_preprocessing/math_util/grader.py:164
↓ 9 callersMethodpop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
training/verl/protocol.py:273
↓ 9 callersMethodrelation_list_content
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1830
↓ 9 callersFunctiontime_limit
(seconds: float)
eval/utils/execution_leetcode.py:591
↓ 9 callersMethodtransform_atom
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:972
↓ 9 callersMethodunion
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
training/verl/protocol.py:331
↓ 8 callersFunctionget_check_prompt
(question: str, result, metadata)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/self_repair.py:35
↓ 8 callersFunctionget_generic_question_template_answer
(question: str, code, result, metadata)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/self_repair.py:64
↓ 8 callersMethodget_resource_pool
Get the resource pool of the worker_cls
training/verl/trainer/ppo/ray_trainer.py:76
↓ 8 callersMethodget_tokenizer_for_seq
(self, sequence: Sequence)
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:146
↓ 8 callersFunctionmasked_mean
Compute mean of tensor with a masked values.
training/verl/utils/torch_functional.py:107
↓ 8 callersMethodmp
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2109
↓ 8 callersFunctionset_random_seed
(seed)
training/verl/workers/megatron_workers.py:47
↓ 8 callersMethodtrain
(self)
training/verl/workers/hybrid_engine/megatron_vllm.py:153
↓ 7 callersMethodLT
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1563
↓ 7 callersMethodNUMBER
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4375
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
training/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:28
↓ 7 callersFunctionclean_traceback
(error_traceback)
training/verl/utils/reward_score/evaluation_utils/code_util/testing_util.py:83
↓ 7 callersMethodexp
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2815
↓ 7 callersMethodfrac
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4626
↓ 7 callersMethodget_sliding_window
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/config.py:181
↓ 7 callersFunctionlatex2sympy
(sympy: str, variable_values={})
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:46
↓ 7 callersFunctionload_jsonl
(file: Union[str, Path])
eval/Math/Qwen25-Math/evaluation/utils.py:20
↓ 7 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
eval/utils/grader.py:164
↓ 6 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
training/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:97
↓ 6 callersFunctioncheck_model
(model_key)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/old_results_check.py:12
↓ 6 callersFunctioncombined_int_check
(val)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/testing_util.py:79
↓ 6 callersFunctioncombined_int_check
(val)
training/verl/utils/reward_score/evaluation_utils/code_util/testing_util.py:80
↓ 6 callersFunctionestimate_pass_at_k
Estimates pass@k of each problem and returns them in an array.
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/pass_k_utils.py:4
↓ 6 callersFunctionget_fsdp_wrap_policy
(module, config=None)
training/verl/utils/fsdp_utils.py:40
↓ 6 callersMethodget_supported_archs
()
training/verl/models/registry.py:65
↓ 6 callersFunctionlogprobs_from_logits
See: https://github.com/pytorch/pytorch/issues/563#issuecomment-330103591
training/verl/utils/torch_functional.py:49
↓ 6 callersFunctionoffload_fsdp_optimizer
(optimizer)
training/verl/utils/fsdp_utils.py:105
↓ 6 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
training/verl/utils/torch_functional.py:209
↓ 6 callersMethodsave_checkpoint
(self, step)
training/verl/trainer/fsdp_sft_trainer.py:288
↓ 6 callersFunctionstrip_string
(string, skip_unit=False)
eval/Math/Qwen25-Math/evaluation/parser.py:212
↓ 6 callersMethodtransform_scale
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1040
↓ 6 callersFunctiontruncatefn
(s, length=300)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/testing_util.py:26
↓ 6 callersFunctiontruncatefn
(s, length=300)
training/verl/utils/reward_score/evaluation_utils/code_util/testing_util.py:27
↓ 5 callersMethodSUB
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2264
↓ 5 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
training/verl/models/llama/megatron/modeling_llama_megatron.py:81
↓ 5 callersFunction_hdfs_cmd
(cmd: str)
training/verl/utils/hdfs_io.py:139
next →1–100 of 2,604, ranked by callers