Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LeapLabTHU/limit-of-RLVR
/ functions
Functions
1,933 in github.com/LeapLabTHU/limit-of-RLVR
⨍
Functions
1,933
◇
Types & classes
193
↳
Endpoints
42
↓ 494 callers
Function
assert_equal
(latex, expr, variable_values={}, symbolically=False)
math/examples/math_eval/latex2sympy/tests/context.py:82
↓ 153 callers
Method
get
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 callers
Method
expr
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1966
↓ 98 callers
Method
to
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 callers
Method
__init__
(self, input, output=sys.stdout)
math/examples/math_eval/latex2sympy/gen/PSParser.py:802
↓ 57 callers
Method
enterRule
(self, listener)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2101
↓ 57 callers
Method
exitRule
(self, listener)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2105
↓ 45 callers
Function
log_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 callers
Method
transpose
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:918
↓ 38 callers
Method
encode
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 callers
Method
supexpr
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:6313
↓ 36 callers
Method
update
(self, current_kl, n_steps)
code/DeepCoder/verl/verl/trainer/ppo/core_algos.py:52
↓ 35 callers
Function
func
(*args, **kwargs)
code/DeepCoder/verl/verl/single_controller/ray/base.py:38
↓ 34 callers
Function
convert_expr
(expr)
math/examples/math_eval/latex2sympy/latex2sympy2.py:200
↓ 30 callers
Method
from_pretrained
(cls, save_directory: Union[str, os.PathLike], **kwargs)
code/DeepCoder/verl/tests/e2e/envs/digit_completion/tokenizer.py:154
↓ 27 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
code/DeepCoder/verl/verl/protocol.py:287
↓ 26 callers
Method
get
(self)
code/DeepCoder/verl/verl/protocol.py:638
↓ 25 callers
Method
atom
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4404
↓ 22 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
code/DeepCoder/verl/verl/utils/fs.py:55
↓ 22 callers
Method
subexpr
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:6236
↓ 21 callers
Method
group
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:3315
↓ 21 callers
Method
sub
(self, data: DataProto)
code/DeepCoder/verl/tests/ray/test_colocated_workers.py:44
↓ 20 callers
Method
log
(self, data, step, backend=None)
code/DeepCoder/verl/verl/utils/tracking.py:55
↓ 19 callers
Function
hf_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 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
code/DeepCoder/verl/verl/protocol.py:371
↓ 17 callers
Function
_Pow
(a, b)
math/examples/math_eval/latex2sympy/tests/context.py:21
↓ 17 callers
Method
execute_all_sync
(self, method_name: str, *args, **kwargs)
code/DeepCoder/verl/verl/single_controller/ray/base.py:332
↓ 17 callers
Method
named_parameters
(self)
code/DeepCoder/verl/verl/utils/memory_buffer.py:205
↓ 16 callers
Function
_Mul
(a, b)
math/examples/math_eval/latex2sympy/tests/context.py:17
↓ 16 callers
Method
getenv
(self, key)
code/DeepCoder/verl/tests/ray/test_ray_local_envs.py:31
↓ 16 callers
Method
init
(self)
code/DeepCoder/verl/tests/ray/test_rvdz.py:27
↓ 15 callers
Function
_Add
(a, b)
math/examples/math_eval/latex2sympy/tests/context.py:13
↓ 15 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
code/DeepCoder/verl/verl/protocol.py:488
↓ 14 callers
Method
LETTER_NO_E
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4275
↓ 14 callers
Function
_log
(a, b)
math/examples/math_eval/latex2sympy/tests/all_good_test.py:36
↓ 14 callers
Method
to_dtype
(precision)
code/DeepCoder/verl/verl/utils/torch_dtypes.py:63
↓ 13 callers
Function
_factorial
(a)
math/examples/math_eval/latex2sympy/tests/all_good_test.py:32
↓ 13 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.
code/DeepCoder/verl/verl/protocol.py:521
↓ 11 callers
Method
additive
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2014
↓ 11 callers
Function
makedirs
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 callers
Function
masked_mean
Compute mean of tensor with a masked values.
code/DeepCoder/verl/verl/utils/torch_functional.py:107
↓ 11 callers
Method
relation
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1589
↓ 10 callers
Function
_Abs
(a)
math/examples/math_eval/latex2sympy/tests/all_good_test.py:28
↓ 10 callers
Function
_timer
(name: str, timing_raw: Dict[str, float])
code/DeepCoder/verl/verl/trainer/ppo/ray_trainer.py:295
↓ 10 callers
Method
apply
(self, code)
math/examples/math_eval/python_executor.py:129
↓ 10 callers
Function
convert_atom
(atom)
math/examples/math_eval/latex2sympy/latex2sympy2.py:590
↓ 10 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
code/DeepCoder/verl/verl/utils/hdfs_io.py:84
↓ 10 callers
Method
det
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1440
↓ 10 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
code/DeepCoder/verl/verl/utils/torch_functional.py:209
↓ 10 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
code/DeepCoder/verl/verl/protocol.py:429
↓ 9 callers
Method
equality
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1920
↓ 9 callers
Method
get_megatron_rank_info
(self)
code/DeepCoder/verl/verl/single_controller/base/megatron/worker.py:33
↓ 9 callers
Function
get_ulysses_sequence_parallel_group
Get ulysses sequence parallel process group.
code/DeepCoder/verl/verl/utils/ulysses.py:37
↓ 9 callers
Method
preprocess_data
(self, data: DataProto)
code/DeepCoder/verl/verl/workers/sharding_manager/base.py:29
↓ 9 callers
Method
relation_list_content
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1830
↓ 9 callers
Method
transform_atom
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:972
↓ 8 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
code/DeepCoder/verl/verl/workers/rollout/tokenizer.py:86
↓ 8 callers
Method
exp
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2815
↓ 8 callers
Method
mp
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2109
↓ 8 callers
Method
postprocess_data
(self, data: DataProto)
code/DeepCoder/verl/verl/workers/sharding_manager/base.py:32
↓ 8 callers
Method
repeat
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 callers
Method
save_pretrained
(self, save_directory: Union[str, os.PathLike], **kwargs)
code/DeepCoder/verl/tests/e2e/envs/digit_completion/tokenizer.py:147
↓ 8 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
code/DeepCoder/verl/verl/protocol.py:336
↓ 8 callers
Method
train
(self)
code/DeepCoder/verl/verl/workers/sharding_manager/megatron_vllm.py:153
↓ 7 callers
Method
LT
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1563
↓ 7 callers
Method
NUMBER
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4375
↓ 7 callers
Function
_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 callers
Function
append_to_dict
(data: Dict, new_data: Dict)
code/DeepCoder/verl/verl/utils/py_functional.py:41
↓ 7 callers
Method
backward
(ctx: Any, grad_output: Tensor)
code/DeepCoder/verl/verl/utils/ulysses.py:226
↓ 7 callers
Function
compute_position_id_with_mask
(mask)
code/DeepCoder/verl/verl/utils/model.py:177
↓ 7 callers
Method
eval
(self)
code/DeepCoder/verl/verl/workers/sharding_manager/megatron_vllm.py:149
↓ 7 callers
Method
frac
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:4626
↓ 7 callers
Method
from_config
(cls, config: Dict)
code/DeepCoder/verl/tests/e2e/envs/digit_completion/tokenizer.py:140
↓ 7 callers
Function
get_ulysses_sequence_parallel_world_size
Get ulysses sequence parallel world size.
code/DeepCoder/verl/verl/utils/ulysses.py:45
↓ 7 callers
Function
offload_fsdp_param_and_grad
(module, offload_grad=False)
code/DeepCoder/verl/verl/utils/fsdp_utils.py:93
↓ 6 callers
Function
_broadcast_tensor
broadcast tensor from rank0 across mp_group
code/DeepCoder/verl/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:97
↓ 6 callers
Method
_validate
(self)
code/DeepCoder/verl/verl/trainer/ppo/ray_trainer.py:406
↓ 6 callers
Function
create_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 callers
Function
gather_outpus_and_unpad
(x: Tensor, gather_dim: int, unpad_dim: int = None,
code/DeepCoder/verl/verl/utils/ulysses.py:233
↓ 6 callers
Function
gather_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 callers
Method
get
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 callers
Function
get_model
Build the model.
code/DeepCoder/verl/verl/utils/megatron_utils.py:34
↓ 6 callers
Function
latex2sympy
(sympy: str, variable_values={})
math/examples/math_eval/latex2sympy/latex2sympy2.py:46
↓ 6 callers
Function
load_fsdp_param_and_grad
(module, device_id, load_grad=False)
code/DeepCoder/verl/verl/utils/fsdp_utils.py:103
↓ 6 callers
Function
logprobs_from_logits
See: https://github.com/pytorch/pytorch/issues/563#issuecomment-330103591
code/DeepCoder/verl/verl/utils/torch_functional.py:49
↓ 6 callers
Function
rearrange_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 callers
Method
transform_scale
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1040
↓ 6 callers
Function
ulysses_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 callers
Method
SUB
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2264
↓ 5 callers
Method
__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
code/DeepCoder/verl/verl/models/llama/megatron/modeling_llama_megatron.py:80
↓ 5 callers
Function
_hdfs_cmd
(cmd: str)
code/DeepCoder/verl/verl/utils/hdfs_io.py:139
↓ 5 callers
Function
_run_cmd
(cmd: str, timeout=None)
code/DeepCoder/verl/verl/utils/hdfs_io.py:135
↓ 5 callers
Function
broadcast_dict_tensor
TODO: optimize this. Technically, we only need one broadcast
code/DeepCoder/verl/verl/utils/torch_functional.py:160
↓ 5 callers
Method
elementary_transform
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1192
↓ 5 callers
Function
get_micro_data_parallel_world_size
()
code/DeepCoder/verl/verl/workers/sharding_manager/megatron_vllm.py:423
↓ 5 callers
Method
get_placement_groups
(self, strategy="STRICT_PACK", name=None)
code/DeepCoder/verl/verl/single_controller/ray/base.py:64
↓ 5 callers
Function
load_jsonl
(file: Union[str, Path])
math/examples/math_eval/utils.py:20
↓ 5 callers
Method
matrix_row
(self)
math/examples/math_eval/latex2sympy/gen/PSParser.py:1510
↓ 5 callers
Method
mp_nofunc
(self, _p=0)
math/examples/math_eval/latex2sympy/gen/PSParser.py:2204
↓ 5 callers
Function
mul_flat
(lh, rh)
math/examples/math_eval/latex2sympy/latex2sympy2.py:330
next →
1–100 of 1,933, ranked by callers