MCPcopy Create free account

hub / github.com/ChenxinAn-fdu/POLARIS / functions

Functions1,563 in github.com/ChenxinAn-fdu/POLARIS

↓ 2 callersFunctioncompute_timing_metrics
(batch, timing_raw)
verl/recipe/prime/prime_ray_trainer.py:120
↓ 2 callersFunctioncompute_timing_metrics
(batch: DataProto, timing_raw: Dict[str, float])
verl/verl/trainer/ppo/metric_utils.py:207
↓ 2 callersFunctionconvert_megatron_model_to_transformers_model
Convert megatron model to transformers model.
verl/verl/utils/megatron_utils.py:421
↓ 2 callersMethodconvert_param
(self, name: str, params_one_group: list[torch.Tensor])
verl/verl/models/mcore/weight_converter.py:30
↓ 2 callersFunctioncreate_and_sync_state
(param_name, state, is_param)
verl/verl/utils/fsdp_utils.py:311
↓ 2 callersFunctioncreate_colocated_worker_raw_cls
This function returns a FusedWorker class. `FusedWorker.{class_name}` -> FusedClass Use `class_name` as a param to directly access t
verl/verl/single_controller/ray/base.py:543
↓ 2 callersMethodcreate_resource_pool
(self)
verl/verl/trainer/ppo/ray_trainer.py:102
↓ 2 callersFunctioncreate_rl_sampler
Create a sampler for the dataset. Arguments: data_config: The data config. dataset (Dataset): The dataset. Returns:
verl/verl/trainer/main_ppo.py:348
↓ 2 callersMethoddefault_tp_concat_fn
name: name of the parameter param: training parameters infer_params (Iterable[torch.Tensor]): a iterator towards list of para
verl/verl/workers/sharding_manager/megatron_vllm.py:398
↓ 2 callersFunctionexpand_tensor
(tensor, n)
verl/verl/trainer/ppo/ray_trainer.py:273
↓ 2 callersFunctionfind_latest_ckpt_path
(path, directory_format="global_step_{}")
verl/verl/utils/checkpoint/checkpoint_manager.py:124
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:115
↓ 2 callersMethodforward
Args: input_ids: input ids. shape (batch_size, seq_length) attention_mask: attention_mask. shape (batch_size, seq_le
verl/verl/models/llama/megatron/modeling_llama_megatron.py:115
↓ 2 callersMethodforward_backward_batch
(self, data: DataProto, forward_only=False)
verl/verl/workers/critic/megatron_critic.py:131
↓ 2 callersMethodforward_backward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication sha
verl/verl/workers/actor/megatron_actor.py:260
↓ 2 callersFunctionfsdp2_clip_grad_norm_
torch.nn.utils.clip_grad_norm_ cann't run on cpu parameter DTensor
verl/verl/utils/fsdp_utils.py:438
↓ 2 callersFunctiongenerate_hf_output
(model, input_ids, attention_mask, tokenizer, max_response_length)
verl/tests/rollout/utils_sglang.py:105
↓ 2 callersMethodgenerate_sequences
(self, batch: DataProto, **sampling_params)
verl/tests/rollout/test_vllm_tool_calling.py:126
↓ 2 callersMethodgenerate_sequences
(self, batch: DataProto, **sampling_params)
verl/examples/ppo_trainer/naive_chat_scheduler.py:31
↓ 2 callersMethodgenerate_sequences_with_tools
(self, prompts: DataProto, **kwargs)
verl/verl/workers/rollout/sglang_rollout/async_sglang_rollout.py:562
↓ 2 callersMethodget_checkpoint_name
Determine the directory name for this rank's checkpoint.
verl/verl/utils/checkpoint/megatron_checkpoint_manager.py:128
↓ 2 callersFunctionget_common_default_kwargs_for_parallel_linear
()
verl/verl/utils/megatron/tensor_parallel.py:48
↓ 2 callersFunctionget_fsdp_state_ctx
(model, state_type, state_cfg, optim_cfg)
verl/verl/utils/fsdp_utils.py:378
↓ 2 callersFunctionget_generation_config
( model: str, trust_remote_code: bool = False, )
verl/verl/utils/model.py:72
↓ 2 callersFunctionget_gsm8k_data
()
verl/tests/verl/utils/dataset/test_sft_dataset.py:20
↓ 2 callersFunctionget_hf_model_checkpoint_path
(checkpoint_path)
verl/verl/utils/megatron_utils.py:392
↓ 2 callersFunctionget_huggingface_actor_config
(model_name: str, override_config_kwargs=None, trust_remote_code=False)
verl/verl/utils/model.py:62
↓ 2 callersFunctionget_model_config
(model)
verl/verl/utils/megatron_utils.py:37
↓ 2 callersMethodget_n_gpus
Get the number of gpus in this cluster.
verl/verl/trainer/ppo/ray_trainer.py:117
↓ 2 callersMethodget_openai_tool_schema
(self)
verl/verl/tools/base_tool.py:38
↓ 2 callersFunctionget_optimizer_checkpoint_path
(checkpoint_path, use_distributed_optimizer=True)
verl/verl/utils/megatron_utils.py:397
↓ 2 callersFunctionget_rng_states_checkpoint_path
(checkpoint_path, only_rank0_save=True)
verl/verl/utils/megatron_utils.py:409
↓ 2 callersFunctionget_seqlen_balanced_partitions
get order of seq lengths to make partitions balanced, this is used in balacing sum of seqlength across dp ranks and microbatches Parameter
verl/verl/utils/seqlen_balancing.py:144
↓ 2 callersMethodget_state
(self)
verl/tests/e2e/envs/digit_completion/task.py:59
↓ 2 callersFunctionget_trajectory_tracker
()
verl/verl/utils/debug/trajectory_tracker.py:79
↓ 2 callersFunctionget_upper_triangle
(tensor_x)
verl/recipe/prime/prime_core_algos.py:117
↓ 2 callersFunctionget_version
(pkg)
verl/verl/workers/rollout/vllm_rollout/__init__.py:18
↓ 2 callersMethodget_vocab
(self)
verl/tests/e2e/envs/digit_completion/tokenizer.py:86
↓ 2 callersFunctionget_weight_buffer_meta_from_module
Return a dictionary containing name to a shape and dtype.
verl/verl/utils/memory_buffer.py:60
↓ 2 callersFunctiongrade_answer
The answer will be considered correct if: (a) it normalizes to the same string as the ground truth answer OR (b) sympy can simplify t
verl/verl/utils/reward_score/prime_math/__init__.py:240
↓ 2 callersFunctiongrade_answer_mathd
(given_answer: str, ground_truth: str)
deepscaler/rewards/math_utils/utils.py:469
↓ 2 callersFunctiongrade_answer_sympy
(given_answer: str, ground_truth: str)
deepscaler/rewards/math_utils/utils.py:430
↓ 2 callersMethodinit
(self)
verl/tests/ray_gpu/test_worker_group_torch.py:34
↓ 2 callersMethodinit_model
(self)
verl/tests/ray_gpu/detached_worker/server.py:68
↓ 2 callersMethodinitialize
(self, freeze_moe_router: bool = False, **kwargs)
verl/verl/models/mcore/model_initializer.py:131
↓ 2 callersFunctioninitialize_global_process_group
(timeout_second=36000, spmd=False)
verl/tests/rollout/utils_sglang.py:55
↓ 2 callersFunctionis_ipv6
Check if the given string is an IPv6 address Args: ip_str: The IP address string to check Returns: bool: Returns True i
verl/verl/utils/net_utils.py:47
↓ 2 callersFunctionis_tensor_parallel_param
(param)
verl/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/verl/utils/reward_score/math_dapo.py:20
↓ 2 callersFunctionlist_of_dict_to_dict_of_list
(list_of_dict: list[dict])
verl/verl/protocol.py:127
↓ 2 callersMethodload_checkpoint
(self, local_path, del_local_after_load=True)
verl/recipe/prime/prime_fsdp_workers.py:351
↓ 2 callersFunctionload_megatron_optimizer
(optimizers)
verl/verl/utils/megatron_utils.py:368
↓ 2 callersFunctionload_state_dict_to_megatron_gptmodel
Load merged state_dict to sharded Megatron module in training.
verl/verl/models/mcore/loader.py:52
↓ 2 callersFunctionload_tokenizer_and_model
(local_model_path, dtype="bfloat16")
verl/tests/rollout/utils_sglang.py:88
↓ 2 callersMethodlocal_mkdir
(path)
verl/verl/utils/checkpoint/checkpoint_manager.py:86
↓ 2 callersFunctionlog_probs_from_logits_all_rmpad
Compute the log_probs from logits with rmpad input_ids and logits. Note that logits_rmpad = model(input_ids_rmpad). For each sentences, there is a
verl/verl/utils/torch_functional.py:348
↓ 2 callersFunctionlogprobs_from_logits_naive
(logits, labels)
verl/verl/utils/torch_functional.py:75
↓ 2 callersFunctionlogprobs_from_logits_v2
A memory efficient implementation of logprobs_from_logits
verl/verl/utils/torch_functional.py:81
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/geo3k.py:45
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/gsm8k.py:52
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/gsm8k_multiturn_w_tool.py:58
↓ 2 callersFunctionmake_map_fn
(split)
verl/examples/data_preprocess/math_dataset.py:50
↓ 2 callersMethodmake_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_ids``
verl/verl/workers/actor/megatron_actor.py:227
↓ 2 callersFunctionmasked_rloo
(reward_tensor_original, mask_tensor)
verl/recipe/prime/prime_core_algos.py:23
↓ 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/verl/utils/reward_score/prime_math/grader.py:174
↓ 2 callersFunctionmathd_normalize_answer
(answer: Optional[str])
deepscaler/rewards/math_utils/utils.py:14
↓ 2 callersFunctionmd5_encode
(path: str)
verl/verl/utils/fs.py:37
↓ 2 callersMethodmerge
(self, other)
verl/verl/utils/seqlen_balancing.py:35
↓ 2 callersFunctionnormalize
(answer, pi)
verl/verl/utils/reward_score/prime_math/grader.py:123
↓ 2 callersFunctionnormalize_model_name
Transform the model name in each model_chunk in each pp stage into the name in inference engine
verl/verl/utils/model.py:208
↓ 2 callersMethodoffload_params_to_cpu
(self)
verl/verl/workers/reward_model/megatron/reward_model.py:264
↓ 2 callersMethodpadding
Pad the DataProto by concating with padding_candidate.repeat(padding_size) Args: padding_size (int): the number of repeated paddi
verl/verl/protocol.py:631
↓ 2 callersFunctionparallel_compute_score_async
(evaluation_func, completions, references, tasks, extra_info=None, num_processes=64)
verl/verl/workers/reward_manager/prime.py:49
↓ 2 callersFunctionpatch_model_generation_config
The generation_config created from model config may be different to the pretrained model, this may lead to error when generating: https://git
verl/scripts/model_merger.py:90
↓ 2 callersFunctionpatch_vllm_moe_model_weight_loader
(model)
verl/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/verl/workers/sharding_manager/megatron_vllm.py:314
↓ 2 callersFunctionprepare_inputs
(tokenizer, prompts, max_prompt_length)
verl/tests/rollout/utils_sglang.py:95
↓ 2 callersFunctionpreprocess
(text)
verl/examples/data_preprocess/hellaswag.py:28
↓ 2 callersMethodpreprocess_data
AllGather data from sp region This is because the data is first sharded along the FSDP dimension as we utilize the DP_COMPUTE
verl/verl/workers/sharding_manager/fsdp_ulysses.py:52
↓ 2 callersMethodprime_norm
(self, token_level_scores)
verl/recipe/prime/prime_dp_rm.py:162
↓ 2 callersMethodrelease
Release the tool instance. Args: instance_id: The instance id of the tool.
verl/verl/tools/base_tool.py:80
↓ 2 callersFunctionremove_boxed
Remove the LaTeX boxed command from a string. Args: s: String with format "\\boxed{content}" Returns: The content inside the
verl/verl/utils/reward_score/math_dapo.py:50
↓ 2 callersMethodremove_previous_save_local_path
(self, path)
verl/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/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/verl/models/llama/megatron/layers/parallel_attention.py:157
↓ 2 callersFunctionrun_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
verl/verl/utils/reward_score/prime_code/testing_util.py:87
↓ 2 callersMethodsample_str_prompts
(self)
verl/tests/e2e/envs/digit_completion/task.py:89
↓ 2 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
verl/recipe/prime/prime_fsdp_workers.py:338
↓ 2 callersMethodset_state
(self, state)
verl/tests/e2e/envs/digit_completion/task.py:62
↓ 2 callersMethodsleep
Offload model weights and discard kv cache.
verl/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:394
↓ 2 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl/verl/utils/ulysses.py:117
↓ 2 callersFunctionslow_task_in_thread
()
verl/tests/utility/test_timeout_decorator.py:149
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
verl/verl/utils/reward_score/prime_math/__init__.py:226
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
deepscaler/rewards/math_utils/utils.py:368
↓ 2 callersFunctionstrip_string
(string)
verl/verl/utils/reward_score/math.py:162
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
verl/verl/utils/reward_score/prime_code/testing_util.py:557
↓ 2 callersMethodsub
(self, data: DataProto)
verl/tests/ray_gpu/test_colocated_workers_fused.py:46
↓ 2 callersMethodsub
(self, data: DataProto)
verl/tests/ray_gpu/test_colocated_workers.py:46
↓ 2 callersFunctionsync_model_parameters_global
(layer)
verl/tests/model/test_transformers_ulysses.py:66
↓ 2 callersMethodupdate_options
(self, options: Dict)
verl/verl/single_controller/ray/base.py:157
← previousnext →301–400 of 1,563, ranked by callers