Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Unakar/Logic-RL
/ functions
Functions
858 in github.com/Unakar/Logic-RL
⨍
Functions
858
◇
Types & classes
113
↳
Endpoints
30
↓ 2 callers
Method
rank
(self)
verl/single_controller/base/worker.py:175
↓ 2 callers
Function
remove_boxed
(s)
verl/utils/reward_score/math.py:49
↓ 2 callers
Method
sample_str_prompts
(self)
tests/e2e/envs/digit_completion/task.py:91
↓ 2 callers
Method
save_checkpoint
(self, local_path, hdfs_path=None)
verl/workers/fsdp_workers.py:736
↓ 2 callers
Method
spawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
verl/single_controller/ray/base.py:292
↓ 2 callers
Function
strip_string
(string)
verl/utils/reward_score/math.py:165
↓ 2 callers
Function
sync_model_parameters_global
(layer)
tests/model/test_transformers_ulysses.py:44
↓ 2 callers
Function
to_dataset
(dataset_list)
examples/data_preprocess/multiply.py:123
↓ 2 callers
Function
to_dataset
(dataset_list)
examples/data_preprocess/arth.py:134
↓ 2 callers
Method
update_actor
(self, data: DataProto)
verl/workers/fsdp_workers.py:356
↓ 2 callers
Method
update_critic
(self, data: DataProto)
verl/workers/fsdp_workers.py:699
↓ 2 callers
Method
update_options
(self, options: Dict)
verl/single_controller/ray/base.py:139
↓ 2 callers
Method
update_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 callers
Method
__init__
(self, size)
tests/ray/test_worker_group_torch.py:31
↓ 1 callers
Method
__init__
(self)
tests/ray/test_colocated_workers.py:27
↓ 1 callers
Method
__init__
(self, numel: int, numel_padded: int, dtype: torch.dtype)
verl/utils/memory_buffer.py:30
↓ 1 callers
Method
__init__
(self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInitAr
verl/single_controller/ray/megatron.py:44
↓ 1 callers
Method
__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig)
verl/models/llama/megatron/layers/parallel_decoder.py:35
↓ 1 callers
Method
__init__
(self, input_size, num_heads, num_key_value_heads,
verl/models/llama/megatron/layers/parallel_linear.py:23
↓ 1 callers
Method
_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 callers
Method
_bind_worker_method
Bind the worker method to the WorkerGroup
verl/single_controller/base/worker_group.py:136
↓ 1 callers
Function
_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 callers
Method
_block_until_all_workers_alive
(self)
verl/single_controller/base/worker_group.py:113
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_saver.py:267
↓ 1 callers
Function
_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:278
↓ 1 callers
Function
_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:131
↓ 1 callers
Method
_build_critic_model_optimizer
(self, model_path, megatron_config
verl/workers/megatron_workers.py:446
↓ 1 callers
Method
_build_critic_model_optimizer
(self, config)
verl/workers/fsdp_workers.py:540
↓ 1 callers
Method
_build_dataloader
(self)
verl/trainer/fsdp_sft_trainer.py:92
↓ 1 callers
Method
_build_model
(self, config)
verl/workers/fsdp_workers.py:793
↓ 1 callers
Method
_build_model_optimizer
(self)
verl/trainer/fsdp_sft_trainer.py:139
↓ 1 callers
Method
_build_param_buffer
Build the parameter buffer in each pp rank
verl/workers/sharding_manager/megatron_vllm.py:82
↓ 1 callers
Method
_build_rm_model
(self, model_path, megatron_config: ModelParallelConfig, override_model_config)
verl/workers/megatron_workers.py:614
↓ 1 callers
Method
_build_rollout
(self)
verl/workers/megatron_workers.py:216
↓ 1 callers
Method
_build_rollout
(self)
verl/workers/fsdp_workers.py:250
↓ 1 callers
Function
_check_and_sort_partitions
(partitions)
verl/utils/seqlen_balancing.py:170
↓ 1 callers
Function
_check_dispatch_mode
(dispatch_mode)
verl/single_controller/base/decorator.py:366
↓ 1 callers
Function
_check_execute_mode
(execute_mode)
verl/single_controller/base/decorator.py:375
↓ 1 callers
Function
_compute_mlflow_params_from_objects
(params)
verl/utils/tracking.py:72
↓ 1 callers
Method
_configure_before_init
(self, register_center_name: str, rank: int)
verl/single_controller/base/worker.py:102
↓ 1 callers
Method
_configure_with_meta
This function should only be called inside by WorkerGroup
verl/single_controller/base/worker.py:147
↓ 1 callers
Function
_copy
(from_path: str, to_path: str, timeout: int = None)
verl/utils/hdfs_io.py:113
↓ 1 callers
Method
_create_dataloader
(self)
verl/trainer/ppo/ray_trainer.py:372
↓ 1 callers
Method
_download
(self)
verl/utils/dataset/rm_dataset.py:70
↓ 1 callers
Method
_download
(self)
verl/utils/dataset/sft_dataset.py:69
↓ 1 callers
Method
_download
(self)
verl/utils/dataset/rl_dataset.py:91
↓ 1 callers
Function
_exists
hdfs capable to check whether a file_path is exists
verl/utils/hdfs_io.py:43
↓ 1 callers
Function
_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 callers
Function
_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 callers
Method
_expand_to_token_level
(self, data: DataProto, scores: torch.Tensor)
verl/workers/fsdp_workers.py:911
↓ 1 callers
Function
_flatten_dict
(raw: Dict[str, Any], *, sep: str)
verl/utils/tracking.py:99
↓ 1 callers
Method
_forward_head
(self, hidden_states)
verl/models/llama/megatron/modeling_llama_megatron.py:301
↓ 1 callers
Method
_forward_head
(self, hidden_states)
verl/models/llama/megatron/modeling_llama_megatron.py:554
↓ 1 callers
Method
_forward_micro_batch
(self, micro_batch)
verl/workers/fsdp_workers.py:857
↓ 1 callers
Method
_generate_minibatch
(self, prompts: DataProto)
verl/workers/rollout/hf_rollout.py:51
↓ 1 callers
Method
_get_free_port
(self)
verl/single_controller/base/worker.py:58
↓ 1 callers
Method
_get_node_ip
(self)
verl/single_controller/base/worker.py:39
↓ 1 callers
Function
_get_parallel_model_architecture_from_config
(config: PretrainedConfig, value=False)
verl/utils/model.py:243
↓ 1 callers
Method
_init_head
(self)
verl/models/llama/megatron/modeling_llama_megatron.py:289
↓ 1 callers
Method
_init_head
(self)
verl/models/llama/megatron/modeling_llama_megatron.py:542
↓ 1 callers
Method
_init_rope
(self)
verl/models/llama/megatron/layers/parallel_attention.py:204
↓ 1 callers
Method
_init_with_detached_workers
(self, worker_names)
verl/single_controller/ray/base.py:209
↓ 1 callers
Method
_init_with_resource_pool
(self, resource_pool, ray_cls_with_init, bin_pack, detached)
verl/single_controller/ray/base.py:214
↓ 1 callers
Method
_is_worker_alive
(self, worker)
verl/single_controller/base/worker_group.py:110
↓ 1 callers
Method
_load_params_to_cuda
(self, pp_rank, to_empty=False)
verl/workers/sharding_manager/megatron_vllm.py:92
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/utils/torch_functional.py:456
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/models/llama/megatron/modeling_llama_megatron.py:45
↓ 1 callers
Function
_materialize_futures
(*args, **kwargs)
verl/single_controller/base/decorator.py:379
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_mkdir
hdfs mkdir
verl/utils/hdfs_io.py:75
↓ 1 callers
Method
_normalize_config_bsz
(self)
verl/trainer/fsdp_sft_trainer.py:81
↓ 1 callers
Method
_optimizer_step
(self)
verl/workers/critic/dp_critic.py:103
↓ 1 callers
Method
_optimizer_step
(self)
verl/workers/actor/dp_actor.py:143
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
verl/models/llama/megatron/modeling_llama_megatron.py:97
↓ 1 callers
Method
_read_files_and_tokenize
(self)
verl/utils/dataset/rm_dataset.py:85
↓ 1 callers
Method
_read_files_and_tokenize
(self)
verl/utils/dataset/sft_dataset.py:73
↓ 1 callers
Method
_read_files_and_tokenize
(self)
verl/utils/dataset/rl_dataset.py:96
↓ 1 callers
Function
_select_rm_score_fn
(data_source)
verl/trainer/main_ppo.py:24
↓ 1 callers
Function
_select_rm_score_fn
(data_source)
examples/split_placement/main_ppo_split.py:24
↓ 1 callers
Method
_switch_chat_template
(self, data: DataProto)
verl/workers/fsdp_workers.py:926
↓ 1 callers
Function
_transform_params_to_json_serializable
(x, convert_list_to_dict: bool)
verl/utils/tracking.py:79
↓ 1 callers
Function
all_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/utils/ulysses.py:154
↓ 1 callers
Function
apply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/models/llama/megatron/layers/parallel_attention.py:320
↓ 1 callers
Function
are_lists_similar
(a, b)
tests/rollout/test_vllm_hf_loader.py:51
↓ 1 callers
Function
broadcast_params
(module)
verl/models/llama/megatron/checkpoint_utils/llama_loader.py:66
↓ 1 callers
Function
build_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 callers
Function
ceildiv
(a, b)
verl/utils/seqlen_balancing.py:220
↓ 1 callers
Method
check_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 callers
Function
check_numbers_in_string
(s, N)
eval_kk/kk_processor.py:48
↓ 1 callers
Function
collect_dp_compute
(worker_group, output)
verl/single_controller/base/decorator.py:265
↓ 1 callers
Function
collect_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 callers
Function
collect_megatron_pp_as_dp
treat pp as dp. Only collect data on tp=0
verl/single_controller/base/decorator.py:209
↓ 1 callers
Function
compute_position_id_with_mask
(mask)
tests/ray/detached_worker/client.py:30
↓ 1 callers
Method
compute_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 callers
Function
compute_reward_metrics
(batch)
verl/trainer/ppo/ray_trainer.py:296
← previous
next →
201–300 of 858, ranked by callers