Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PRIME-RL/PRIME
/ functions
Functions
2,604 in github.com/PRIME-RL/PRIME
⨍
Functions
2,604
◇
Types & classes
287
↳
Endpoints
32
↓ 494 callers
Function
assert_equal
(latex, expr, variable_values={}, symbolically=False)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:82
↓ 168 callers
Method
get
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 callers
Method
to
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
training/verl/protocol.py:224
↓ 115 callers
Method
expr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1966
↓ 72 callers
Method
named_parameters
(self)
training/verl/utils/memory_buffer.py:205
↓ 63 callers
Method
__init__
(self, input, output=sys.stdout)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:802
↓ 57 callers
Method
enterRule
(self, listener)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2101
↓ 57 callers
Method
exitRule
(self, listener)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2105
↓ 48 callers
Method
update
(self, current_kl, n_steps)
training/verl/trainer/ppo/core_algos.py:51
↓ 41 callers
Function
log_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
training/verl/utils/debug/performance.py:20
↓ 39 callers
Method
encode
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 callers
Method
supexpr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6313
↓ 35 callers
Function
func
(*args, **kwargs)
training/verl/single_controller/ray/base.py:38
↓ 34 callers
Function
convert_expr
(expr)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:200
↓ 34 callers
Method
decode
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 callers
Method
group
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:3315
↓ 25 callers
Method
atom
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4404
↓ 22 callers
Method
subexpr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6236
↓ 21 callers
Function
copy_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 callers
Method
eval
(self)
training/verl/workers/hybrid_engine/megatron_vllm.py:149
↓ 19 callers
Method
transpose
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:918
↓ 17 callers
Function
_Pow
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:21
↓ 16 callers
Function
_Mul
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:17
↓ 16 callers
Method
concat
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 callers
Function
get_generic_question_template_test_completion
( question: TestOutputPredictionProblem, testcase_input: str )
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/test_output_prediction.py:68
↓ 16 callers
Function
hf_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 callers
Function
_Add
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/context.py:13
↓ 14 callers
Method
LETTER_NO_E
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4275
↓ 14 callers
Function
_log
(a, b)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/all_good_test.py:36
↓ 14 callers
Method
generate
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 callers
Function
offload_fsdp_param_and_grad
(module, offload_grad=False)
training/verl/utils/fsdp_utils.py:85
↓ 14 callers
Function
redistribute_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 callers
Method
to_dtype
(precision)
training/verl/utils/torch_dtypes.py:63
↓ 13 callers
Function
_factorial
(a)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/all_good_test.py:32
↓ 13 callers
Method
dump
(self, data: io.BytesIO, name)
training/verl/utils/debug/trajectory_tracker.py:59
↓ 13 callers
Function
get_generic_question_template_answer
(question: CodeGenerationProblem)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_generation.py:40
↓ 13 callers
Method
step
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 callers
Method
log
(self, data, step, backend=None)
training/verl/utils/tracking.py:47
↓ 12 callers
Function
redistribute_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 callers
Method
additive
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2014
↓ 11 callers
Method
apply
(self, code)
eval/Math/Qwen25-Math/evaluation/python_executor.py:140
↓ 11 callers
Method
chunk
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 callers
Method
from_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 callers
Method
read
(self, *args, **kwargs)
eval/utils/execution.py:125
↓ 11 callers
Method
relation
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1589
↓ 10 callers
Function
_Abs
(a)
eval/Math/Qwen25-Math/evaluation/latex2sympy/tests/all_good_test.py:28
↓ 10 callers
Function
append_to_dict
(data: Dict, new_data: Dict)
training/verl/utils/py_functional.py:41
↓ 10 callers
Function
convert_atom
(atom)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:590
↓ 10 callers
Method
det
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1440
↓ 10 callers
Method
init_model
(self, cupy_port: Optional[int] = None)
training/verl/third_party/vllm/vllm_v_0_3_1/worker.py:89
↓ 10 callers
Function
load_fsdp_param_and_grad
(module, device_id, load_grad=False)
training/verl/utils/fsdp_utils.py:95
↓ 10 callers
Function
redistribute_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 callers
Method
select
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 callers
Method
to_dict
(self)
training/verl/single_controller/base/worker.py:78
↓ 9 callers
Method
equality
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1920
↓ 9 callers
Method
get
(self)
training/verl/protocol.py:493
↓ 9 callers
Method
get_megatron_rank_info
(self)
training/verl/single_controller/base/megatron/worker.py:33
↓ 9 callers
Function
math_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 callers
Function
math_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 callers
Method
pop
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 callers
Method
relation_list_content
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1830
↓ 9 callers
Function
time_limit
(seconds: float)
eval/utils/execution_leetcode.py:591
↓ 9 callers
Method
transform_atom
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:972
↓ 9 callers
Method
union
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 callers
Function
get_check_prompt
(question: str, result, metadata)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/self_repair.py:35
↓ 8 callers
Function
get_generic_question_template_answer
(question: str, code, result, metadata)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/self_repair.py:64
↓ 8 callers
Method
get_resource_pool
Get the resource pool of the worker_cls
training/verl/trainer/ppo/ray_trainer.py:76
↓ 8 callers
Method
get_tokenizer_for_seq
(self, sequence: Sequence)
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:146
↓ 8 callers
Function
masked_mean
Compute mean of tensor with a masked values.
training/verl/utils/torch_functional.py:107
↓ 8 callers
Method
mp
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2109
↓ 8 callers
Function
set_random_seed
(seed)
training/verl/workers/megatron_workers.py:47
↓ 8 callers
Method
train
(self)
training/verl/workers/hybrid_engine/megatron_vllm.py:153
↓ 7 callers
Method
LT
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1563
↓ 7 callers
Method
NUMBER
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4375
↓ 7 callers
Function
_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 callers
Function
clean_traceback
(error_traceback)
training/verl/utils/reward_score/evaluation_utils/code_util/testing_util.py:83
↓ 7 callers
Method
exp
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2815
↓ 7 callers
Method
frac
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4626
↓ 7 callers
Method
get_sliding_window
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/config.py:181
↓ 7 callers
Function
latex2sympy
(sympy: str, variable_values={})
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:46
↓ 7 callers
Function
load_jsonl
(file: Union[str, Path])
eval/Math/Qwen25-Math/evaluation/utils.py:20
↓ 7 callers
Function
math_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 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
training/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:97
↓ 6 callers
Function
check_model
(model_key)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/old_results_check.py:12
↓ 6 callers
Function
combined_int_check
(val)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/testing_util.py:79
↓ 6 callers
Function
combined_int_check
(val)
training/verl/utils/reward_score/evaluation_utils/code_util/testing_util.py:80
↓ 6 callers
Function
estimate_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 callers
Function
get_fsdp_wrap_policy
(module, config=None)
training/verl/utils/fsdp_utils.py:40
↓ 6 callers
Method
get_supported_archs
()
training/verl/models/registry.py:65
↓ 6 callers
Function
logprobs_from_logits
See: https://github.com/pytorch/pytorch/issues/563#issuecomment-330103591
training/verl/utils/torch_functional.py:49
↓ 6 callers
Function
offload_fsdp_optimizer
(optimizer)
training/verl/utils/fsdp_utils.py:105
↓ 6 callers
Function
pad_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 callers
Method
save_checkpoint
(self, step)
training/verl/trainer/fsdp_sft_trainer.py:288
↓ 6 callers
Function
strip_string
(string, skip_unit=False)
eval/Math/Qwen25-Math/evaluation/parser.py:212
↓ 6 callers
Method
transform_scale
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1040
↓ 6 callers
Function
truncatefn
(s, length=300)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/testing_util.py:26
↓ 6 callers
Function
truncatefn
(s, length=300)
training/verl/utils/reward_score/evaluation_utils/code_util/testing_util.py:27
↓ 5 callers
Method
SUB
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2264
↓ 5 callers
Method
__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
training/verl/models/llama/megatron/modeling_llama_megatron.py:81
↓ 5 callers
Function
_hdfs_cmd
(cmd: str)
training/verl/utils/hdfs_io.py:139
next →
1–100 of 2,604, ranked by callers