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
↓ 3 callers
Method
_validate
(self)
training/verl/trainer/ppo/ray_trainer.py:801
↓ 3 callers
Method
_verify_cuda_graph
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/config.py:153
↓ 3 callers
Method
_verify_quantization
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/config.py:124
↓ 3 callers
Function
add_flat
(lh, rh)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:298
↓ 3 callers
Function
allgather_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 callers
Method
atom_expr
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4304
↓ 3 callers
Function
build_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 callers
Function
calc_padded_numel
for cuda memory alignment, make sure alignment by 128-bits
training/verl/utils/memory_buffer.py:51
↓ 3 callers
Function
clean_expr_str
(expr_str)
eval/Math/Qwen25-Math/evaluation/math_utils.py:74
↓ 3 callers
Function
compute_transformers_input_shapes
(batches, meta_info)
training/verl/utils/megatron/pipeline_parallel.py:22
↓ 3 callers
Function
convert_elementary_transform
(matrix, transform)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:205
↓ 3 callers
Function
copy
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 callers
Method
elementary_transforms
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1255
↓ 3 callers
Method
eval_at
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2608
↓ 3 callers
Function
exec_helper
(code)
eval/Coding/mbpp/evaluate_mbpp.py:98
↓ 3 callers
Method
execute_all_sync
(self, method_name: str, *args, **kwargs)
training/verl/single_controller/ray/base.py:332
↓ 3 callers
Method
execute_rank_zero_async
(self, method_name: str, *args, **kwargs)
training/verl/single_controller/ray/base.py:322
↓ 3 callers
Method
exp_nofunc
(self, _p=0)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2921
↓ 3 callers
Function
extract_code
(model_output: str, lmstyle: LMStyle)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/utils/extraction_utils.py:18
↓ 3 callers
Function
extract_instance_results
(results)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/evaluation/pass_k_utils.py:56
↓ 3 callers
Function
extract_program
(text:str=None, trajectory:list=None, last_only=False)
eval/Math/Qwen25-Math/evaluation/trajectory.py:69
↓ 3 callers
Method
filter
Filter responses based on accuracy and truncation criteria. Args: reward_tensor: Tensor containing accuracy scor
training/verl/trainer/ppo/ray_trainer.py:630
↓ 3 callers
Method
func
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5348
↓ 3 callers
Method
func_common_args
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5889
↓ 3 callers
Function
func_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
training/verl/single_controller/ray/base.py:36
↓ 3 callers
Method
func_multi_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6133
↓ 3 callers
Method
func_single_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:6055
↓ 3 callers
Function
get_constant_schedule_with_warmup
( optimizer: Optimizer, num_warmup_steps: int, last_epoch: int = -1, )
training/verl/utils/torch_functional.py:423
↓ 3 callers
Function
get_default_kwargs_for_model_parallel_config
()
training/verl/utils/megatron/tensor_parallel.py:32
↓ 3 callers
Method
get_lora_tokenizer
(self, lora_request: Optional[LoRARequest])
training/verl/third_party/vllm/vllm_v_0_3_1/tokenizer.py:52
↓ 3 callers
Function
get_metrics
( scenario: Scenario, args, benchmark: list[ CodeGenerationProblem | CodeExecutionProblem
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/runner/scenario_router.py:176
↓ 3 callers
Method
get_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 callers
Function
get_parallel_model_from_config
(config, megatron_config, pre_process=None, post_process=None, value=False)
training/verl/utils/model.py:234
↓ 3 callers
Function
get_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 callers
Function
get_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 callers
Function
get_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 callers
Function
handle_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 callers
Function
handle_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 callers
Method
has_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 callers
Function
init_model_parallel_config
(config: DictConfig)
training/verl/utils/megatron_utils.py:201
↓ 3 callers
Function
initialize_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 callers
Method
insert_output
(self, output_list: list[str], pred_list: list[str])
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/benchmarks/code_execution.py:26
↓ 3 callers
Function
latex2latex
(tex)
eval/Math/Qwen25-Math/evaluation/latex2sympy/latex2sympy2.py:1126
↓ 3 callers
Function
load_code_generation_dataset
(release_version="release_v1")
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/benchmarks/code_generation.py:124
↓ 3 callers
Function
load_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 callers
Function
load_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 callers
Function
load_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 callers
Function
load_fsdp_optimizer
(optimizer, device_id)
training/verl/utils/fsdp_utils.py:115
↓ 3 callers
Function
load_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 callers
Function
load_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 callers
Function
load_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 callers
Method
load_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 callers
Method
load_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 callers
Method
load_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 callers
Function
load_weights
(actor_weights: Dict, vllm_model: nn.Module)
training/verl/third_party/vllm/vllm_v_0_3_1/model_loader.py:181
↓ 3 callers
Function
make_batch_generator
(batches, vpp_size)
training/verl/utils/megatron/pipeline_parallel.py:43
↓ 3 callers
Method
mathit
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4497
↓ 3 callers
Method
offload_model_weights
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/llm.py:274
↓ 3 callers
Function
parse_digits
(num)
eval/Math/Qwen25-Math/evaluation/grader.py:39
↓ 3 callers
Function
parse_ground_truth
(example: Dict[str, Any], data_name)
eval/Math/Qwen25-Math/evaluation/parser.py:575
↓ 3 callers
Function
parse_latex_answer
(sample)
eval/Math/Qwen25-Math/evaluation/math_utils.py:116
↓ 3 callers
Method
postfix_op
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2548
↓ 3 callers
Method
rank
(self)
training/verl/single_controller/base/worker.py:175
↓ 3 callers
Method
relation_list
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:1687
↓ 3 callers
Method
set_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 callers
Function
setup
(args)
eval/Math/Qwen25-Math/evaluation/math_eval.py:108
↓ 3 callers
Function
split_dict_tensor_into_batches
(tensors: TensorDict, batch_size)
training/verl/utils/torch_functional.py:203
↓ 3 callers
Function
time_limit
(seconds: float)
eval/utils/grader.py:389
↓ 3 callers
Function
time_limit
(seconds: float)
training/verl/utils/reward_score/evaluation_utils/math_util/grader.py:350
↓ 3 callers
Function
time_limit
(seconds: float)
data_preprocessing/math_util/grader.py:389
↓ 3 callers
Method
to_str
(precision)
training/verl/utils/torch_dtypes.py:74
↓ 3 callers
Method
unary
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2284
↓ 3 callers
Method
unary_nofunc
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2368
↓ 3 callers
Function
update_megatron_weight_loader
()
training/verl/third_party/vllm/vllm_v_0_6_3/megatron_weight_loaders.py:306
↓ 3 callers
Function
update_megatron_weight_loader
()
training/verl/third_party/vllm/vllm_v_0_5_4/megatron_weight_loaders.py:305
↓ 3 callers
Function
update_megatron_weight_loader
()
training/verl/third_party/vllm/vllm_v_0_4_2/megatron_weight_loaders.py:305
↓ 3 callers
Method
update_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 callers
Method
verify
(self, data)
training/verl/trainer/main_ppo.py:52
↓ 3 callers
Function
vocab_parallel_log_probs_from_logits
TODO(zhangchi.usc1992): We may change the implementation later
training/verl/utils/megatron/tensor_parallel.py:136
↓ 3 callers
Function
write_jsonl
Writes an iterable of dictionaries to jsonl
eval/utils/data.py:32
↓ 2 callers
Method
ADD
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:2261
↓ 2 callers
Method
E_NOTATION
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4381
↓ 2 callers
Method
L_PAREN
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5226
↓ 2 callers
Method
PERCENT_NUMBER
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4378
↓ 2 callers
Method
SYMBOL
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4372
↓ 2 callers
Method
VARIABLE
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4390
↓ 2 callers
Method
__init__
(self, config)
training/verl/workers/megatron_workers.py:410
↓ 2 callers
Method
_build_model_optimizer
(self, model_path, megatron_config: ModelParalle
training/verl/workers/megatron_workers.py:124
↓ 2 callers
Method
_build_model_optimizer
(self, model_path, fsdp_config,
training/verl/workers/fsdp_workers.py:92
↓ 2 callers
Method
_compute_loss
(self, batch)
training/verl/trainer/fsdp_sft_trainer.py:214
↓ 2 callers
Method
_forward_micro_batch
(self, micro_batch)
training/verl/workers/critic/dp_critic.py:45
↓ 2 callers
Method
_forward_micro_batch
(self, micro_batch, temperature)
training/verl/workers/actor/dp_actor.py:49
↓ 2 callers
Method
_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 callers
Function
_is_frac
(expr: str)
training/verl/utils/reward_score/evaluation_utils/math_util/__init__.py:69
↓ 2 callers
Function
_is_frac
(expr: str)
data_preprocessing/math_util/__init__.py:69
↓ 2 callers
Function
_is_non_local
(path)
training/verl/utils/fs.py:29
↓ 2 callers
Method
_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 callers
Function
_normalize
Normalize answer expressions.
training/verl/utils/reward_score/evaluation_utils/math_util/__init__.py:109
↓ 2 callers
Function
_normalize
Normalize answer expressions.
data_preprocessing/math_util/__init__.py:109
↓ 2 callers
Method
_offload_params_to_cpu
(self, pp_rank, to_empty=False)
training/verl/workers/hybrid_engine/megatron_vllm.py:102
← previous
next →
201–300 of 2,604, ranked by callers