MCPcopy Create free account

hub / github.com/bruno686/VisPlay / functions

Functions545 in github.com/bruno686/VisPlay

↓ 1 callersFunction_bleu_distance_matrix
(sentences)
validation_examples/reward_function/validation.py:33
↓ 1 callersMethod_block_until_all_workers_alive
(self)
verl/single_controller/base/worker_group.py:113
↓ 1 callersMethod_build_model_optimizer
( self, model_config: ModelConfig, fsdp_config: FSDPConfig, optim_config: Opti
verl/workers/fsdp_workers.py:147
↓ 1 callersMethod_build_rollout
(self)
verl/workers/fsdp_workers.py:308
↓ 1 callersFunction_check_and_sort_partitions
(partitions)
verl/utils/seqlen_balancing.py:168
↓ 1 callersFunction_check_dispatch_mode
(dispatch_mode: Union[Dispatch, Dict[Literal["dispatch_fn", "collect_fn"], FunctionType]])
verl/single_controller/base/decorator.py:168
↓ 1 callersFunction_check_execute_mode
(execute_mode: Execute)
verl/single_controller/base/decorator.py:178
↓ 1 callersMethod_check_resource_available
Check if the resource pool can be satisfied in this ray cluster.
verl/trainer/ray_trainer.py:140
↓ 1 callersFunction_concat_data_proto_or_future
(outputs: List[DataProto])
verl/single_controller/base/decorator.py:76
↓ 1 callersMethod_configure_before_init
(self, register_center_name: str, rank: int)
verl/single_controller/base/worker.py:113
↓ 1 callersMethod_configure_with_meta
This function should only be called inside by WorkerGroup
verl/single_controller/base/worker.py:158
↓ 1 callersFunction_custom_flash_attention_forward
Patches flash attention forward to handle 3D position ids in mrope. (3, batch_size, seq_length)
verl/models/transformers/flash_attention_utils.py:61
↓ 1 callersMethod_dict_from_json_file
(cls, json_file: Union[str, os.PathLike])
configuration_utils.py:1109
↓ 1 callersMethod_get_free_port
(self)
verl/single_controller/base/worker.py:54
↓ 1 callersFunction_get_logit_bias
(model_path: str, trust_remote_code: bool)
verl/workers/rollout/vllm_rollout_spmd.py:41
↓ 1 callersFunction_get_model_size
Compute the model size.
verl/utils/model_utils.py:38
↓ 1 callersMethod_get_node_ip
(self)
verl/single_controller/base/worker.py:45
↓ 1 callersMethod_init_with_detached_workers
(self, worker_names: List[str])
verl/single_controller/ray/base.py:244
↓ 1 callersMethod_init_with_resource_pool
( self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInitArgs, bin_pack: bool, detac
verl/single_controller/ray/base.py:249
↓ 1 callersMethod_is_worker_alive
(self, worker)
verl/single_controller/base/worker_group.py:110
↓ 1 callersMethod_load_checkpoint
(self)
verl/trainer/ray_trainer.py:531
↓ 1 callersMethod_make_weight_iterator
( self, actor_weights: Dict[str, Union[torch.Tensor, DTensor]] )
verl/workers/sharding_manager/fsdp_vllm.py:60
↓ 1 callersFunction_materialize_futures
(*args, **kwargs)
verl/single_controller/base/decorator.py:182
↓ 1 callersMethod_maybe_log_val_generations
Log a table of validation samples
verl/trainer/ray_trainer.py:332
↓ 1 callersMethod_optimizer_step
(self)
verl/workers/critic/dp_critic.py:124
↓ 1 callersMethod_optimizer_step
(self)
verl/workers/actor/dp_actor.py:151
↓ 1 callersFunctionaccuracy_reward
(predict: str, ground_truth: str)
train_examples/reward_function/cot_val_solver.py:71
↓ 1 callersFunctionaccuracy_reward
(predict: str, ground_truth: str)
validation_examples/reward_function/cot_val.py:76
↓ 1 callersFunctionaccuracy_reward
(predict: str, ground_truth: str)
Evaluation/utils/math_utils.py:54
↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
verl/utils/ulysses.py:156
↓ 1 callersFunctionallgather_dict_tensors
TODO: optimize this. - We can use async ops - We can use only one allgather
verl/protocol.py:651
↓ 1 callersFunctionapply_kl_penalty
(data: DataProto, kl_ctrl: core_algos.KLController, kl_penalty="kl")
verl/trainer/ray_trainer.py:148
↓ 1 callersFunctionapply_ulysses_patch
(model_type: str)
verl/models/monkey_patch.py:22
↓ 1 callersFunctionazure_gpt4
(messages, model)
Evaluation/utils/gpt_eval.py:31
↓ 1 callersFunctionb64_to_image
(b64_str)
question_evaluate/evaluate.py:123
↓ 1 callersFunctionb64_to_image
(b64_str)
verl/utils/dataset.py:58
↓ 1 callersFunctionbase64_to_pil
Convert base64 string to PIL Image
question_evaluate/upload_hf.py:28
↓ 1 callersFunctionbase64_to_pil
(b64_string)
vllm_service_init/start_vllm_server.py:133
↓ 1 callersFunctionceildiv
(a, b)
verl/utils/seqlen_balancing.py:218
↓ 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:241
↓ 1 callersFunctioncluster_share_per_problem
( problems, distance_threshold: float = 0.5, linkage: str = "average")
train_examples/reward_function/validation.py:48
↓ 1 callersFunctioncluster_share_per_problem
( problems, distance_threshold: float = 0.5, linkage: str = "average")
train_examples/reward_function/cot_val.py:78
↓ 1 callersFunctioncluster_share_per_problem
( problems, distance_threshold: float = 0.5, linkage: str = "average")
validation_examples/reward_function/validation.py:48
↓ 1 callersFunctioncollect_dp_compute
(worker_group: "WorkerGroup", outputs: List[DataProto])
verl/single_controller/base/decorator.py:101
↓ 1 callersMethodcompare_answer
(self, response: str, answer: str)
evaluation/datasets_loader.py:34
↓ 1 callersFunctioncompute_advantage
(data: DataProto, adv_estimator: AdvantageEstimator, gamma: float = 1.0, lam: float = 1.0)
verl/trainer/ray_trainer.py:168
↓ 1 callersFunctioncompute_data_metrics
(batch: DataProto, use_critic: bool = False)
verl/trainer/metrics.py:27
↓ 1 callersMethodcompute_log_probs
(self, data: DataProto)
verl/workers/fsdp_workers.py:509
↓ 1 callersMethodcompute_ref_log_probs
(self, data: DataProto)
verl/workers/fsdp_workers.py:538
↓ 1 callersFunctioncompute_throughout_metrics
(batch: DataProto, timing_raw: Dict[str, float], num_gpus: int)
verl/trainer/metrics.py:113
↓ 1 callersFunctioncompute_timing_metrics
(batch: DataProto, timing_raw: Dict[str, float])
verl/trainer/metrics.py:97
↓ 1 callersMethodcompute_values
(self, data: DataProto)
verl/workers/fsdp_workers.py:563
↓ 1 callersFunctioncreate_colocated_worker_cls
This function should return a class instance that delegates the calls to every cls in cls_dict
verl/single_controller/ray/base.py:453
↓ 1 callersFunctioncreate_dataloader
(config: DataConfig, tokenizer: PreTrainedTokenizer, processor: Optional[ProcessorMixin])
verl/trainer/data_loader.py:26
↓ 1 callersMethodcreate_resource_pool
(self)
verl/trainer/ray_trainer.py:120
↓ 1 callersFunctioncreate_worker_group_register_center
(name, info)
verl/single_controller/base/register_center/ray.py:27
↓ 1 callersMethoddeep_post_init
(self)
verl/trainer/config.py:121
↓ 1 callersMethoddispatch_fn
(x, i, chunks)
verl/protocol.py:630
↓ 1 callersFunctionencode_image_to_base64
(image)
train_examples/reward_function/cot_val.py:39
↓ 1 callersFunctionevaluate_dataset
(predictions_file: str, ground_truth_file: str, use_llm_judge: bool = True, max_workers: int = 32, file_name_f
Evaluation/eval_boxed_accuracy.py:88
↓ 1 callersFunctionextract_answer
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
Evaluation/utils/gpt_eval.py:9
↓ 1 callersMethodextract_answer
(self, response: str)
evaluation/datasets_loader.py:28
↓ 1 callersFunctionextract_description
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
verl/trainer/ray_trainer.py:66
↓ 1 callersFunctionfile_exists
( repo_id: str, file_name: str, *, repo_type: Optional[str] = None, revision: Optional[str
config.py:147
↓ 1 callersMethodfit
The training loop of PPO. The driver process only need to call the compute functions of the worker group through RPC to construct the
verl/trainer/ray_trainer.py:570
↓ 1 callersFunctionflash_attention_forward
( module: torch.nn.Module, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, at
verl/models/transformers/flash_attention_utils.py:153
↓ 1 callersFunctionflatten_dict
(data: Dict[str, Any], parent_key: str = "", sep: str = "/")
verl/utils/py_functional.py:92
↓ 1 callersFunctionformat_reward
(predict: str)
train_examples/reward_function/cot_val_solver.py:24
↓ 1 callersFunctionformat_reward
(predict: str)
validation_examples/reward_function/cot_val.py:44
↓ 1 callersFunctionformat_reward
(predict: str)
Evaluation/utils/math_utils.py:20
↓ 1 callersMethodfrom_detached
(cls, worker_names=None, ray_cls_with_init=None)
verl/single_controller/ray/base.py:322
↓ 1 callersFunctionfunc_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
verl/single_controller/ray/base.py:42
↓ 1 callersFunctiongather_heads_scatter_seq
A func to sync attention result with alltoall in sequence parallel gather head dimension and scatter seq dim: e.g. seq_dim: 1, head_dim:
verl/utils/ulysses.py:87
↓ 1 callersFunctiongenerate_function
(name)
verl/single_controller/ray/base.py:429
↓ 1 callersFunctiongenerate_results
(data)
train_examples/reward_function/validation.py:135
↓ 1 callersFunctiongenerate_results
(data)
train_examples/reward_function/cot_val.py:163
↓ 1 callersFunctiongenerate_results
(data)
validation_examples/reward_function/validation.py:135
↓ 1 callersFunctiongenerate_temp_filename
(prefix="temp", suffix=".json")
train_examples/reward_function/validation.py:121
↓ 1 callersFunctiongenerate_temp_filename
(prefix="temp", suffix=".json")
train_examples/reward_function/cot_val.py:150
↓ 1 callersFunctiongenerate_temp_filename
(prefix="temp", suffix=".json")
validation_examples/reward_function/validation.py:121
↓ 1 callersMethodget_availale_master_addr_port
(self)
verl/single_controller/base/worker.py:59
↓ 1 callersFunctionget_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
verl/utils/checkpoint/checkpoint_manager.py:131
↓ 1 callersFunctionget_config
( model: Union[str, Path], trust_remote_code: bool, revision: Optional[str] = None, code_revis
config.py:241
↓ 1 callersFunctionget_constant_schedule_with_warmup
Get the lr scheduler for constant lr.
verl/utils/torch_functional.py:190
↓ 1 callersFunctionget_dataset_handler
(dataset_name: str,name: str = None)
evaluation/datasets_loader.py:292
↓ 1 callersFunctionget_device_flops
(unit: str = "T")
verl/utils/flops_counter.py:27
↓ 1 callersFunctionget_fsdp_wrap_policy
Get FSDP wrap policy for the model. Args: module: The module to get wrap policy for
verl/utils/fsdp_utils.py:52
↓ 1 callersFunctionget_init_fn
(model: nn.Module, device: Union[str, torch.device])
verl/utils/fsdp_utils.py:30
↓ 1 callersMethodget_partitions
(self)
verl/utils/seqlen_balancing.py:56
↓ 1 callersFunctionget_pooling_config_name
(pooling_name: str)
config.py:475
↓ 1 callersFunctionget_predefined_dispatch_fn
(dispatch_mode: Dispatch)
verl/single_controller/base/decorator.py:126
↓ 1 callersFunctionget_predefined_execute_fn
Note that here we only asks execute_all and execute_rank_zero to be implemented Leave the choice of how these two functions handle argument '
verl/single_controller/base/decorator.py:156
↓ 1 callersFunctionget_random_string
(length: int)
verl/single_controller/ray/base.py:37
↓ 1 callersFunctionget_requires
()
setup.py:29
↓ 1 callersFunctionget_rope_index
Gets the position ids for Qwen2-VL, it should be generated before sharding the sequence. The batch dim has been removed and the input_ids sho
verl/models/transformers/qwen2_vl.py:36
↓ 1 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
verl/utils/ulysses.py:55
↓ 1 callersFunctionget_version
()
setup.py:21
↓ 1 callersFunctionimage_to_base64
Convert PIL Image to base64 string
question_generate/question_generate.py:43
↓ 1 callersMethodinit_workers
Init resource pool and worker group
verl/trainer/ray_trainer.py:440
↓ 1 callersFunctionis_sci_notation
(number: float)
verl/utils/py_functional.py:30
← previousnext →101–200 of 545, ranked by callers