MCPcopy Create free account

hub / github.com/CarlanLark/Lp-Reg-dev / functions

Functions1,299 in github.com/CarlanLark/Lp-Reg-dev

↓ 2 callersFunctionis_tensor_parallel_param
(param)
verl/utils/megatron/tensor_parallel.py:87
↓ 2 callersFunctionlast_boxed_only_string
Extract the last LaTeX boxed expression from a string. Args: string: Input string containing LaTeX code Returns: The last bo
verl/utils/reward_score/math_dapo.py:20
↓ 2 callersFunctionlist_of_dict_to_dict_of_list
(list_of_dict: list[dict])
verl/protocol.py:127
↓ 2 callersFunctionload_fsdp_optimizer
(optimizer, device_id)
verl/utils/fsdp_utils.py:198
↓ 2 callersFunctionload_megatron_optimizer
(optimizers)
verl/utils/megatron_utils.py:377
↓ 2 callersMethodlocal_mkdir
(path)
verl/utils/checkpoint/checkpoint_manager.py:86
↓ 2 callersMethodmake_iterator
r"""Make an iterator from the DataProto. This is built upon that TensorDict can be used as a normal Pytorch dataset. See https://pytorch.org/t
verl/protocol.py:587
↓ 2 callersMethodmake_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_ids``
verl/workers/actor/megatron_actor.py:227
↓ 2 callersFunctionmakedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except tha
verl/utils/hdfs_io.py:50
↓ 2 callersFunctionmath_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
verl/utils/reward_score/prime_math/grader.py:173
↓ 2 callersFunctionmd5_encode
(path: str)
verl/utils/fs.py:38
↓ 2 callersMethodmerge
(self, other)
verl/utils/seqlen_balancing.py:34
↓ 2 callersFunctionnormalize
(answer, pi)
verl/utils/reward_score/prime_math/grader.py:122
↓ 2 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. This code comes from https://arxiv.org/pdf/2206.14858.pdf, page18.
verl/utils/reward_score/prime_math/__init__.py:441
↓ 2 callersMethodoffload_params_to_cpu
(self)
verl/workers/reward_model/megatron/reward_model.py:264
↓ 2 callersFunctionpatch_vllm_moe_model_weight_loader
(model)
verl/utils/vllm_utils.py:44
↓ 2 callersMethodper_tensor_generator
convert_qkv_gate_up_by_simple_split is a parameter affected by the vLLM version.
verl/workers/sharding_manager/megatron_vllm.py:303
↓ 2 callersFunctionranks
(l)
verl/utils/reward_score/prime_math/__init__.py:479
↓ 2 callersFunctionremove_boxed
Remove the LaTeX boxed command from a string. Args: s: String with format "\\boxed{content}" Returns: The content inside the
verl/utils/reward_score/math_dapo.py:50
↓ 2 callersMethodremove_previous_save_local_path
(self, path)
verl/utils/checkpoint/checkpoint_manager.py:75
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/models/qwen2/megatron/layers/parallel_attention.py:134
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
verl/models/llama/megatron/layers/parallel_attention.py:157
↓ 2 callersFunctionrepeatness
(s: str)
verl/utils/reward_score/prime_math/__init__.py:478
↓ 2 callersFunctionsave_plaintext_to_disk
(data_proto: DataProto, filepath)
verl/utils/save_dataproto_plaintext.py:9
↓ 2 callersMethodsave_to_disk
(self, filepath)
verl/protocol.py:280
↓ 2 callersFunctionset_ulysses_sequence_parallel_group
Set ulysses sequence parallel process group.
verl/utils/ulysses.py:30
↓ 2 callersMethodsleep
Offload model weights and discard kv cache.
verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:378
↓ 2 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl/utils/ulysses.py:117
↓ 2 callersMethodspawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
verl/single_controller/ray/base.py:333
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl/utils/reward_score/prime_math/__init__origin.py:227
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl/utils/reward_score/prime_math/__init__.py:898
↓ 2 callersFunctionstrip_string
(string)
verl/utils/reward_score/math.py:162
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
verl/utils/reward_score/prime_code/testing_util.py:524
↓ 2 callersFunctiontensor_generator
()
verl/utils/megatron_utils.py:702
↓ 2 callersFunctionunpad_dataproto
(data: "DataProto", pad_size)
verl/protocol.py:97
↓ 2 callersMethodupdate_actor
(self, data: DataProto)
verl/workers/fsdp_workers.py:571
↓ 2 callersMethodupdate_critic
(self, data: DataProto)
verl/workers/fsdp_workers.py:1078
↓ 2 callersMethodupdate_options
(self, options: Dict)
verl/single_controller/ray/base.py:157
↓ 2 callersMethodupdate_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
verl/workers/actor/base.py:55
↓ 2 callersMethodupdate_sampling_params
(self, **kwargs)
verl/workers/rollout/sglang_rollout/async_sglang_rollout.py:271
↓ 2 callersMethodupdate_sampling_params
(self, **kwargs)
verl/workers/rollout/vllm_rollout/fire_vllm_rollout.py:84
↓ 2 callersMethodvalidation_step
(self, batch: TensorDict)
verl/trainer/fsdp_sft_trainer.py:405
↓ 2 callersFunctionverify
Verify if the solution is correct. Args: solution_str: The solution string to verify answer: The ground truth answer stri
verl/utils/reward_score/math_dapo.py:217
↓ 1 callersMethod__enter__
(self)
verl/workers/sharding_manager/base.py:22
↓ 1 callersMethod__exit__
(self, exc_type, exc_value, traceback)
verl/workers/sharding_manager/base.py:25
↓ 1 callersMethod__init__
(self, name: str, value: int)
verl/utils/py_functional.py:204
↓ 1 callersMethod__init__
(self, numel: int, numel_padded: int, dtype: torch.dtype, source: Optional[torch.Tensor] = None)
verl/utils/memory_buffer.py:30
↓ 1 callersMethod__init__
( self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInitArgs,
verl/single_controller/ray/megatron.py:44
↓ 1 callersMethod__init__
( self, module: FSDP, inference_engine: Union[VerlEngine, Engine], model_confi
verl/workers/sharding_manager/fsdp_sglang.py:66
↓ 1 callersMethod__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig, layer_idx: int)
verl/models/qwen2/megatron/layers/parallel_decoder.py:36
↓ 1 callersMethod__init__
( self, input_size, num_heads, num_key_value_heads, head_dim,
verl/models/qwen2/megatron/layers/parallel_linear.py:21
↓ 1 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig, layer_idx: int)
verl/models/llama/megatron/layers/parallel_decoder.py:36
↓ 1 callersMethod_async_rollout_a_request
(self, req: AsyncRolloutRequest, do_sample: bool = True, is_validate: bool = False, **kwargs)
verl/workers/rollout/sglang_rollout/async_sglang_rollout.py:430
↓ 1 callersFunction_bind_workers_method_to_parent
Binds the methods of each worker to the WorkerDict. Note that we only bind public methods that are decorated by register
verl/single_controller/ray/base.py:447
↓ 1 callersMethod_block_until_all_workers_alive
(self)
verl/single_controller/base/worker_group.py:121
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:217
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:198
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/mcore/saver.py:209
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/mcore/loader.py:222
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:198
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:219
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:247
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:267
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:126
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
verl/models/mcore/loader.py:131
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:128
↓ 1 callersMethod_build_critic_model_optimizer
(self, model_path, optim_config, override_model_config)
verl/workers/megatron_workers.py:553
↓ 1 callersMethod_build_critic_model_optimizer
(self, config)
verl/workers/fsdp_workers.py:873
↓ 1 callersMethod_build_dataloader
(self, train_dataset, val_dataset)
verl/trainer/fsdp_sft_trainer.py:123
↓ 1 callersMethod_build_messages
(self, example: dict)
verl/utils/dataset/rl_dataset.py:150
↓ 1 callersMethod_build_model
(self, config)
verl/workers/fsdp_workers.py:1179
↓ 1 callersMethod_build_model_optimizer
(self)
verl/trainer/fsdp_sft_trainer.py:164
↓ 1 callersMethod_build_param_buffer
Build the parameter buffer in each pp rank
verl/workers/sharding_manager/megatron_vllm.py:110
↓ 1 callersMethod_build_rm_model
(self, model_path, override_model_config)
verl/workers/megatron_workers.py:751
↓ 1 callersMethod_build_rollout
(self, trust_remote_code=False)
verl/workers/megatron_workers.py:211
↓ 1 callersMethod_chat_completions_openai
(self, address: str, **chat_complete_request)
verl/workers/rollout/async_server.py:195
↓ 1 callersFunction_check_and_sort_partitions
(partitions)
verl/utils/seqlen_balancing.py:161
↓ 1 callersFunction_check_directory_structure
(folder_path, record_file)
verl/utils/fs.py:77
↓ 1 callersFunction_check_execute_mode
(execute_mode)
verl/single_controller/base/decorator.py:473
↓ 1 callersMethod_check_resource_available
Check if the resource pool can be satisfied in this ray cluster.
verl/trainer/ppo/ray_trainer.py:123
↓ 1 callersFunction_compute_autocorr_features
Compute various autocorrelation-based features.
verl/utils/stat_utils.py:284
↓ 1 callersFunction_compute_change_point_frequency
Compute change point frequency using sliding window variance method. Args: sequence: 1D entropy sequence window_size: Si
verl/utils/stat_utils.py:246
↓ 1 callersFunction_compute_mlflow_params_from_objects
(params)
verl/utils/tracking.py:157
↓ 1 callersMethod_configure_before_init
(self, register_center_name: str, rank: int)
verl/single_controller/base/worker.py:97
↓ 1 callersMethod_configure_with_store
This function should only be called inside by WorkerGroup
verl/single_controller/base/worker.py:180
↓ 1 callersMethod_convert_attention_param
(self, name: str, params: list[torch.Tensor])
verl/models/mcore/weight_converter.py:35
↓ 1 callersMethod_convert_mlp_param
(self, name: str, params: list[torch.Tensor])
verl/models/mcore/weight_converter.py:65
↓ 1 callersFunction_copy
(from_path: str, to_path: str, timeout: int = None)
verl/utils/hdfs_io.py:113
↓ 1 callersMethod_create_dataloader
Creates the train and validation dataloaders.
verl/trainer/ppo/ray_trainer.py:443
↓ 1 callersFunction_determine_fsdp_megatron_base_class
- megatron: base class should be MegatronWorker - fsdp: base class should be Worker
verl/single_controller/ray/base.py:493
↓ 1 callersMethod_download
(self)
verl/utils/dataset/rm_dataset.py:70
↓ 1 callersMethod_download
(self)
verl/utils/dataset/sft_dataset.py:70
↓ 1 callersMethod_download
(self)
verl/utils/dataset/multiturn_sft_dataset.py:56
↓ 1 callersFunction_exists
hdfs capable to check whether a file_path is exists
verl/utils/hdfs_io.py:43
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
verl/utils/torch_functional.py:514
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:60
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
verl/models/llama/megatron/modeling_llama_megatron.py:60
↓ 1 callersMethod_expand_to_token_level
(self, data: DataProto, scores: torch.Tensor)
verl/workers/fsdp_workers.py:1304
↓ 1 callersFunction_fetch_tp_shard_tensor_gate_up
fetch gate_up tensor in tp shards
verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:130
↓ 1 callersFunction_fetch_tp_shard_tensor_gate_up
fetch gate_up tensor in tp shards
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:132
← previousnext →301–400 of 1,299, ranked by callers