MCPcopy Create free account

hub / github.com/LeapLabTHU/limit-of-RLVR / functions

Functions1,933 in github.com/LeapLabTHU/limit-of-RLVR

↓ 494 callersFunctionassert_equal
(latex, expr, variable_values={}, symbolically=False)
math/examples/math_eval/latex2sympy/tests/context.py:82
↓ 153 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
code/DeepCoder/verl/verl/utils/memory_buffer.py:40
↓ 115 callersMethodexpr
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1966
↓ 98 callersMethodto
move the batch to device Args: device (torch.device, str): torch device Returns: DataProto: the current Data
code/DeepCoder/verl/verl/protocol.py:322
↓ 63 callersMethod__init__
(self, input, output=sys.stdout)
math/examples/math_eval/latex2sympy/gen/PSParser.py:802
↓ 57 callersMethodenterRule
(self, listener)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2101
↓ 57 callersMethodexitRule
(self, listener)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2105
↓ 45 callersFunctionlog_gpu_memory_usage
(head: str, logger: logging.Logger = None, level=logging.DEBUG, rank: int = 0)
code/DeepCoder/verl/verl/utils/debug/performance.py:20
↓ 40 callersMethodtranspose
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:918
↓ 38 callersMethodencode
Converts a string to a sequence of ids (integer), using the tokenizer and vocabulary. Args: text (`str`, `List[str]` or
code/DeepCoder/verl/verl/workers/rollout/tokenizer.py:70
↓ 38 callersMethodsupexpr
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:6313
↓ 36 callersMethodupdate
(self, current_kl, n_steps)
code/DeepCoder/verl/verl/trainer/ppo/core_algos.py:52
↓ 35 callersFunctionfunc
(*args, **kwargs)
code/DeepCoder/verl/verl/single_controller/ray/base.py:38
↓ 34 callersFunctionconvert_expr
(expr)
math/examples/math_eval/latex2sympy/latex2sympy2.py:200
↓ 30 callersMethodfrom_pretrained
(cls, save_directory: Union[str, os.PathLike], **kwargs)
code/DeepCoder/verl/tests/e2e/envs/digit_completion/tokenizer.py:154
↓ 27 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
code/DeepCoder/verl/verl/protocol.py:287
↓ 26 callersMethodget
(self)
code/DeepCoder/verl/verl/protocol.py:638
↓ 25 callersMethodatom
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4404
↓ 22 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
code/DeepCoder/verl/verl/utils/fs.py:55
↓ 22 callersMethodsubexpr
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:6236
↓ 21 callersMethodgroup
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:3315
↓ 21 callersMethodsub
(self, data: DataProto)
code/DeepCoder/verl/tests/ray/test_colocated_workers.py:44
↓ 20 callersMethodlog
(self, data, step, backend=None)
code/DeepCoder/verl/verl/utils/tracking.py:55
↓ 19 callersFunctionhf_tokenizer
Create a huggingface pretrained tokenizer. Args: name (str): The name of the tokenizer. correct_pad_token (bool): Whether to corr
code/DeepCoder/verl/verl/utils/tokenizer.py:35
↓ 19 callersMethodpop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
code/DeepCoder/verl/verl/protocol.py:371
↓ 17 callersFunction_Pow
(a, b)
math/examples/math_eval/latex2sympy/tests/context.py:21
↓ 17 callersMethodexecute_all_sync
(self, method_name: str, *args, **kwargs)
code/DeepCoder/verl/verl/single_controller/ray/base.py:332
↓ 17 callersMethodnamed_parameters
(self)
code/DeepCoder/verl/verl/utils/memory_buffer.py:205
↓ 16 callersFunction_Mul
(a, b)
math/examples/math_eval/latex2sympy/tests/context.py:17
↓ 16 callersMethodgetenv
(self, key)
code/DeepCoder/verl/tests/ray/test_ray_local_envs.py:31
↓ 16 callersMethodinit
(self)
code/DeepCoder/verl/tests/ray/test_rvdz.py:27
↓ 15 callersFunction_Add
(a, b)
math/examples/math_eval/latex2sympy/tests/context.py:13
↓ 15 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
code/DeepCoder/verl/verl/protocol.py:488
↓ 14 callersMethodLETTER_NO_E
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4275
↓ 14 callersFunction_log
(a, b)
math/examples/math_eval/latex2sympy/tests/all_good_test.py:36
↓ 14 callersMethodto_dtype
(precision)
code/DeepCoder/verl/verl/utils/torch_dtypes.py:63
↓ 13 callersFunction_factorial
(a)
math/examples/math_eval/latex2sympy/tests/all_good_test.py:32
↓ 13 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.
code/DeepCoder/verl/verl/protocol.py:521
↓ 11 callersMethodadditive
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2014
↓ 11 callersFunctionmakedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
code/DeepCoder/verl/verl/utils/hdfs_io.py:50
↓ 11 callersFunctionmasked_mean
Compute mean of tensor with a masked values.
code/DeepCoder/verl/verl/utils/torch_functional.py:107
↓ 11 callersMethodrelation
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1589
↓ 10 callersFunction_Abs
(a)
math/examples/math_eval/latex2sympy/tests/all_good_test.py:28
↓ 10 callersFunction_timer
(name: str, timing_raw: Dict[str, float])
code/DeepCoder/verl/verl/trainer/ppo/ray_trainer.py:295
↓ 10 callersMethodapply
(self, code)
math/examples/math_eval/python_executor.py:129
↓ 10 callersFunctionconvert_atom
(atom)
math/examples/math_eval/latex2sympy/latex2sympy2.py:590
↓ 10 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
code/DeepCoder/verl/verl/utils/hdfs_io.py:84
↓ 10 callersMethoddet
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1440
↓ 10 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
code/DeepCoder/verl/verl/utils/torch_functional.py:209
↓ 10 callersMethodunion
Union with another DataProto. Union batch and meta_info separately. Throw an error if - there are conflict keys in batch and they are
code/DeepCoder/verl/verl/protocol.py:429
↓ 9 callersMethodequality
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1920
↓ 9 callersMethodget_megatron_rank_info
(self)
code/DeepCoder/verl/verl/single_controller/base/megatron/worker.py:33
↓ 9 callersFunctionget_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
code/DeepCoder/verl/verl/utils/ulysses.py:37
↓ 9 callersMethodpreprocess_data
(self, data: DataProto)
code/DeepCoder/verl/verl/workers/sharding_manager/base.py:29
↓ 9 callersMethodrelation_list_content
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1830
↓ 9 callersMethodtransform_atom
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:972
↓ 8 callersMethoddecode
Converts a sequence of ids in a string, using the tokenizer and vocabulary with options to remove special tokens and clean up tokeniz
code/DeepCoder/verl/verl/workers/rollout/tokenizer.py:86
↓ 8 callersMethodexp
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2815
↓ 8 callersMethodmp
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2109
↓ 8 callersMethodpostprocess_data
(self, data: DataProto)
code/DeepCoder/verl/verl/workers/sharding_manager/base.py:32
↓ 8 callersMethodrepeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
code/DeepCoder/verl/verl/protocol.py:553
↓ 8 callersMethodsave_pretrained
(self, save_directory: Union[str, os.PathLike], **kwargs)
code/DeepCoder/verl/tests/e2e/envs/digit_completion/tokenizer.py:147
↓ 8 callersMethodselect
Select a subset of the DataProto via batch_keys and meta_info_keys Args: batch_keys (list, optional): a list of strings indicatin
code/DeepCoder/verl/verl/protocol.py:336
↓ 8 callersMethodtrain
(self)
code/DeepCoder/verl/verl/workers/sharding_manager/megatron_vllm.py:153
↓ 7 callersMethodLT
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1563
↓ 7 callersMethodNUMBER
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4375
↓ 7 callersFunction_megatron_calc_global_rank
given TP,DP,PP rank to get the global rank.
code/DeepCoder/verl/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:28
↓ 7 callersFunctionappend_to_dict
(data: Dict, new_data: Dict)
code/DeepCoder/verl/verl/utils/py_functional.py:41
↓ 7 callersMethodbackward
(ctx: Any, grad_output: Tensor)
code/DeepCoder/verl/verl/utils/ulysses.py:226
↓ 7 callersFunctioncompute_position_id_with_mask
(mask)
code/DeepCoder/verl/verl/utils/model.py:177
↓ 7 callersMethodeval
(self)
code/DeepCoder/verl/verl/workers/sharding_manager/megatron_vllm.py:149
↓ 7 callersMethodfrac
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4626
↓ 7 callersMethodfrom_config
(cls, config: Dict)
code/DeepCoder/verl/tests/e2e/envs/digit_completion/tokenizer.py:140
↓ 7 callersFunctionget_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
code/DeepCoder/verl/verl/utils/ulysses.py:45
↓ 7 callersFunctionoffload_fsdp_param_and_grad
(module, offload_grad=False)
code/DeepCoder/verl/verl/utils/fsdp_utils.py:93
↓ 6 callersFunction_broadcast_tensor
broadcast tensor from rank0 across mp_group
code/DeepCoder/verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:97
↓ 6 callersMethod_validate
(self)
code/DeepCoder/verl/verl/trainer/ppo/ray_trainer.py:406
↓ 6 callersFunctioncreate_random_mask
Create a random mask given input_ids. Support left padding and right padding. Process: - Sample valid token length - Sample left_padding l
code/DeepCoder/verl/verl/utils/model.py:136
↓ 6 callersFunctiongather_outpus_and_unpad
(x: Tensor, gather_dim: int, unpad_dim: int = None,
code/DeepCoder/verl/verl/utils/ulysses.py:233
↓ 6 callersFunctiongather_seq_scatter_heads
A func to sync embedding input with alltoall in sequence parallel gather sequence dimension and scatter head dim: e.g. seq_dim: 1, head_d
code/DeepCoder/verl/verl/utils/ulysses.py:61
↓ 6 callersMethodget
Return a tensor with the input `shape` as a view into the 1-D data starting at `start_index`.
code/DeepCoder/verl/verl/utils/megatron/memory.py:33
↓ 6 callersFunctionget_model
Build the model.
code/DeepCoder/verl/verl/utils/megatron_utils.py:34
↓ 6 callersFunctionlatex2sympy
(sympy: str, variable_values={})
math/examples/math_eval/latex2sympy/latex2sympy2.py:46
↓ 6 callersFunctionload_fsdp_param_and_grad
(module, device_id, load_grad=False)
code/DeepCoder/verl/verl/utils/fsdp_utils.py:103
↓ 6 callersFunctionlogprobs_from_logits
See: https://github.com/pytorch/pytorch/issues/563#issuecomment-330103591
code/DeepCoder/verl/verl/utils/torch_functional.py:49
↓ 6 callersFunctionrearrange_micro_batches
Split the batch into a list of micro_batches, where the max_token_len is smaller than max_token_len and the number of valid tokens in each micro b
code/DeepCoder/verl/verl/utils/seqlen_balancing.py:224
↓ 6 callersMethodtransform_scale
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1040
↓ 6 callersFunctionulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
code/DeepCoder/verl/verl/utils/ulysses.py:252
↓ 5 callersMethodSUB
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2264
↓ 5 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
code/DeepCoder/verl/verl/models/llama/megatron/modeling_llama_megatron.py:80
↓ 5 callersFunction_hdfs_cmd
(cmd: str)
code/DeepCoder/verl/verl/utils/hdfs_io.py:139
↓ 5 callersFunction_run_cmd
(cmd: str, timeout=None)
code/DeepCoder/verl/verl/utils/hdfs_io.py:135
↓ 5 callersFunctionbroadcast_dict_tensor
TODO: optimize this. Technically, we only need one broadcast
code/DeepCoder/verl/verl/utils/torch_functional.py:160
↓ 5 callersMethodelementary_transform
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1192
↓ 5 callersFunctionget_micro_data_parallel_world_size
()
code/DeepCoder/verl/verl/workers/sharding_manager/megatron_vllm.py:423
↓ 5 callersMethodget_placement_groups
(self, strategy="STRICT_PACK", name=None)
code/DeepCoder/verl/verl/single_controller/ray/base.py:64
↓ 5 callersFunctionload_jsonl
(file: Union[str, Path])
math/examples/math_eval/utils.py:20
↓ 5 callersMethodmatrix_row
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1510
↓ 5 callersMethodmp_nofunc
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2204
↓ 5 callersFunctionmul_flat
(lh, rh)
math/examples/math_eval/latex2sympy/latex2sympy2.py:330
next →1–100 of 1,933, ranked by callers