MCPcopy Create free account

hub / github.com/Unakar/Logic-RL / functions

Functions858 in github.com/Unakar/Logic-RL

↓ 2 callersMethodrank
(self)
verl/single_controller/base/worker.py:175
↓ 2 callersFunctionremove_boxed
(s)
verl/utils/reward_score/math.py:49
↓ 2 callersMethodsample_str_prompts
(self)
tests/e2e/envs/digit_completion/task.py:91
↓ 2 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None)
verl/workers/fsdp_workers.py:736
↓ 2 callersMethodspawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
verl/single_controller/ray/base.py:292
↓ 2 callersFunctionstrip_string
(string)
verl/utils/reward_score/math.py:165
↓ 2 callersFunctionsync_model_parameters_global
(layer)
tests/model/test_transformers_ulysses.py:44
↓ 2 callersFunctionto_dataset
(dataset_list)
examples/data_preprocess/multiply.py:123
↓ 2 callersFunctionto_dataset
(dataset_list)
examples/data_preprocess/arth.py:134
↓ 2 callersMethodupdate_actor
(self, data: DataProto)
verl/workers/fsdp_workers.py:356
↓ 2 callersMethodupdate_critic
(self, data: DataProto)
verl/workers/fsdp_workers.py:699
↓ 2 callersMethodupdate_options
(self, options: Dict)
verl/single_controller/ray/base.py:139
↓ 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:54
↓ 1 callersMethod__init__
(self, size)
tests/ray/test_worker_group_torch.py:31
↓ 1 callersMethod__init__
(self)
tests/ray/test_colocated_workers.py:27
↓ 1 callersMethod__init__
(self, numel: int, numel_padded: int, dtype: torch.dtype)
verl/utils/memory_buffer.py:30
↓ 1 callersMethod__init__
(self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInitAr
verl/single_controller/ray/megatron.py:44
↓ 1 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl/models/llama/megatron/layers/parallel_decoder.py:35
↓ 1 callersMethod__init__
(self, input_size, num_heads, num_key_value_heads,
verl/models/llama/megatron/layers/parallel_linear.py:23
↓ 1 callersMethod_balance_batch
Reorder the data on single controller such that each dp rank gets similar total tokens
verl/trainer/ppo/ray_trainer.py:564
↓ 1 callersMethod_bind_worker_method
Bind the worker method to the WorkerGroup
verl/single_controller/base/worker_group.py:136
↓ 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:380
↓ 1 callersMethod_block_until_all_workers_alive
(self)
verl/single_controller/base/worker_group.py:113
↓ 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:214
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:224
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:267
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:278
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:131
↓ 1 callersMethod_build_critic_model_optimizer
(self, model_path, megatron_config
verl/workers/megatron_workers.py:446
↓ 1 callersMethod_build_critic_model_optimizer
(self, config)
verl/workers/fsdp_workers.py:540
↓ 1 callersMethod_build_dataloader
(self)
verl/trainer/fsdp_sft_trainer.py:92
↓ 1 callersMethod_build_model
(self, config)
verl/workers/fsdp_workers.py:793
↓ 1 callersMethod_build_model_optimizer
(self)
verl/trainer/fsdp_sft_trainer.py:139
↓ 1 callersMethod_build_param_buffer
Build the parameter buffer in each pp rank
verl/workers/sharding_manager/megatron_vllm.py:82
↓ 1 callersMethod_build_rm_model
(self, model_path, megatron_config: ModelParallelConfig, override_model_config)
verl/workers/megatron_workers.py:614
↓ 1 callersMethod_build_rollout
(self)
verl/workers/megatron_workers.py:216
↓ 1 callersMethod_build_rollout
(self)
verl/workers/fsdp_workers.py:250
↓ 1 callersFunction_check_and_sort_partitions
(partitions)
verl/utils/seqlen_balancing.py:170
↓ 1 callersFunction_check_dispatch_mode
(dispatch_mode)
verl/single_controller/base/decorator.py:366
↓ 1 callersFunction_check_execute_mode
(execute_mode)
verl/single_controller/base/decorator.py:375
↓ 1 callersFunction_compute_mlflow_params_from_objects
(params)
verl/utils/tracking.py:72
↓ 1 callersMethod_configure_before_init
(self, register_center_name: str, rank: int)
verl/single_controller/base/worker.py:102
↓ 1 callersMethod_configure_with_meta
This function should only be called inside by WorkerGroup
verl/single_controller/base/worker.py:147
↓ 1 callersFunction_copy
(from_path: str, to_path: str, timeout: int = None)
verl/utils/hdfs_io.py:113
↓ 1 callersMethod_create_dataloader
(self)
verl/trainer/ppo/ray_trainer.py:372
↓ 1 callersMethod_download
(self)
verl/utils/dataset/rm_dataset.py:70
↓ 1 callersMethod_download
(self)
verl/utils/dataset/sft_dataset.py:69
↓ 1 callersMethod_download
(self)
verl/utils/dataset/rl_dataset.py:91
↓ 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:469
↓ 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:58
↓ 1 callersMethod_expand_to_token_level
(self, data: DataProto, scores: torch.Tensor)
verl/workers/fsdp_workers.py:911
↓ 1 callersFunction_flatten_dict
(raw: Dict[str, Any], *, sep: str)
verl/utils/tracking.py:99
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl/models/llama/megatron/modeling_llama_megatron.py:301
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl/models/llama/megatron/modeling_llama_megatron.py:554
↓ 1 callersMethod_forward_micro_batch
(self, micro_batch)
verl/workers/fsdp_workers.py:857
↓ 1 callersMethod_generate_minibatch
(self, prompts: DataProto)
verl/workers/rollout/hf_rollout.py:51
↓ 1 callersMethod_get_free_port
(self)
verl/single_controller/base/worker.py:58
↓ 1 callersMethod_get_node_ip
(self)
verl/single_controller/base/worker.py:39
↓ 1 callersFunction_get_parallel_model_architecture_from_config
(config: PretrainedConfig, value=False)
verl/utils/model.py:243
↓ 1 callersMethod_init_head
(self)
verl/models/llama/megatron/modeling_llama_megatron.py:289
↓ 1 callersMethod_init_head
(self)
verl/models/llama/megatron/modeling_llama_megatron.py:542
↓ 1 callersMethod_init_rope
(self)
verl/models/llama/megatron/layers/parallel_attention.py:204
↓ 1 callersMethod_init_with_detached_workers
(self, worker_names)
verl/single_controller/ray/base.py:209
↓ 1 callersMethod_init_with_resource_pool
(self, resource_pool, ray_cls_with_init, bin_pack, detached)
verl/single_controller/ray/base.py:214
↓ 1 callersMethod_is_worker_alive
(self, worker)
verl/single_controller/base/worker_group.py:110
↓ 1 callersMethod_load_params_to_cuda
(self, pp_rank, to_empty=False)
verl/workers/sharding_manager/megatron_vllm.py:92
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/utils/torch_functional.py:456
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/models/llama/megatron/modeling_llama_megatron.py:45
↓ 1 callersFunction_materialize_futures
(*args, **kwargs)
verl/single_controller/base/decorator.py:379
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:45
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mapping f
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:21
↓ 1 callersFunction_mkdir
hdfs mkdir
verl/utils/hdfs_io.py:75
↓ 1 callersMethod_normalize_config_bsz
(self)
verl/trainer/fsdp_sft_trainer.py:81
↓ 1 callersMethod_optimizer_step
(self)
verl/workers/critic/dp_critic.py:103
↓ 1 callersMethod_optimizer_step
(self)
verl/workers/actor/dp_actor.py:143
↓ 1 callersMethod_parse_cot_eval_instruct
(self, pred_str, ans, model_name=None, expected_names=None, solution_text_format=None)
eval_kk/kk_processor.py:202
↓ 1 callersMethod_post_process_params
For each param, if it is a tp-splited param, we all-gather from micro_dp group.
verl/workers/sharding_manager/megatron_vllm.py:318
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
verl/models/llama/megatron/modeling_llama_megatron.py:97
↓ 1 callersMethod_read_files_and_tokenize
(self)
verl/utils/dataset/rm_dataset.py:85
↓ 1 callersMethod_read_files_and_tokenize
(self)
verl/utils/dataset/sft_dataset.py:73
↓ 1 callersMethod_read_files_and_tokenize
(self)
verl/utils/dataset/rl_dataset.py:96
↓ 1 callersFunction_select_rm_score_fn
(data_source)
verl/trainer/main_ppo.py:24
↓ 1 callersFunction_select_rm_score_fn
(data_source)
examples/split_placement/main_ppo_split.py:24
↓ 1 callersMethod_switch_chat_template
(self, data: DataProto)
verl/workers/fsdp_workers.py:926
↓ 1 callersFunction_transform_params_to_json_serializable
(x, convert_list_to_dict: bool)
verl/utils/tracking.py:79
↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/utils/ulysses.py:154
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/models/llama/megatron/layers/parallel_attention.py:320
↓ 1 callersFunctionare_lists_similar
(a, b)
tests/rollout/test_vllm_hf_loader.py:51
↓ 1 callersFunctionbroadcast_params
(module)
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:66
↓ 1 callersFunctionbuild_memory_reference
Build the memory references. The memory buffers are built using the build_memory_buffer API. This API will allocate a weight buffer pointer to the
verl/utils/memory_buffer.py:113
↓ 1 callersFunctionceildiv
(a, b)
verl/utils/seqlen_balancing.py:220
↓ 1 callersMethodcheck_consistency
Check the consistency of the DataProto. Mainly for batch and non_tensor_batch We expose this function as a public one so that user can call th
verl/protocol.py:242
↓ 1 callersFunctioncheck_numbers_in_string
(s, N)
eval_kk/kk_processor.py:48
↓ 1 callersFunctioncollect_dp_compute
(worker_group, output)
verl/single_controller/base/decorator.py:265
↓ 1 callersFunctioncollect_megatron_compute
Only collect the data from the tp=0 and pp=last and every dp ranks
verl/single_controller/base/decorator.py:103
↓ 1 callersFunctioncollect_megatron_pp_as_dp
treat pp as dp. Only collect data on tp=0
verl/single_controller/base/decorator.py:209
↓ 1 callersFunctioncompute_position_id_with_mask
(mask)
tests/ray/detached_worker/client.py:30
↓ 1 callersMethodcompute_reward
Computing reward given input_ids. The transformers should output a tensor with shape [batch_size, sequence_length], and the value at [EOS]
verl/workers/reward_model/base.py:29
↓ 1 callersFunctioncompute_reward_metrics
(batch)
verl/trainer/ppo/ray_trainer.py:296
← previousnext →201–300 of 858, ranked by callers