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
↓ 1 callers
Method
exitCeil_group
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:338
↓ 1 callers
Method
exitComp
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:284
↓ 1 callers
Method
exitComp_nofunc
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:293
↓ 1 callers
Method
exitDet
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:104
↓ 1 callers
Method
exitElementary_transform
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:77
↓ 1 callers
Method
exitElementary_transforms
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:86
↓ 1 callers
Method
exitEquality
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:149
↓ 1 callers
Method
exitEval_at
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:239
↓ 1 callers
Method
exitEval_at_sub
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:248
↓ 1 callers
Method
exitEval_at_sup
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:257
↓ 1 callers
Method
exitExp
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:266
↓ 1 callers
Method
exitExp_nofunc
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:275
↓ 1 callers
Method
exitExpr
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:158
↓ 1 callers
Method
exitFloor_group
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:329
↓ 1 callers
Method
exitFrac
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:401
↓ 1 callers
Method
exitFunc
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:473
↓ 1 callers
Method
exitFunc_common_args
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:491
↓ 1 callers
Method
exitFunc_multi_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:527
↓ 1 callers
Method
exitFunc_multi_arg_noparens
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:536
↓ 1 callers
Method
exitFunc_normal_functions_multi_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:428
↓ 1 callers
Method
exitFunc_normal_functions_single_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:419
↓ 1 callers
Method
exitFunc_normal_multi_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:464
↓ 1 callers
Method
exitFunc_normal_single_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:455
↓ 1 callers
Method
exitFunc_operator_names_multi_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:446
↓ 1 callers
Method
exitFunc_operator_names_single_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:437
↓ 1 callers
Method
exitFunc_single_arg
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:509
↓ 1 callers
Method
exitFunc_single_arg_noparens
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:518
↓ 1 callers
Method
exitGroup
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:302
↓ 1 callers
Method
exitLimit_sub
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:500
↓ 1 callers
Method
exitMath
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:23
↓ 1 callers
Method
exitMathit
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:383
↓ 1 callers
Method
exitMathit_text
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:392
↓ 1 callers
Method
exitMatrix
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:95
↓ 1 callers
Method
exitMatrix_row
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:113
↓ 1 callers
Method
exitMp
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:176
↓ 1 callers
Method
exitMp_nofunc
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:185
↓ 1 callers
Method
exitNorm_group
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:311
↓ 1 callers
Method
exitPostfix
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:212
↓ 1 callers
Method
exitPostfix_nofunc
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:221
↓ 1 callers
Method
exitPostfix_op
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:230
↓ 1 callers
Method
exitRelation
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:122
↓ 1 callers
Method
exitRelation_list
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:131
↓ 1 callers
Method
exitRelation_list_content
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:140
↓ 1 callers
Method
exitSubeq
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:563
↓ 1 callers
Method
exitSubexpr
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:545
↓ 1 callers
Method
exitSupeq
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:572
↓ 1 callers
Method
exitSupexpr
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:554
↓ 1 callers
Method
exitTransform_assignment
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:68
↓ 1 callers
Method
exitTransform_atom
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:41
↓ 1 callers
Method
exitTransform_scale
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:50
↓ 1 callers
Method
exitTransform_swap
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:59
↓ 1 callers
Method
exitTranspose
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:32
↓ 1 callers
Method
exitUnary
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:194
↓ 1 callers
Method
exitUnary_nofunc
(self, ctx)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSListener.py:203
↓ 1 callers
Function
extract_answer_number
(sentence: str)
eval/Math/Qwen25-Math/evaluation/math_utils.py:201
↓ 1 callers
Function
extract_execution_code
(model_output: str, lmstyle: LMStyle, cot: bool = False)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/utils/extraction_utils.py:69
↓ 1 callers
Function
extract_program_output
extract output between ```output\n...\n```, use regex, there might be multiple outputs, each output may have multiple lines
eval/Math/Qwen25-Math/evaluation/trajectory.py:109
↓ 1 callers
Function
extract_solution
(solution_str, method='strict')
training/verl/utils/reward_score/gsm8k.py:18
↓ 1 callers
Function
extract_test_output_code
(model_output: str, lmstyle: LMStyle = None)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/utils/extraction_utils.py:40
↓ 1 callers
Function
filter_questions
(data, llm, tokenizer, sampling_params)
data_preprocessing/stage2_format_choice.py:153
↓ 1 callers
Function
find_box
(pred_str: str)
eval/Math/Qwen25-Math/evaluation/parser.py:411
↓ 1 callers
Method
fit
(self)
training/verl/trainer/fsdp_sft_trainer.py:306
↓ 1 callers
Method
fit
The training loop of PRIME.
training/verl/trainer/ppo/ray_trainer.py:427
↓ 1 callers
Function
fix_a_slash_b
(string)
training/verl/utils/reward_score/math.py:125
↓ 1 callers
Function
fix_fracs
(string)
training/verl/utils/reward_score/math.py:93
↓ 1 callers
Function
fix_sqrt
(string)
training/verl/utils/reward_score/math.py:150
↓ 1 callers
Function
format_intervals
(prediction)
eval/utils/grader.py:401
↓ 1 callers
Function
format_intervals
(prediction)
training/verl/utils/reward_score/evaluation_utils/math_util/grader.py:362
↓ 1 callers
Function
format_intervals
(prediction)
data_preprocessing/math_util/grader.py:401
↓ 1 callers
Function
format_prompt_self_repair
( question: str, LanguageModelStyle: LMStyle, code, result, metadata )
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/self_repair.py:175
↓ 1 callers
Function
format_testcase_func_name_input
use the form of "assert func_name(input) == "
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/test_output_prediction.py:44
↓ 1 callers
Method
forward
(self, *inputs, **kwargs)
training/verl/workers/hybrid_engine/megatron_vllm.py:127
↓ 1 callers
Method
forward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
training/verl/workers/reward_model/megatron/reward_model.py:185
↓ 1 callers
Method
free_cache_engine
(self)
training/verl/third_party/vllm/vllm_v_0_3_1/llm.py:136
↓ 1 callers
Method
from_detached
(cls, worker_names=None, ray_cls_with_init=None)
training/verl/single_controller/ray/base.py:285
↓ 1 callers
Method
from_engine_args
Creates an LLM engine from the engine arguments.
training/verl/third_party/vllm/vllm_v_0_3_1/llm_engine_sp.py:222
↓ 1 callers
Method
from_engine_args
Creates an LLM engine from the engine arguments.
training/verl/third_party/vllm/vllm_v_0_6_3/llm_engine_sp.py:372
↓ 1 callers
Method
from_engine_args
Creates an LLM engine from the engine arguments.
training/verl/third_party/vllm/vllm_v_0_5_4/llm_engine_sp.py:293
↓ 1 callers
Method
from_engine_args
Creates an LLM engine from the engine arguments.
training/verl/third_party/vllm/vllm_v_0_4_2/llm_engine_sp.py:247
↓ 1 callers
Method
func_normal_functions_multi_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4895
↓ 1 callers
Method
func_normal_functions_single_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4844
↓ 1 callers
Method
func_operator_names_multi_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:5057
↓ 1 callers
Method
func_operator_names_single_arg
(self)
eval/Math/Qwen25-Math/evaluation/latex2sympy/gen/PSParser.py:4994
↓ 1 callers
Function
gather_from_labels
Gather the label from data. The value in label should be [0, vocab_size) Args: data: (..., vocab_size) label (torch.IntTensor) :
training/verl/utils/torch_functional.py:34
↓ 1 callers
Function
generate_function
(name)
training/verl/single_controller/ray/base.py:393
↓ 1 callers
Method
generate_gemini_solutions
(self, source, problem_list: List[str])
data_preprocessing/stage4_judge.py:136
↓ 1 callers
Function
generate_sample_batch
(question_list)
eval/Math/aime/evaluate_aime.py:42
↓ 1 callers
Function
generate_sample_batch
(question_list)
eval/Math/amc/evaluate_amc.py:43
↓ 1 callers
Function
generate_sample_batch
(question_list)
eval/Math/math/evaluate_math.py:40
↓ 1 callers
Function
generate_sample_batch
(question_list)
eval/Coding/human_eval/evaluate_human_eval.py:84
↓ 1 callers
Function
generate_sample_batch
(question_list)
eval/Coding/mbpp/evaluate_mbpp.py:40
↓ 1 callers
Function
generate_sample_batch
(question_list)
eval/Coding/leetcode/evaluate_leetcode.py:52
↓ 1 callers
Method
generate_solutions
(self, source, problem_list: List[str])
data_preprocessing/stage4_judge.py:192
↓ 1 callers
Method
get_availale_master_addr_port
(self)
training/verl/single_controller/base/worker.py:63
↓ 1 callers
Function
get_base_model_question_template_answer
(question: CodeGenerationProblem)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_generation.py:175
↓ 1 callers
Function
get_cache_path
(model_repr:str, args)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/utils/path_utils.py:15
↓ 1 callers
Function
get_cllama_question_template_answer
(question: CodeGenerationProblem)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/code_generation.py:54
↓ 1 callers
Function
get_cllama_question_template_answer
( question: TestOutputPredictionProblem, testcase_input: str )
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/test_output_prediction.py:84
↓ 1 callers
Function
get_cllama_question_template_answer
(question: str, code, result, metadata)
eval/Coding/livecodebench/LiveCodeBench-main/lcb_runner/prompts/self_repair.py:74
↓ 1 callers
Function
get_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
training/verl/utils/torch_functional.py:380
← previous
next →
801–900 of 2,604, ranked by callers