MCPcopy Create free account

hub / github.com/Franklin-Zhang0/ReasonGen-R1 / functions

Functions1,182 in github.com/Franklin-Zhang0/ReasonGen-R1

↓ 1 callersMethod_build_model_optimizer
(self)
verl/trainer/fsdp_sft_trainer.py:181
↓ 1 callersMethod_build_param_buffer
Build the parameter buffer in each pp rank
verl/workers/sharding_manager/megatron_vllm.py:86
↓ 1 callersMethod_build_rm_model
(self, model_path, megatron_config: ModelParallelConfig, override_model_config)
verl/workers/megatron_workers.py:710
↓ 1 callersMethod_build_rollout
(self)
verl/workers/megatron_workers.py:242
↓ 1 callersMethod_build_rollout
(self)
verl/workers/fsdp_workers.py:321
↓ 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 callersMethod_check_resource_available
Check if the resource pool can be satisfied in this ray cluster.
verl/trainer/ppo/ray_trainer.py:109
↓ 1 callersFunction_compute_mlflow_params_from_objects
(params)
verl/utils/tracking.py:138
↓ 1 callersMethod_configure_before_init
(self, register_center_name: str, rank: int)
verl/single_controller/base/worker.py:101
↓ 1 callersMethod_configure_with_meta
This function should only be called inside by WorkerGroup
verl/single_controller/base/worker.py:178
↓ 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:404
↓ 1 callersMethod_download
(self)
verl/utils/dataset/rm_dataset.py:70
↓ 1 callersMethod_download
(self)
verl/utils/dataset/sft_dataset.py:75
↓ 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:502
↓ 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:59
↓ 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:1141
↓ 1 callersFunction_fix_a_slash_b
(string)
verl/utils/reward_score/prime_math/math_normalize.py:89
↓ 1 callersFunction_fix_fracs
(string)
verl/utils/reward_score/prime_math/math_normalize.py:57
↓ 1 callersFunction_fix_sqrt
(string)
verl/utils/reward_score/prime_math/math_normalize.py:114
↓ 1 callersFunction_flatten_dict
(raw: Dict[str, Any], *, sep: str)
verl/utils/tracking.py:165
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:305
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:611
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl/models/llama/megatron/modeling_llama_megatron.py:306
↓ 1 callersMethod_forward_head
(self, hidden_states)
verl/models/llama/megatron/modeling_llama_megatron.py:566
↓ 1 callersMethod_forward_micro_batch
(self, micro_batch)
verl/workers/fsdp_workers.py:1109
↓ 1 callersMethod_generate_minibatch
(self, prompts: DataProto)
verl/workers/rollout/hf_rollout.py:61
↓ 1 callersMethod_get_free_port
(self)
verl/single_controller/base/worker.py:56
↓ 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:269
↓ 1 callersMethod_init_head
(self, config: Qwen2Config)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:293
↓ 1 callersMethod_init_head
(self, config)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:550
↓ 1 callersMethod_init_head
(self, config)
verl/models/llama/megatron/modeling_llama_megatron.py:294
↓ 1 callersMethod_init_head
(self, config)
verl/models/llama/megatron/modeling_llama_megatron.py:554
↓ 1 callersMethod_init_rope
(self)
verl/models/qwen2/megatron/layers/parallel_attention.py:208
↓ 1 callersMethod_init_rope
(self)
verl/models/llama/megatron/layers/parallel_attention.py:236
↓ 1 callersMethod_init_with_detached_workers
(self, worker_names)
verl/single_controller/ray/base.py:229
↓ 1 callersMethod_init_with_resource_pool
(self, resource_pool, ray_cls_with_init, bin_pack, detached)
verl/single_controller/ray/base.py:234
↓ 1 callersFunction_inject_implicit_mixed_number
Automatically make a mixed number evalable e.g. 7 3/4 => 7+3/4
verl/utils/reward_score/prime_math/__init__.py:126
↓ 1 callersFunction_inner_call_method
(_method)
verl/utils/reward_score/prime_code/testing_util.py:633
↓ 1 callersMethod_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, )
Janus/janus/janusflow/models/siglip_vit.py:509
↓ 1 callersMethod_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, )
Janus/janus/models/siglip_vit.py:509
↓ 1 callersFunction_is_float
(num: str)
verl/utils/reward_score/prime_math/__init__.py:92
↓ 1 callersFunction_is_int
(x: float)
verl/utils/reward_score/prime_math/__init__.py:100
↓ 1 callersMethod_is_worker_alive
(self, worker)
verl/single_controller/base/worker_group.py:112
↓ 1 callersFunction_last_boxed_only_string
(string)
verl/utils/reward_score/prime_math/__init__.py:333
↓ 1 callersMethod_load_checkpoint
(self)
verl/trainer/ppo/ray_trainer.py:724
↓ 1 callersMethod_load_params_to_cuda
(self, pp_rank, to_empty=False)
verl/workers/sharding_manager/megatron_vllm.py:109
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/utils/torch_functional.py:489
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:46
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
verl/models/llama/megatron/modeling_llama_megatron.py:47
↓ 1 callersFunction_map_each_response
(l)
verl/workers/rollout/sglang_rollout/sglang_rollout.py:60
↓ 1 callersFunction_materialize_futures
(*args, **kwargs)
verl/single_controller/base/decorator.py:379
↓ 1 callersMethod_maybe_log_val_generations
Log a table of validation samples to the configured logger (wandb or swanlab)
verl/trainer/ppo/ray_trainer.py:489
↓ 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/qwen2/megatron/checkpoint_utils/qwen2_loader.py:21
↓ 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/qwen2/megatron/checkpoint_utils/qwen2_saver.py:39
↓ 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:39
↓ 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:23
↓ 1 callersFunction_mkdir
hdfs mkdir
verl/utils/hdfs_io.py:75
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
Janus/janus/janusflow/models/siglip_vit.py:54
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
Janus/janus/models/siglip_vit.py:54
↓ 1 callersMethod_normalize_config_bsz
(self)
verl/trainer/img_rl_fsdp_sft_trainer.py:126
↓ 1 callersMethod_normalize_config_bsz
(self)
verl/trainer/fsdp_sft_trainer.py:110
↓ 1 callersMethod_optimizer_step
(self)
verl/workers/critic/dp_critic.py:115
↓ 1 callersMethod_optimizer_step
(self)
verl/workers/actor/dp_actor.py:191
↓ 1 callersFunction_parse_latex
Attempts to parse latex to an expression sympy can read.
verl/utils/reward_score/prime_math/__init__.py:74
↓ 1 callersFunction_post_process_outputs
(tokenizer, output)
verl/workers/rollout/sglang_rollout/sglang_rollout.py:58
↓ 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:336
↓ 1 callersFunction_pre_process_inputs
(pad_token_id, prompt_token_ids: torch.Tensor)
verl/workers/rollout/sglang_rollout/sglang_rollout.py:49
↓ 1 callersFunction_pre_process_inputs
(pad_token_id, prompt_token_ids: torch.Tensor)
verl/workers/rollout/vllm_rollout/fire_vllm_rollout.py:50
↓ 1 callersFunction_pre_process_inputs
(pad_token_id, prompt_token_ids: torch.Tensor)
verl/workers/rollout/vllm_rollout/vllm_rollout.py:49
↓ 1 callersFunction_pre_process_inputs
(pad_token_id, prompt_token_ids: torch.Tensor)
verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:50
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
verl/models/qwen2/megatron/modeling_qwen2_megatron.py:99
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
verl/models/llama/megatron/modeling_llama_megatron.py:100
↓ 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:79
↓ 1 callersFunction_remove_right_units
(string)
verl/utils/reward_score/prime_math/math_normalize.py:104
↓ 1 callersMethod_save_checkpoint
(self)
verl/trainer/ppo/ray_trainer.py:678
↓ 1 callersFunction_str_to_int
(x: str)
verl/utils/reward_score/prime_math/__init__.py:120
↓ 1 callersFunction_strip_string
(string)
verl/utils/reward_score/prime_math/math_normalize.py:129
↓ 1 callersMethod_switch_chat_template
(self, data: DataProto)
verl/workers/fsdp_workers.py:1156
↓ 1 callersFunction_sympy_parse
Parses an expression with sympy.
verl/utils/reward_score/prime_math/__init__.py:65
↓ 1 callersFunction_transform_params_to_json_serializable
(x, convert_list_to_dict: bool)
verl/utils/tracking.py:145
↓ 1 callersMethod_update_config
(self)
verl/trainer/ppo/ray_trainer.py:308
↓ 1 callersMethod_validate_config
(self)
verl/trainer/ppo/ray_trainer.py:312
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
verl/workers/critic/megatron_critic.py:79
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
verl/workers/actor/megatron_actor.py:138
↓ 1 callersFunctionacc_reward
(predict_str: str, ground_truth: str)
verl/utils/reward_score/geo3k.py:25
↓ 1 callersMethodadd_image_token
Args: image_indices (List[int]): [index_0, index_1, ..., index_j] input_ids (torch.LongTensor): [N] Returns
Janus/janus/janusflow/models/processing_vlm.py:241
↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/utils/ulysses.py:154
↓ 1 callersFunctionapply_kl_penalty
(data: DataProto, kl_ctrl: core_algos.AdaptiveKLController, kl_penalty='kl')
verl/trainer/ppo/ray_trainer.py:141
↓ 1 callersMethodapply_loss_scale
(self, loss, mask_dict)
verl/trainer/img_rl_fsdp_sft_trainer.py:347
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
verl/models/llama/megatron/layers/parallel_attention.py:155
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/models/qwen2/megatron/layers/parallel_attention.py:304
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
verl/models/llama/megatron/layers/parallel_attention.py:360
↓ 1 callersMethodapply_sft_template_for_multi_turn_prompts
Applies the SFT template to conversation. An example of conversation: conversation = [ { "role":
Janus/janus/janusflow/models/processing_vlm.py:159
← previousnext →301–400 of 1,182, ranked by callers