MCPcopy Create free account

hub / github.com/bruno686/VisPlay / functions

Functions545 in github.com/bruno686/VisPlay

↓ 1 callersFunctionjudge_answer_with_llm
(predicted_answer: str, ground_truth_answer: str, question: str = "")
Evaluation/eval_boxed_accuracy.py:53
↓ 1 callersFunctionkarmarkar_karp
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
verl/utils/seqlen_balancing.py:97
↓ 1 callersMethodload_data
Load the dataset and return a tuple: (splits_dict, answer_type). splits_dict: A dictionary where each key is a split name (e.g., 'tr
evaluation/datasets_loader.py:17
↓ 1 callersFunctionload_ground_truth
(parquet_file: str, file_name_filter: str = None)
Evaluation/eval_boxed_accuracy.py:74
↓ 1 callersFunctionload_params_config
(model: Union[str, Path], revision: Optional[str], **kwargs)
config.py:628
↓ 1 callersMethodload_rng_state
(rng_state: Dict[str, Any])
verl/utils/checkpoint/checkpoint_manager.py:103
↓ 1 callersFunctionload_vqa_dataset
Load VQA dataset from parquet files
question_generate/question_generate.py:19
↓ 1 callersMethodlocal_mkdir
(path: str)
verl/utils/checkpoint/checkpoint_manager.py:74
↓ 1 callersMethodlog_generation
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/logger.py:151
↓ 1 callersFunctionlog_probs_from_logits_flash_attn
(logits: torch.Tensor, labels: torch.Tensor)
verl/utils/torch_functional.py:38
↓ 1 callersFunctionlog_seqlen_unbalance
(seqlen_list: List[int], partitions: List[List[int]], prefix)
verl/utils/seqlen_balancing.py:184
↓ 1 callersFunctionmain
()
setup.py:41
↓ 1 callersFunctionmain
(args)
question_generate/question_generate.py:135
↓ 1 callersFunctionmain
()
verl/trainer/main.py:98
↓ 1 callersFunctionmain
()
Evaluation/eval_boxed_accuracy.py:155
↓ 1 callersFunctionmasked_var
Compute variance of tensor with masked values.
verl/utils/torch_functional.py:77
↓ 1 callersFunctionmatch
(generation)
train_examples/reward_function/validation.py:109
↓ 1 callersFunctionmatch
(generation)
train_examples/reward_function/cot_val.py:138
↓ 1 callersFunctionmatch
(generation)
validation_examples/reward_function/validation.py:109
↓ 1 callersFunctionmaybe_register_config_serialize_by_value
Try to register HF model configuration class to serialize by value If trust_remote_code is set, and the model's config file specifies an
config.py:560
↓ 1 callersFunctionmerge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
scripts_Qwen-VL-7B/model_merger.py:34
↓ 1 callersFunctionmerge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
scripts_MIMO-VL-7B/model_merger.py:34
↓ 1 callersFunctionmerge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
scripts_Qwen-VL-3B/model_merger.py:34
↓ 1 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: data (DataProto): the unpadded DataProto size_divisor (int): size divisor
verl/protocol.py:48
↓ 1 callersFunctionpatch_rope_scaling
Provide backwards compatibility for RoPE.
config.py:186
↓ 1 callersFunctionpatch_rope_scaling_dict
(rope_scaling: Dict[str, Any])
config.py:197
↓ 1 callersMethodpost_init
(self)
verl/trainer/config.py:112
↓ 1 callersFunctionprepare_fa2_from_position_ids
( query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids: torch.Tensor )
verl/models/transformers/flash_attention_utils.py:43
↓ 1 callersFunctionprint_model_size
Print the model size.
verl/utils/model_utils.py:66
↓ 1 callersMethodprocess_image
(self, image: Union[Dict[str, Any], ImageObject])
verl/utils/dataset.py:69
↓ 1 callersFunctionprocess_image_for_vllm
Process image for vLLM multi-modal input, following ImageProcessMixin pattern. Args: image: PIL.Image.Image or dict with key "bytes"
question_generate/question_generate.py:54
↓ 1 callersFunctionprocess_single
Consolidates and grades vLLM outputs for a single question, returning a result dictionary.
vllm_service_init/start_vllm_server.py:185
↓ 1 callersFunctionrecurse_elems
(elem: Any)
config.py:647
↓ 1 callersFunctionrecursive_post_init
(dataclass_obj)
verl/trainer/config.py:25
↓ 1 callersFunctionremove_obsolete_ckpt
Remove the obsolete checkpoints that exceed the save_limit.
verl/utils/checkpoint/checkpoint_manager.py:138
↓ 1 callersMethodreorder
Note that this operation is in-place
verl/protocol.py:548
↓ 1 callersMethodrun
(self, config: PPOConfig)
verl/trainer/main.py:34
↓ 1 callersFunctionsave_responses_for_validation
(batch, tokenizer, output_path)
verl/trainer/ray_trainer.py:200
↓ 1 callersMethodsave_to_disk
(self, filepath: str)
verl/protocol.py:214
↓ 1 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl/utils/ulysses.py:118
↓ 1 callersFunctionsort_placement_group_by_node_ip
Sort the placement groups by node ip, all bundles in a single placement group should be on the same node. FSDPCheckpointManager saves sharde
verl/single_controller/ray/base.py:54
↓ 1 callersMethodspawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
verl/single_controller/ray/base.py:328
↓ 1 callersFunctionsplit_list
(lst, n=4)
train_examples/reward_function/validation.py:126
↓ 1 callersFunctionsplit_list
(lst, n=4)
train_examples/reward_function/cot_val.py:155
↓ 1 callersFunctionsplit_list
(lst, n=4)
validation_examples/reward_function/validation.py:126
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary. Returns: Dict[str, Any]: Dictionary of all the attributes that make up
configuration_utils.py:1378
↓ 1 callersMethodto_dict
(self)
verl/single_controller/base/worker.py:80
↓ 1 callersMethodto_dict
(self)
verl/workers/rollout/config.py:46
↓ 1 callersMethodto_diff_dict
Removes all attributes from config which correspond to the default config attributes for better readability and serializes to a Pytho
configuration_utils.py:1160
↓ 1 callersMethodto_json_file
Save this instance to a JSON file. Args: json_file_path (`str` or `os.PathLike`): Path to the JSON file
configuration_utils.py:1250
↓ 1 callersMethodto_json_string
Serializes this instance to a JSON formatted string. Returns: str: JSON formatted string representing the configuration
configuration_utils.py:1395
↓ 1 callersMethodto_str
(precision: torch.dtype)
verl/utils/torch_dtypes.py:50
↓ 1 callersFunctionunflatten_dict
(data: Dict[str, Any], sep: str = "/")
verl/utils/py_functional.py:76
↓ 1 callersFunctionunion_numpy_dict
(tensor_dict1: Dict[str, NDArray], tensor_dict2: Dict[str, NDArray])
verl/protocol.py:100
↓ 1 callersFunctionunion_tensor_dict
Union two tensordicts.
verl/protocol.py:84
↓ 1 callersFunctionunion_two_dict
Union two dict. Will throw an error if there is an item not the same object with the same key.
verl/utils/py_functional.py:56
↓ 1 callersFunctionunit_convert
(number: float, level: str)
verl/utils/flops_counter.py:28
↓ 1 callersFunctionunpad_dataproto
(data: "DataProto", pad_size: int)
verl/protocol.py:77
↓ 1 callersMethodupdate_actor
(self, data: DataProto)
verl/workers/fsdp_workers.py:428
↓ 1 callersMethodupdate_critic
(self, data: DataProto)
verl/workers/fsdp_workers.py:582
↓ 1 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:53
↓ 1 callersMethodupdate_sampling_params
(self, **kwargs)
verl/workers/rollout/vllm_rollout_spmd.py:107
↓ 1 callersFunctionupload_model_to_huggingface
(local_path: str, remote_path: str)
scripts_Qwen-VL-7B/model_merger.py:45
↓ 1 callersFunctionupload_model_to_huggingface
(local_path: str, remote_path: str)
scripts_MIMO-VL-7B/model_merger.py:45
↓ 1 callersFunctionupload_model_to_huggingface
(local_path: str, remote_path: str)
scripts_Qwen-VL-3B/model_merger.py:45
↓ 1 callersFunctionwith_retry
(func: Callable[[], Any], log_msg: str, max_retries: int = 2, ret
config.py:92
Method__call__
( self, placement_group: PlacementGroup, placement_group_bundle_idx: int, use_
verl/single_controller/ray/base.py:175
Method__call__
(self)
verl/single_controller/base/worker_group.py:47
Method__call__
(self)
verl/single_controller/base/worker_group.py:76
Method__del__
(self)
verl/utils/logger/logger.py:154
Method__enter__
(self)
verl/workers/sharding_manager/fsdp_vllm.py:66
Method__enter__
(self)
verl/workers/sharding_manager/base.py:22
Method__enter__
(self)
verl/workers/sharding_manager/fsdp_ulysses.py:34
Method__eq__
(self, other)
configuration_utils.py:517
Method__exit__
(self, exc_type, exc_value, traceback)
verl/workers/sharding_manager/fsdp_vllm.py:100
Method__exit__
(self, exc_type, exc_value, traceback)
verl/workers/sharding_manager/base.py:25
Method__exit__
(self, exc_type, exc_value, traceback)
verl/workers/sharding_manager/fsdp_ulysses.py:39
Method__getitem__
(self, item: Union[int, slice])
verl/protocol.py:190
Method__getitem__
(self, index)
verl/utils/dataset.py:257
Method__getstate__
(self)
verl/protocol.py:196
Method__hash__
(self)
configuration_utils.py:514
Method__init__
(self, **kwargs)
configuration_utils.py:395
Method__init__
( self, greenlist_ratio: Optional[float] = 0.25, bias: Optional[float] = 2.0,
configuration_utils.py:1444
Method__init__
( self, ngram_len: int, keys: List[int], context_history_size: int = 1024,
configuration_utils.py:1545
Method__init__
(self, config: "LlamaConfig")
verl/utils/flops_counter.py:67
Method__init__
( self, data_path: str, tokenizer: PreTrainedTokenizer, processor: Optional[Pr
verl/utils/dataset.py:96
Method__init__
(self)
verl/utils/seqlen_balancing.py:25
Method__init__
(self, items: List[Tuple[int, int]], k: int)
verl/utils/seqlen_balancing.py:47
Method__init__
AnyPrecisionAdamW: a flexible precision AdamW optimizer with optional Kahan summation for high precision weight updates. Allo
verl/utils/torch_functional.py:205
Method__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:44
Method__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:54
Method__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:62
Method__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:71
Method__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:94
Method__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:110
Method__init__
(self, loggers: Union[str, List[str]] = "console", config: Optional[Dict[str, Any]] = None)
verl/utils/logger/logger.py:134
Method__init__
(self, loggers: List[str])
verl/utils/logger/gen_logger.py:93
Method__init__
( self, model: FSDP, optimizer: torch.optim.Optimizer, lr_scheduler: torch.opt
verl/utils/checkpoint/fsdp_checkpoint_manager.py:42
Method__init__
( self, model: FSDP, optimizer: torch.optim.Optimizer, lr_scheduler: torch.opt
verl/utils/checkpoint/checkpoint_manager.py:49
Method__init__
( self, process_on_nodes: List[int] = None, use_gpu: bool = True, name_prefix:
verl/single_controller/ray/base.py:76
← previousnext →201–300 of 545, ranked by callers